Add_DWG
MethodAdd_DWG (Method)
This method inserts a DWG file into the drawing
Syntax:
Function Add_DWG(sDWGFile As String, sDWGLayers As String, x As Single, y As Single, z As Single, vItemProperties As Object, fNoText As Boolean, fNoBlock As Boolean, fNoDimension As Boolean, vRetHandles As Object) As Boolean
The Add_DWG method syntax consists of the following:
Parameter |
Data Type |
Description |
sDWGFile |
String |
The name of the DWG file |
sDWGLayers |
String |
The DWG layer names to import (ex. sDWGLayers="[walls][windows]") |
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 |
fNoText |
Boolean |
True to skip importing text |
fNoBlock |
Boolean |
True to skip importing blocks |
fNoDimension |
Boolean |
True to skip importing dimensions |
vRetHandles |
Object |
Returns a single-dimensional integer array with the new object handles |
Return value:
Boolean - True on success, false on error.
Remarks:
If the argument sDWGLayers is not given then all layers will be imported