Add_SHP
MethodAdd_SHP (Method)
This method inserts a SHP file into the drawing
Syntax:
Function Add_SHP(sSHPFile As String, x As Single, y As Single, z As Single, vItemProperties As Object, Fill_iType As Byte, Fill_lHatchIndex As Integer, Fill_iInForeColor As Short, Fill_iInBackColor As Short, Fill_sPattern As String, Fill_zOrder As Integer, Fill_lFlags As Integer, iClr As Short, iWidth As Short, iStyle As Short, iLayer As Short, vRetHandles As Object) As Boolean
The Add_SHP method syntax consists of the following:
Parameter |
Data Type |
Description |
sSHPFile |
String |
The name of the SHP file |
x |
Single |
The x coordinate of the insertion point |
y |
Single |
The y coordinate of the insertion point |
z |
Single |
The z coordinate of the insertion point |
vItemProperties |
Object |
A string array of properties for the new object |
Fill_iType |
Byte |
A Byte expression that defines the AvaxFillType |
Fill_lHatchIndex |
Integer |
The fill hatch index |
Fill_iInForeColor |
Short |
The stroke color |
Fill_iInBackColor |
Short |
The fill color |
Fill_sPattern |
String |
A String expression that defines the fill pattern's data (see also function CreateACADHatchPattern or CreateExVectorHatchPattern) |
Fill_zOrder |
Integer |
The object's elevation in the whole drawing |
Fill_lFlags |
Integer |
A numeric expresion which defines some more parameters (see also function CreatePatternFlags) |
iClr |
Short |
The color index number |
iWidth |
Short |
The pen width |
iStyle |
Short |
The line type |
iLayer |
Short |
The layer number |
vRetHandles |
Object |
Returns an integer array with the handles of the new objects |
Return value:
Boolean - True on success, false on error.
Remarks:
The AvaxFillType data are for the SHP files polygons.