
499
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
Syntax
SimpleSave(saveAsName, interactive)
Parameters
NewGraphicObject
Description
Creates the following types of graphic objects:
•
Arc
•
Ellipse
•
Flow
•
Group
•
Inset
•
Line
•
Math
•
Polyline
•
Polygon
•
Rectangle
•
RoundRect
•
TextFrame
•
TextLine
•
UnanchoredFrame
Note:
To create an anchored frame, use NewAnchoredObject().
If there is more than one object within the parent frame, the
NewGraphicObject()
method adds the new ESTK
graphic object to the end of the linked list of child objects. That is, it puts it in the front of the back-to-front draw order.
The method automatically takes care of updating the object’s
PrevGraphicInFrame
and
NextGraphicInFrame
properties. The
NewGraphicObject()
method gives the new API graphic object a set of arbitrary default properties.
The method returns the newly created graphic object, on success.
On failure, the method returns one of the following values to
FA_errno
:
Parameter name
Data Type
Optional
Description
saveAsName
string
No
The absolute path in which to save the document or book.
interactive
int
No
Specifies whether the FrameMaker product displays messages
and warnings to the user. Setting this to True displays messages
and warnings.
Error
Reason
Constants.FE_BadDocId (-2)
Invalid document.
Constants.FE_BadObjId (-3)
Invalid object.