comet.CElement¶
- class comet.CElement¶
This section describes all functions for the CElement class.
A CElement represents a subtemplate used or to be used in the repeating elements area build mode.
Methods¶
- CElement.getID()¶
Get the record ID for this element.
- Returns:
The record ID
- Return type:
- Available:
InDesign® comet_pdf®
- CScript:
- CElement.setID(ID)¶
Set the record ID for this element.
- Parameters:
ID (CIDType) – The new record ID
- Returns:
None
- Available:
InDesign® comet_pdf®
- CScript:
- CElement.getTemplateID()¶
Get the template ID for this element.
- Returns:
The template ID
- Return type:
- Available:
InDesign® comet_pdf®
- CScript:
- CElement.setTemplateID(ID)¶
Set the template ID for this element.
- Parameters:
ID (int) – The new template ID
- Returns:
None
- Available:
InDesign® comet_pdf®
- CScript:
- CElement.getClassID()¶
Get the class ID for this element.
- Returns:
The class ID
- Return type:
- Available:
InDesign® comet_pdf®
- CScript:
- CElement.setClassID(ID)¶
Set the class ID for this element.
- Parameters:
ID (int) – The new class ID
- Returns:
None
- Available:
InDesign® comet_pdf®
- CScript:
- CElement.getFormatString()¶
Get format string for this element.
- Returns:
The format string
- Return type:
- Available:
InDesign® comet_pdf®
- CScript:
- CElement.setFormatString(formatString)¶
Set the format string for this element.
- Parameters:
formatString (str) – The new format string
- Returns:
None
- Available:
InDesign® comet_pdf®
- CScript:
- CElement.getMasterFrame()¶
Get the main frame of a repeated element.
- Returns:
Main frame of a repeated element.
The call only returns a valid value when this element was created by
CFrame.getBuiltElements()
.Otherwise the return value is None.
- Return type:
CFrame | None
- Available:
InDesign® comet_pdf®
- CScript:
- CElement.getFrames()¶
Get the built frames of this element.
- Returns:
The built frames.
The call only contains valid values when this element was created by
CFrame.getBuiltElements()
.Otherwise the return value is an empty list.
- Return type:
- Available:
InDesign® comet_pdf®
- CScript:
- CElement.getOrderNumber()¶
Get the order number of this element. Order numbers are usually in increments of 10.
- Returns:
The order number. The call only contains valid values when this element was created by
CFrame.getBuiltElements()
.Otherwise the return value is -1.
- Return type:
- Available:
InDesign® comet_pdf®
- CScript: