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 = ""
)
Public Function AddBlock (
BlockName As String,
Origin As Vector3,
Entities As List(Of EntityObject),
Optional LayerName As String = ""
) As Block
public:
Block^ AddBlock(
String^ BlockName,
Vector3 Origin,
List<EntityObject^>^ Entities,
String^ LayerName = L""
)
member AddBlock :
BlockName : string *
Origin : Vector3 *
Entities : List<EntityObject> *
?LayerName : string
(* Defaults:
let _LayerName = defaultArg LayerName ""
*)
-> Block
METHOD AddBlock(
BlockName AS STRING,
Origin AS Vector3,
Entities AS List<EntityObject>,
LayerName AS STRING := ""
) AS Block
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:
BlockThe new added
Block.
See Also