Go to:
Return value. Related commands. Flags. Examples.
Synopsis
translator [flags] [translator]
Set or query parameters associated with the file translators.
Return value
boolean or string array depending upon which flags are specified.
Related commands
workspaceFlags
defaultOptions, extension, fileCompression, filter, list, optionsScript, readSupport, writeSupport
Long name (short name) | [argument types] | Properties |
---|
-list
(-l)
|
|  |
|
Return a string array of all the translators that are loaded.
|
|
-defaultOptions
(-do)
| string |   |
|
Return/set a string of default options used by this translator.
|
|
-optionsScript
(-os)
|
|  |
|
Query the name of the options script to use to post the user
options UI. When this script is invoked it will expect the name of the
parent layout in which the options will be displayed as well as the name
of the callback to be invoked once the apply button has been depressed
in the options area.
|
|
-readSupport
(-rs)
|
|  |
|
Returns true if this translator supports read operations.
|
|
-writeSupport
(-ws)
|
|  |
|
Returns true if this translator supports write operations.
|
|
-fileCompression
(-cmp)
| string |   |
|
Specifies the compression action to take when a file is saved.
Possible values are "compressed", "uncompressed" "asCompressed".
|
|
-extension
(-ext)
|
|  |
|
Returns the default file extension for this translator.
|
|
-filter
(-f)
|
|  |
|
Returns the filter string used for this translator.
|
|
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can be used more than once in a command
|
Examples
translator -q -rs "dxf"; // returns true if dxf files can be
// read.