Arbortext IsoDraw > Référence du langage macro > Object Data Types > Application Object - Data Exchange Preferences > Import CGM
  
Import CGM
app.cgm.showDialog
Returns and sets if the cgm import dialog is shown as boolean.
app.cgm.showDialog = TRUE
app.cgm.usebackcolor
Returns and sets if the backcolor is used as boolean.
app.cgm.usebackcolor = TRUE
app.cgm.scale
Returns and sets the scale as float. 1 stands for 100% and 0.1 for 10%.
#setting the scale to 55%
app.cgm.scale = 0.55
app.cgm.entities
Sets the CGM options as integer. Please use this formula to calculate the allowed values:
value = 2^x
x
Option
0
“Polylines“
1
“Disjoint Polyline“
2
“Polymarker“
3
“Text“
4
“Restricted Text“
5
“Append Text“
6
“Polygon“
7
“Polygon Set“
8
“Cell Array“
9
“Rectangle“
10
“Circle“
11
“Circular Arc 3 Point“
12
“Circular Arc 3 Point Close“
13
“Circular Arc Center“
14
“Circular Arc Center Close“
15
“Ellipse“
16
“Elliptical Arc“
17
“Elliptical Arc Close“
18
“Circular Arc Centre Reversed“
19
“Hyperbolic Arc“
20
“Parabolic Arc“
21
“Non-Uniform B-Spline“
22
“Non-Uniform Rational B-Spline“
23
“Polybezier“
24
“Segments“
25
“Figures“
26
“Tiles“
27
“Background Colour“
28
“Clip Element V1“
29
“Clip Element V3“
30
“Appl. Str. Elements“
Add values to activate different options.
#activating the text-option only
app.cgm.entities = 8

#activating the text- (2^2=4), polymarker-
#(2^3=8) and restricted text-option (2^4=16)
app.cgm.entities = 4 + 8 + 16
app.cgm.importtype
Returns and sets the “Read from version 1/2 as” property as integer. Allowed values are 1 for “basic”, 2 for “boxed cap” and 3 for “isotropic cap”.
app.cgm.importtype = 1
app.cgm.pictures
Returns and sets the import pictures property as integer. Setting this property to 0 means importing all pictures and setting the property to another number means importing just one specific picture.
app.cgm.pictures = 0
app.cgm.cgmlinecap
Returns and sets the line caps as integer. Allowed values are 0 for “flat”, 1 for “rounded” and 2 for “rectangle”.
app.cgm.cgmlinecap = 2
app.cgm.cgmlinejoin
Returns and sets the line join as integer. Allowed values are 0 for “mitered”, 1 for “rounded” and 2 for “bevel”.
app.cgm.cgmlinejoin = 2
app.cgm.pageSizeKind
Returns and sets the page size value as integer. Allowed values are 1 for “default” and 2 for use “VDC extend”.
app.cgm.pageSizeKind = 1