Click or drag to resize

DXFReaderNETControlAddBlock Method

Adds a new block to the current drawing.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax
public Block AddBlock(
	string BlockName,
	Vector3 Origin,
	List<EntityObject> Entities,
	string LayerName = ""
)

Parameters

BlockName
Type: SystemString
The new block name.
Origin
Type: DXFReaderNETVector3
The block origin usually (0, 0, 0).
Entities
Type: System.Collections.GenericListEntityObject
The entities of the block.
LayerName (Optional)
Type: SystemString
The layer name. If omitted, or layername doesn't exist, the CurrentLayer will be used.

Return Value

Type: Block
The new added Block.
See Also