TsgDXFBlock
Unit: DXFConv
Description
This class defines an item of BLOCK table of a CAD file. A block is a collection of objects which associated together to form a single object, or block definition. Use Entities property to obtain an entity in the collection.
Syntax
TsgDXFBlock = class(TsgDXFGroup)
Properties
Properties | Description |
---|---|
Flags | Block-type flags (bit coded values, may be combined) |
Name | Contains name of the block |
Offset | Contains coordinates of offset point |
References | Gets a list of entities that use the block. |
SpecPaperSpace | |
Xref | Returns Xref entity if block contains it. |
XrefPath | Sets or gets Xref path name if block contains it. |
Derived from TsgDXFEntity | Description |
---|---|
Box | The property determines the 3d box embraced the entity. |
Color | The property gets or sets entity color. |
ColorCAD | The property gets or sets a color for drawing entities. |
Complex | The property determines whether a entity is populated with child entities. |
Converter | The property returns the TsgDXFConverter class object. |
Count | The property indicates the total number of child entities. |
Entities | The property lists all child entities. |
EntType | The property indicates type of an entity. |
Handle | The property is used for finding entity links. |
Layer | The property points to layer, containing given primitive if this layer is given. |
LineType | The property sets and gets line type for an entity. |
LineTypeScale | The property sets and gets the Linetype scale. |
LineWeight | The property sets or gets line weight in millimeters. |
PaperSpace | The property indicates Model Space and Paper Space entity segregation. |
SrcEnd | The property indicates end position of the entity description in the source CAD file. |
SrcStart | The property indicates start position of the entity description in the source CAD file. |
Visibility | The property sets and gets entities visibility. |
Visible | The property determines whether the component appears onscreen. |
Methods
Methods | Description |
---|---|
AddEntity | Call AddEntity to add a child entity. |
AssignEntity | Copies properties of source entity to current entity. |
Clear | Call Clear to delete all child entities. |
Create | Creates internal objects after creating this object |
DeleteEntity | Call DeleteEntity to delete entity. |
EntName | Call EntName to get the name of a block. |
InsertEntity | Call InsertEntity to add a specified entity to the list of child entities. |
Derived from TsgDXFGroup | Description |
---|---|
Destroy | Frees up internal objects before destroying this object |
Iterate | The method converts DXF/DWG tree structure to a linear sequence of entities, similar to Windows metafile. |
Derived from TsgDXFEntity | Description |
---|---|
Clone | The method copies properties of source entity to current entity (include Handle ). |
Draw | The method generates the OnDraw event. |
GetBoxPoints | The method is used in drawing cycle for fast checking whether the entity must be drawn. |
GetThickness | The method returns entity's thickness. |
SetLType | The method sets line type of the entity. |
SetLWeight | The method sets line weight width of the entity. |
Events
Derived from TsgDXFEntity | Description |
---|---|
OnDraw | The event occurs when the Draw method is called. |