Arbortext IsoDraw > Macro Language Reference > Object Data Types > Application Object - Data Exchange Preferences > Import DWG
  
Import DWG
app.dwg.showDialog
Returns and sets if the DWG import dialog is shown as boolean.
app.dwg.showDialog = TRUE
app.dwg.scale
Returns and sets the scale as float. 1 stands for 100% and 0.1 for 10%.
#setting the scale to 37%
app.dwg.scale = 0.37
app.dwg.platformIn
Returns and sets the import platform as integer. Allowed values are 1 for “Mac”, 2 for “MS Win” and 3 for “Unix”.
app.dwg.platformIn = 3
app.dwg.unit
Returns and sets the the corresponding unit as integer. Allowed values are:
1
“mm”
2
“inch”
3
“foot”
4
“m”
app.dwg.unit = 1
app.dwg.polyAsElements
Returns and sets if polylines should be converted into lines and circles as boolean.
app.dwg.polyAsElements = FALSE
app.dwg.ignoreVarPolyWidth
Returns and sets if variable width of polylines should be ignored as boolean.
app.dwg.ignoreVarPolyWidth = TRUE
app.dwg.ignoreTextFactor
Returns and sets if the width factor of text elements should be ignored as boolean.
app.dwg.ignoreTextFactor = TRUE
app.dwg.ignoreHeight
Returns and sets if the height and elevation should be ignored as boolean.
app.dwg.ignoreHeight = FALSE
app.dwg.entities
Returns and sets the DWG options as integer. Please use this formula to calculate the allowed values:
value = 2^x
x
Option
0
“LINE“
1
“POINT“
2
“CIRCLE“
3
“SHAPE“
4
“ELLIPSE“
5
“SPLINE“
6
“TEXT“
7
“ARC“
8
“TRACE“
9
“SOLID“
10
“INSERT“
11
“ATTDEF“
12
“ATTRIB“
13
“POLYLINE“
14
“LINE3D“
15
“FACE3D“
16
“DIMENSION“
17
“RAY“
18
“XLINE“
19
“MTEXT“
20
“LEADER“
21
“MLINE“
22
“LWLINE“
23
“PROXY“
24
“HATCH“
25
“VIEWPORT“
Add values to activate different options.
#activating the TEXT-option only
app.dwg.entities = 64

#activating the CIRCLE- (2^2=4), SHAPE-
#(2^3=8) and ELLIPSE-option (2^4=16)
app.dwg.entities = 4 + 8 + 16