Visual Basic | |
---|---|
Function CreateBlockDefinition( _ ByVal BlockName As System.String, _ ByVal Description As System.String, _ ByVal BasePointX As System.Double, _ ByVal BasePointY As System.Double, _ ByVal BasePointZ As System.Double, _ ByVal EntityTypeLongArray As System.Object, _ ByVal EntitiesArray As System.Object, _ ByVal BlockDefinitionEntities As dsBlockDefinitionEntities_e _ ) As BlockDefinition |
C# | |
---|---|
BlockDefinition CreateBlockDefinition( System.string BlockName, System.string Description, System.double BasePointX, System.double BasePointY, System.double BasePointZ, System.object EntityTypeLongArray, System.object EntitiesArray, dsBlockDefinitionEntities_e BlockDefinitionEntities ) |
JavaScript | |
---|---|
CreateBlockDefinition( BlockName : String, Description : String, BasePointX : Number, BasePointY : Number, BasePointZ : Number, EntityTypeLongArray : Array, EntitiesArray : Array, BlockDefinitionEntities : String ) : dsBlockDefinition |
COM native C++ | |
---|---|
HRESULT CreateBlockDefinition( BSTR BlockName, BSTR Description, DOUBLE BasePointX, DOUBLE BasePointY, DOUBLE BasePointZ, VARIANT EntityTypeLongArray, VARIANT EntitiesArray, dsBlockDefinitionEntities_e BlockDefinitionEntities, IBlockDefinition** BlockDefinition ) |
C++ | |
---|---|
DSRESULT CreateBlockDefinition( const dsString& BlockName, const dsString& Description, double BasePointX, double BasePointY, double BasePointZ, const dsLongArray& EntityTypeLongArray, const dsObjectPtrArray& EntitiesArray, dsBlockDefinitionEntities_e BlockDefinitionEntities, dsBlockDefinition** BlockDefinition ) |
Parameters
- BlockName
- Name of the Block definition
- Description
- Description of Block definition
- BasePointX
- x coordinate for the base point of the Block definition
- BasePointY
- y coordinate for the base point of the Block definition
- BasePointZ
- z coordinate for the base point of the Block definition
- EntityTypeLongArray
- Array of longs of the types of source entities in the Block definition as defined in dsObjectType_e
- EntitiesArray
- Array of objects of the source entities in the Block definition
- BlockDefinitionEntities
- Options for the source entities of the Block definition as defined in dsBlockDefinitionEntities_e
- BlockDefinition[out] or Return Value
- Block definition
Insert Block, Notes, and Sketch Entities (JavaScript)
Attach Block Definition Annotation to Leader (C#)
Attach Block Definition Annotation to Leader (VB.NET)
Attach Block Definition Annotation to Leader (VBA)
Attach Block Definition Annotation to Leader (JavaScript)
Attach Block Definition Annotation to Leader (C#)
Attach Block Definition Annotation to Leader (VB.NET)
Attach Block Definition Annotation to Leader (VBA)
Attach Block Definition Annotation to Leader (JavaScript)
If a Block definition with the specified name already exists in the drawing, then that Block definition is overwritten by this method.
IDocument Interface
IDocument Members
IDocument::GetBlockDefinition Method ()
IDocument::GetBlockDefinitions Method ()
IDocument::HasBlockDefinition Method ()
IDocument Members
IDocument::GetBlockDefinition Method ()
IDocument::GetBlockDefinitions Method ()
IDocument::HasBlockDefinition Method ()
DraftSight V1R1.3