Add_Block

Top  Previous  Next

 

Add_Block (Method)

 

This function 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

Is the block's name

x1

Single

Is the x coordinate of the insertion point

y1

Single

Is the y coordinate of the insertion point

z1

Single

Is the z coordinate of the insertion point

vItemProperties

Object

Is a string array with properties for the new object

sScale

Single

Is the block's scale factor

sAngle

Single

Is the block's rotation angle relative to the insertion point

 

Return value:

Integer - An Avax handle on success, zero on error.

 

Example