
432
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
NewSeriesObject
Description
The
NewSeriesObject()
method creates a series object. Series objects include the following object types:
•
BodyPage
•
BookComponent
•
Pgf
The method allows you to specify the position in the series at which to add the new object.
The method returns the location of the new object, on success. If the method fails, it sets
FA_errno
to one of the
following values:
Returns
Object
Syntax
NewSeriesObject(objType, previous)
Parameters
NewSeriesBookComponent
Description
The
NewSeriesBookComponent()
method creates a Book Component.
The method allows you to specify the position in the series at which to add the new object.
See the
NewSeriesObject
method for more information.
Error
Reason
Constants.FE_BadDocId (-2)
Invalid book.
Constants.FE_BadNew (-23)
Object cannot be created.
Constants.FE_BadObjId (-3)
Invalid object.
Constants.FE_NotBodyPage (-24)
The
previous
parameter must specify the location of a body page.
Constants.FE_NotPgf (-25)
The
previous
parameter must specify the location of a paragraph.
Constants.FE_NotBookComponent (-26)
The previous parameter must specify the location of a book component.
Parameter name
Data Type
Optional
Description
objType
int
No
The type of object to create (for example, FO_BodyPage or
FO_Pgf).
previous
Object
No
The location of the object in the series after which to add the
new object. To add a paragraph at the start of a flow, specify the
location of the flow. To add an object at the beginning of any
other series, specify 0.