Selecting file formats

 

You have many options for requesting file format information which you can then use to assign file formats to documents.

image\tip_shg.gif Tip: Pages and layers in multipage and multilayer documents

To request

Use

The format identifier of a document, page, or layer

IN_GetFileFormat

The format identifier for the data in the given file

IN_GetFileType

The name of a file format, given its identifier

IN_GetFileTypeName

The extension of a file format, given its identifier

IN_GetFormatExtension

The valid file formats in your edition of Imagenation for rasters, vectors, or multipages

IN_GetFormatList

The type of layer, raster or edit, given its identifier

IN_GetLayerFormat

For a list of available file formats, click File Formats.

To select a default format for bilevel raster layers or edit layers:

· Use the IN_SetDefaultLayerFormat function.

To set the file format of a document, page, or layer:

· Use the IN_SetFileFormat function. Specify a document ID, page ID, or layer ID as the objectID.

The ReadOnlyMods flag controls whether the user can activate and change a layer that contains a file format that Imagenation does not write.

To request and set the read-only flag:

· Use the IN_GetReadOnlyModsFlag and the IN_SetReadOnlyModsFlag functions.

To define the scale settings when loading CAD files:

· Use the IN_SetFormatInputScaleFactor and the IN_SetFormatInputScaleToFit functions.

To request the scale settings defined for CAD files:

· Use the IN_GetFormatInputScaleFactor and the IN_GetFormatInputScaleToFit functions.

See also

Defining COLD-format files

Scaling CAD documents