[Integration Kit Contents] [Integration Kit What's New] [Integration Kit Function Index] [More Documentation] [PTC]

Direct Attributes Functions

Function Index Top of Page

SD-DB-INQ-PROTECTED  [function]

(sd-db-inq-protected sel-item)
Description:
Inquires the model manager protected flag for a sel item.
Parameters:
sel-item {SEL_ITEM}
A single sel item to inquire the protected flag from.
Return Value:
T - the protected flag is set.
nil - the protected flag is not set.
Example:
(setf protected (sd-db-inq-protected (sd-pathname-to-obj "/p1")))

Function Index Top of Page

SD-DB-SET-PROTECTED  [function]

(sd-db-set-protected sel-item)
Description:
Sets the model manager protected flag on a specific sel item. This will set the sel item as read only and flag the sel item so that no Model Manager operation will remove the read only flag.
Parameters:
sel-item {SEL_ITEM}
A single sel item to set the protected flag on.
Return Value:
T - the protected flag was set.
nil - the protected flag was not set.
Example:
(sd-db-set-protected (sd-pathname-to-obj "/p1"))

Function Index Top of Page

SD-DB-CLEAR-PROTECTED  [function]

(sd-db-clear-protected sel-item)
Description:
Clears the model manager protected flag from a specific sel item. This will allow model manager to take ownership of the read only flag again, and update it as it sees fit.
Parameters:
sel-item {SEL_ITEM}
A single sel item to clear the protected flag from.
Return Value:
T - the protected flag was removed.
nil - the protected flag was not removed, possibly as it wasnt there.
Example:
(sd-db-clear-protected (sd-pathname-to-obj "/p1"))

Function Index Top of Page

SD-DB-SET-PREFERRED-DOC-CLASS  [function]

(sd-db-set-preferred-doc-class sel-item class-name)

Description:
Sets the preferred document class which model manager will use when saving the sel item.
Parameters:
sel-item {SEL_ITEM}
A single sel item to set the doc class on.
class-name {STRING}
A document class name.
Return Value:
T - the class name was set.
nil - the class name was not set.
Example:
(setf rtn (sd-db-set-preferred-doc-class (sd-pathname-to-obj "/p1") "MODEL_3D"))
(setf rtn (sd-db-set-preferred-doc-class (sd-pathname-to-obj "/p1") "SECOND_MODEL_3D_CLASS"))
(setf rtn (sd-db-set-preferred-doc-class (sd-pathname-to-obj "/lib1") "CORP_LIBRARY_3D"))

Function Index Top of Page

SD-DB-SET-PREFERRED-PART-CLASS  [function]

(sd-db-set-preferred-part-class sel-item class-name)

Description:
Sets the preferred part class which model manager will use when saving the sel item.
Parameters:
sel-item {SEL_ITEM}
A single sel item to set the doc class on.
class-name {STRING}
A part class name.
Return Value:
T - the class name was set.
nil - the class name was not set.
Example:
(setf rtn (sd-db-set-preferred-part-class (sd-pathname-to-obj "/p1") "MASTERDATA"))
(setf rtn (sd-db-set-preferred-part-class (sd-pathname-to-obj "/p1") "CUSTOM_PART_CLASS"))
[Integration Kit Contents] [Integration Kit What's New] [Integration Kit Function Index] [More Documentation] [PTC]
© 2024 Parametric Technology GmbH
(a subsidiary of PTC Inc.), All Rights Reserved