comet.CIDType¶
- class comet.CIDType¶
A CIDType object is an object comprised of three int values and a str value forming the so called RecordID.
Several other helper functions are provided for extracting data from the str part of the ID when connected to a priint:suite publishing server.
See also
- Module
idtype
Factory functions for CIDType objects and helpers for extracting values.
Methods¶
- CIDType.getID() int ¶
Get the first number of this ID
- Returns:
First number ID
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CIDType.getID2() int ¶
Get the second number of this ID
- Returns:
Second number ID
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CIDType.getID3() int ¶
Get the third number of this ID
- Returns:
Third number ID
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CIDType.getStringID() str ¶
Get the string ID of this ID
- Returns:
The string ID
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CIDType.getValues() tuple[int, int, int, str] ¶
This is a convenience function for returning all four ID values
- Returns:
The ID as (id1, id2, id3, stringID)
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CIDType.setID(ID: int) None ¶
Set the first number of this ID
- Parameters:
ID (int) – The value to set
- Return type:
None
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CIDType.setID2(ID: int) None ¶
Set the second number of this ID
- Parameters:
ID (int) – The value to set
- Return type:
None
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CIDType.setID3(ID: int) None ¶
Set the third number of this ID
- Parameters:
ID (int) – The value to set
- Return type:
None
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CIDType.setStringID(ID: str) None ¶
Set the string ID of this ID
- Parameters:
ID (str) – The value to set
- Return type:
None
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CIDType.setValues(values: tuple[int, int, int, str]) None ¶
This is a convenience function for setting all four ID values
- Parameters:
- Return type:
None
- Raises:
TypeError – When parameter types are invalid
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CIDType.getRecordID() str ¶
Get the RecordID part of a StringID.
- Returns:
Record ID part of the string ID
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- See also:
- CScript:
- CIDType.getGroupID() str ¶
Get the GroupID part of a StringID.
- Returns:
Group ID part of the string ID
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- See also:
- CScript:
- CIDType.getEntityID() str ¶
Get the EntityID part of a StringID.
- Returns:
StringID in the PublishingServer schema
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- See also:
- CScript:
- CIDType.getEntityClass() str ¶
Get the EntityClass part of a StringID.
- Returns:
Entity class part of the string ID
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- See also:
- CScript:
- CIDType.getParentRecordID() str ¶
Get the Parent RecordID part of a StringID.
- Returns:
Parent record ID part of the string ID
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- See also:
- CScript:
- CIDType.getParentGroupID() str ¶
Get the Parent GroupID part of a StringID.
- Returns:
Parent group ID part of the string ID
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- See also:
- CScript:
- CIDType.getParentEntityID() str ¶
Get the Parent EntityID part of a StringID.
- Returns:
Parent entity ID part of the string ID
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- See also:
- CScript: