Skip to main content

AIXFormat

サマリー

The AIXFormat object represents a collection of Adobe Illustrator Exchange (AIX) file properties that can be configured and used with the export method on the Layout, MapFrame, and MapView objects to create an output AIX file.

ディスカッション

AIX files are used with the ArcGIS Maps for Adobe Creative Cloud extension. With the extension, vector and raster map content is converted into editable, layered artwork for an improved editing experience in Adobe Illustrator . Once opened in Illustrator , the file can be used for high-end graphic design or map finishing workflows and migrated across the other Adobe Creative Cloud applications.

The CreateExportFormat method can be used to create a AIXFormat object if the format parameter is set to AIX. The returned AIXFormat object contains all the properties associated with generating an AIX file. These properties can be modified accordingly to produce different output results.

注意:

For more information about the AIXFormat, refer to the Export to AIX help topic.

プロパティ

名前 説明 データ タイプ

clipToElements

(読み取り/書き込み)

If set to True, include the areas of the page that have map or layout element content only, rather than exporting the entire page. This property only applies when exporting a Layout object. The default value is False.

Boolean

convertMarkers

(読み取り/書き込み)

Controls whether marker symbols based on font characters are exported as font characters or as polygons. Set this option to True to view the output on a machine that does not have the appropriate fonts installed when you cannot embed the fonts due to licensing or file format restrictions. This does not apply to text, only marker symbols based on fonts. The default value is False.

Boolean

embedColorProfile

(読み取り/書き込み)

Include the color profile set for the map or layout in the exported file. This helps create consistency in colors when the file is viewed on different devices. If the profile is not embedded, or a non-color-managed viewer is used, the colors may be significantly different than what is seen on-screen. The default value is True.

注意:

This option is only available when color management is enabled. If color management is not enabled and the colorspace is set to CMYK, the CMYK colorspace is still included in the export. This may cause some colors to appear differently when viewing the exported file.

Boolean

embedFonts

(読み取り/書き込み)

Include embeddable fonts in the exported file to maintain font consistency across different platforms. Fonts that do not support embedding are not included, regardless of this setting. The default value is True.

注意:

To correctly edit text as graphics, Illustrator requires fonts to be installed and accessible. Check the sharing permissions before embedding and sharing fonts. For high-range characters or ligatures, font embedding should be used to ensure proper addressing of these high-range characters. In the case where a font with high-range characters or ligatures cannot be embedded, check the Draw glyphs as geometry property on the text symbol.

Boolean

filePath

(読み取り/書き込み)

A string that represents the system path and file name, including the extension, for the exported file.

String

height

(読み取り/書き込み)

The height, in pixels, of the map area to be exported. This property only applies when exporting a MapView object. The default value is 960.

Double

imageCompression

(読み取り/書き込み)

A string constant that represents the compression scheme used to compress image or raster data in the output file. The default value is ADAPTIVE.

  • ADAPTIVE—JPEG and Deflate compression are combined, depending on the contents of the stream. This works well for most cases.

  • DEFLATE—Lossless compression method that works well for most cases.

  • JPEG—Lossy compression method that works well for photographic-type images.

  • JPEG2000—Higher quality compression with file sizes smaller than JPEG. This compression is lossless if jpeg_compression_quality is set to 100.

  • LZW—Lossless compression method using a code table.

  • NONE—Compression is not applied.

  • RLE—Run-length encoded compression, a lossless compression method that works well if there are large areas of the same color.

String

imageCompressionQuality

(読み取り/書き込み)

The amount of image compression applied to the export. Low quality has a smaller file size but less clear data; max quality has a larger file size but crisper data. This only applies when certain compression types are used. The default value is 80.

Integer

imageQuality

(読み取り/書き込み)

The amount of image resampling. The property determines the effective resolution of raster content on output. For instance, if imageQuality is set to BETTER, a resample ratio of 1:2, and the output resolution is set to 300 dpi, the raster content is output at approximately 150 dpi. In many cases, the raster data can be included at a lower dpi than the vector data without visibly affecting quality, reducing the output file size. The default value is BEST.

  • BEST—An output image quality resample ratio of 1

  • BETTER—An output image quality resample ratio of 2

  • NORMAL—An output image quality resample ratio of 3

  • FASTER—An output image quality resample ratio of 4

  • FASTEST—An output image quality resample ratio of 5

String

removeLayoutBackground

(読み取り/書き込み)

Remove the page background as a graphic when exporting. This property only applies when exporting a Layout object. The default value is True.

Boolean

resolution

(読み取り/書き込み)

The effective dpi of the output vector data. The default value is 96.

注意:

When exporting a MapView, the dpi is calculated automatically using system dpi scaling and therefore this value will be ignored.

Integer

showSelectionSymbology

(読み取り/書き込み)

Show selected features in the map or map frame as selected in the output file. Setting this value to False does not affect selection within the view, only in the output file. The default value is False.

Boolean

width

(読み取り/書き込み)

The width, in pixels, of the map area to be exported. This property only applies when exporting a MapView object. The default value is 960.

Double

方法

setImageCompression(image_compression)

A string constant that represents the compression scheme used to compress image or raster data in the output file.

名前 説明 データ タイプ

image_compression

Below is a list of valid strings.

  • ADAPTIVE—JPEG and Deflate compression are combined, depending on the contents of the stream. This works well for most cases.

  • DEFLATE—Lossless compression method that works well for most cases.

  • JPEG—Lossy compression method that works well for photographic-type images.

  • JPEG2000—Higher-quality compression with file sizes smaller than JPEG . This compression is lossless if imageQuality is set to 100.

  • LZW—Lempel-Ziv-Welch, a lossless compression method using a code table.

  • NONE—Compression is not applied.

  • RLE—Run-length encoded compression, a lossless compression method that works well if there are large areas of the same color.

String

setImageQuality(image_quality)

A string constant that sets the amount of image resampling.

The value determines the effective resolution of raster content on output. For instance, if the output image quality ratio is set to 1:2, an image_quality value of BETTER, and the output resolution is set to 300 dpi, the raster content is output at approximately 150 dpi. In many cases, the raster data can be included at a lower dpi than the vector data without visibly affecting quality, reducing the output file size.

名前 説明 データ タイプ

image_quality

Below is a list of valid strings.

  • BEST—An output image quality resample ratio of 1

  • BETTER—An output image quality resample ratio of 2

  • NORMAL—An output image quality resample ratio of 3

  • FASTER—An output image quality resample ratio of 4

  • FASTEST—An output image quality resample ratio of 5

String

コードのサンプル

AIXFormat example

The following script exports a layout to AIX format using default property values.

p = arcpy.mp.ArcGISProject('current')
lyt = p.listLayouts()[0]

aix = arcpy.mp.CreateExportFormat('AIX', r'C:\Temp\Output.aix')

lyt.export(aix)