
429
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
The method returns
FE_Success
on success. If the method fails, it assigns one of the following values to
FA_errno
:
Returns
int
Syntax
SimpleImportElementDefs(fromDocOrBook, importFlags)
Parameters
GetUniqueObject
Description
The
GetUniqueObject()
method retrieves the object from its persistent unique identifier (UID). The FrameMaker
product assigns a UID to each object in a document or book that is not identified by a name. The UID, unlike the
object's ID, does not change from one session to another.
The GetUniqueObject() method returns the object on success. On failure, it sets
FA_errno
to one of the following
values:
Returns
Object
Syntax
GetUniqueObject(objType, unique)
Constants.FF_IED_DO_NOT_IMPORT_EDD
(0x0004)
If the source document is an EDD, setting this value does NOT treat it as an EDD; instead the
method just imports its element catalog.
Constants.FF_IED_NO_NOTIFY (0x0008)
Do not issue the Constants.FA_Note_PreImportElemDefs (64) or
Constants.FA_Note_PostImportElemDefs (65) notifications.
Error
Reason
Constants.FE_WrongProduct (-60)
Current product version is not Structured FrameMaker.
Constants.FE_BadDocId (-2)
Invalid book or document.
Parameter name
Data Type
Optional
Description
fromDocOrBook
Doc|Book
No
The document or book from which to import element
definitions.
importFlags
int
No
Specifies how to import formats.
Error
Reason
Constants.FE_BadDocId (-2)
Invalid document or book.
Constants.FE_TypeUnNamed (-19)
Objects of the specified type are not identified by UIDs.
Constants.FE_NameNotFound (-20)
Object with specified UID could not be found.
Flag
Meaning