Arbortext IsoDraw > Référence du langage macro > Object Data Types > Application Object - Data Exchange Preferences > Export CGM
  
Export CGM
app.cgm.profile
Returns and sets the CGM profile as integer. The allowed values (n) and their equivalent macro constant names are listed in the table below. (See CGM Profile Numbers and Namesfor values in older Arbortext IsoDraw releases.)
n
CGM Profile Name
Macro Constant Name
1
ISO 8632:1999
$CGM_Profile.ISO_8632_1999
2
WebCGM 1.0
$CGM_Profile.WebCGM_1_0
3
ATA GREXCHANGE V2.8
$CGM_Profile.ATA_GREXCHANGE_2_8
4
ATA GREXCHANGE V2.7
$CGM_Profile.ATA_GREXCHANGE_2_7
5
ATA GREXCHANGE V2.6
$CGM_Profile.ATA_GREXCHANGE_2_6
6
ATA GREXCHANGE V2.5
$CGM_Profile.ATA_GREXCHANGE_2_5
7
ATA GREXCHANGE V2.4
$CGM_Profile.ATA_GREXCHANGE_2_4
8
ATA GREXCHANGE V2.5/IsoDraw
$CGM_Profile.ATA_GREXCHANGE_2_5_ISODRAW
9
MIL-D-28003A
$CGM_Profile.MIL_D_28003A
10
SAE J2008
$CGM_Profile.SAE_J2008
11
Model (8632:1992)
$CGM_Profile.Model_8632_1992
12
ISO ISP 12071-1
$CGM_Profile.ISO_ISP_12071_1
13
ISO ISP 12072-1
$CGM_Profile.ISO_ISP_12072_1
14
ISO ISP 12073-1
$CGM_Profile.ISO_ISP_12073_1
15
ISO ISP 12074-1
$CGM_Profile.ISO_ISP_12074_1
16
ATA GREXCHANGE V2.9
$CGM_Profile.ATA_GREXCHANGE_2_9
17
S1000D V2.21
$CGM_Profile.S1000D_2_2
18
WebCGM 2.0
$CGM_Profile.WebCGM_2_0
19
ATA GREXCHANGE V2.10
$CGM_Profile.Current_ATA2
20
S1000D V2.3
No macro constant name
21
WebCGM 2.1
$CGM_Profile.WebCGM_2_1

1 S1000D V2.2 export is no longer supported.

2 The constant name $CGM_Profile.Current_AT always applies to the newest ATA GREXCHANGE profile that this release of Arbortext IsoDraw supports. When Arbortext IsoDraw supports a newer version, V2.10 will be assigned a different constant name; e.g., $CGM_Profile.ATA_GREXCHANGE_2_10.

* 
When setting the value of app.cgm.profile, it is best to use the constant name, which is fixed, rather than the number, which might change from one release to the next.
app.cgm.profile = $CGM_Profile.ATA_GREXCHANGE_2_9
app.cgm.useAECMAs1000d
Returns and sets the S1000d compliant as integer. Allowed values are 0 for “do not use” and 1 for “use”.
app.cgm.useAECMAs1000d = 1
app.cgm.encoding
Returns and sets the CGM encoding type as integer. Allowed values are 1 for “binary” and 2 for “text”.
app.cgm.encoding = 1
app.cgm.vdcType
Returns and sets the VDC-Type as integer. Allowed values are 1 for “16bit integer”, 2 for “32bit integer” and 3 for “real”.
app.cgm.vdcType = 2
app.cgm.compressionColor
Returns and sets the compression color type as integer. Allowed values are:
1
“none”
2
“Runlength”
3
“JPEG”
4
“PNG”
app.cgm.compressionColor = 3
app.cgm.compressionBW
Returns and sets the B/W compression type as integer. Allowed values are:
1
“none”
2
“runlength”
3
“CCITT Group3 (T4)”
4
“CCITT Group3 (T6)”
5
“PNG”
app.cgm.compressionBW = 2
app.cgm.jpegQuality
(Applies to Arbortext IsoDraw 7.0 F000 and later.)
Returns and sets the quality for embedded JPEG images as integer. Allowed values are 0 to 100.
0
Optimizes image quality.
1
Optimizes image compression.
2
Lowest quality; highest compression.
3…99
As the value increases, quality increases and compression decreases.
100
Highest quality; lowest compression.
If a macro changes the value of app.cgm.jpegQuality, the change is saved as the new CGM export JPEG image quality preference setting.
Recording a macro that changes this property adds an app.cgm.jpegQuality = value statement to the macro.
app.cgm.jpegQuality = 40
app.cgm.textType
Returns and sets the text type as integer. Allowed values are:
0
“none”
1
“RT basic”
2
“RT boxed-cap”
3
“RT boxed-all”
4
“RT isotropic-cap”
5
“RT isotropic-all”
6
“RT justified”
app.cgm.textType = 6
app.cgm.exportType
Returns and sets the export text type as integer. Allowed values are 1 for “basic”, 2 for “boxed-cap” and 3 for “isotropic-cap”.
app.cgm.exportType = 1
app.cgm.ellipseAsPoly
Returns and sets if ellipses should be exported as polylines as boolean.
app.cgm.ellipseAsPoly = FALSE
app.cgm.layerToPicture
Returns and sets if a separate picture should be generated for every layer as boolean.
app.cgm.layerToPicture = FALSE
app.cgm.nativeCGM
Returns and sets if CGM should be used as the native file format as boolean.
app.cgm.nativeCGM = FALSE
app.cgm.changeURL
Returns and sets if .idr should be replaced with .cgm in links as boolean.
app.cgm.changeURL = TRUE
app.cgm.vdcExtentMode
Returns and sets the VDC extent mode as integer. Allowed values are 0 for “include all points”, 1 for “bounding box” and 2 for “page size”.
app.cgm.vdcExtentMode = 2
app.cgm.styleHandling
Returns and sets the linestyle handling mode as integer. Allowed values are:
1
“map”
2
“split”
3
“LETD if not solid”
4
“LETD always”
app.cgm.styleHandling = 3
app.cgm.extension
Returns and sets the file extension as string.
app.cgm.extension = "cgm"
app.cgm.version
Returns and sets the CGM version as integer. Allowed values are 1 for “1”, 2 for “2”, 3 for “3” and 4 for “4”.
app.cgm.version = 1
app.cgm.createXCF
(Applies to Arbortext IsoDraw 7.0 F000 and later.)
Returns and sets the enabled or disabled state of XML companion file (XCF) export as integer. This property corresponds to the advanced CGM export option, Generate XML companion files, on the CGM Export preferences panel. Allowed values are 0 and 1.
* 
Some CGM export profiles do not support XCF export.
0
Do not write XCF during CGM export.
1
Write XCF during CGM export.
If a macro changes the value of app.cgm.createXCF, the change is saved as the new Generate XML companion files preference setting.
The macro recorder will not record changes to this property.
app.cgm.createXCF = 1