Add_Block
MethodAdd_Block (Method)
Adds a block into the drawing
Syntax:
Function Add_Block(sBlockName As String, x1 As Single, y1 As Single, z1 As Single, vItemProperties As Object, sScale As Single, sAngle As Single) As Integer
The Add_Block method syntax consists of the following:
Parameter |
Data Type |
Description |
sBlockName |
String |
The block name |
x1 |
Single |
The x coordinate of the insertion point |
y1 |
Single |
The y coordinate of the insertion point |
z1 |
Single |
The z coordinate of the insertion point |
vItemProperties |
Object |
A string array of properties for the new object |
sScale |
Single |
The block's scale factor |
sAngle |
Single |
The block's rotation angle relative to the insertion point |
Return value:
Integer - An Avax handle on success, zero on error.