Skip to main content

TsgDXFViewport

Unit: DXFConv

Description

This class defines an area in paper space that contains a view of model space. Viewports are treated as drawing objects which display views and can be moved or resized. Any entity can be the boundary of the Viewport.

Syntax

TsgDXFViewport = class(TsgDXFPenEntity)

Properties

PropertiesDescription
BackClipPlaneThe property specifies Z-coordinate of back cut off plane.
ClippingBoundaryHandleThe property presents only if viewport is non-rectangular.
FlagsSee DXF Reference, for example: Flags = 131072 (0x20000) - Turns the viewport off).
FrontClipPlaneThe property sets and gets the list of layers forbidden for showing in viewport.
FrozenLayersThe property specifies Z-coordinate of front cut off plane.
MSpaceCenterThe property is coordinates of model view area center in model coordinates, which displayed in view port.
MSpaceHeightThe property is the model view area height represents in model units.
OrdIndexThe property is descendant of the TsgDXFGroup class.
PSpaceCenterThe property sets and gets center point.
[PSpaceHeight]/Reference/CAD%20database%20structure/Entities/TsgDXFViewport/(Properties/PSpaceHeight)The property sets and gets height in paper space units.
PSpaceWidthThe property sets and gets width in paper space units.
RectThe property calls this property for obtain view port boundary.
StatusField
ThisIDThe property sets or gets viewport ID.
ViewDirectionThe property sets and gets view direction vector.
ViewTargetThe property sets and gets view taret point.
ViewTwistAngleThe property sets and gets view twist angle.
VisibleBoundaryThe property sets visibility of the boundary.
XDataAppNameThe property sets or gets the application name.
Derived from TsgDXFPenEntityDescription
PenThe property for reaching the TPen object, used for drawing.
Derived from TsgDXFEntityDescription
BoxThe property determines the 3d box embraced the entity.
ColorThe property gets or sets entity color.
ColorCADThe property gets or sets a color for drawing entities.
ComplexThe property determines whether a entity is populated with child entities.
ConverterThe property returns the TsgDXFConverter class object.
CountThe property indicates the total number of child entities.
EntitiesThe property lists all child entities.
EntTypeThe property indicates type of an entity.
HandleThe property is used for finding entity links.
LayerThe property points to layer, containing given primitive if this layer is given.
LineTypeThe property sets and gets line type for an entity.
LineTypeScaleThe property sets and gets the Linetype scale.
LineWeightThe property sets or gets line weight in millimeters.
PaperSpaceThe property indicates Model Space and Paper Space entity segregation.
SrcEndThe property indicates end position of the entity description in the source CAD file.
SrcStartThe property indicates start position of the entity description in the source CAD file.
VisibilityThe property sets and gets entities visibility.
VisibleThe property determines whether the component appears onscreen.

Methods

MethodsDescription
CreateCreates an instance of the TsgDXFViewport object.
DestroyFrees up all internal objects before destroying this object.
GetBoundaryThe method returns the boundary of the Viewport as the TsgDXFEntity object.
GetBoundariesAsPointsThe method returns the boundary of viewport entity as list of points.
OffsetThe method sets the center point of viewport.
SetBoundaryThe method sets the boundary of the viewport as entity.
Derived from TsgDXFPenEntityDescription
AssignEntityThe method copies properties of source entity to current entity.
SetColorThe method changes the color used for drawing.
Derived from TsgDXFEntityDescription
AddEntityThe method adds a new child entity.
CloneThe method copies properties of source entity to current entity (include Handle).
DrawThe method generates the OnDraw event.
EntNameThe method returns an entity name.
GetBoxPointsThe method is used in drawing cycle for fast checking whether the entity must be drawn.
GetThicknessThe method returns entity's thickness.
SetLTypeThe method sets line type of the entity.
SetLWeightThe method sets line weight width of the entity.

Events

Derived from TsgDXFEntityDescription
OnDrawThe event occurs when the Draw method is called.