Relationship examples - SmartPlant Foundation - Help

SmartPlant Foundation Help

PPMProductFamily
Asset Information Management
PPMProduct
SmartPlant Foundation
PPMCategory
Help
SPFVersion_custom
2019 (10.0)
Version_Integration
(none)
Version_SPM_custom
2019 (10.0)
Version_SPPID
8.0.0
Version_SDAConnectorforTruView
(none)
Version_Fusion
(none)
Version_MTR
(none)
Version_SPO
(none)
Version_SPR
13.x(2018)
Version_TruView
(none)
Version_SDV
(none)

Creating and terminating relationships

NLF examples

The following is an example of creating a RelDefAccessGroup relationship:

.SPFRelDefAccessGroup

..Name1|SPFDocRevisionLabel

..Name2|SystemAdmin

..ContainerID|DEVAuthoring.NLF

The following is an example of terminating the relationship created above.

.SPFRelDefAccessGroup

..Name1|SPFDocRevisionLabel

..Name2|SystemAdmin

..Action|Terminate

The following is an example of creating a relationship with relationship properties and relationships. This example configures the RelDefAccessGroup relationship with all its properties, such as Manage Access Groups.

.SPFRelDefAccessGroup

..Name1|SPFDocRevisionLabel

..Name2|SystemAdmin

..ContainerID|DEVAuthoring.NLF

..SPFRelDragDrop1on2|True

..SPFRelDragDrop2on1|True

..SPFRelExpand1to2|True

..SPFRelExpand2to1|True

..SPFCondition|CND_IsObj1WORKING|SPFRelDefAccessGroupDDCondition_12

Creating a relationship to an existing relationship

The following load file is an example of creating a condition relationship.

# Create the drag drop condition relationship on the relDefAccessgrouop relationship

.SPFRelDefAccessGroupDDCondition

..Name1|Rel|SPFRelDefAccessGroup|SPFDocRevisionLabel|DocumentUpdate

..Name2|IsObj1WORKING

..ContainerID|DEVAuthoring.NLF

XML example

The following is an example of using a fully qualified XML-based load file with this operation. This excerpt was taken from the model build file ADMIN_DocMgt.xml available on Smart Support. For more information, see Find sample data on Smart Support.

To relate the access group to the RelDef, do the following:

  <Rel>

    <IObject UID="SPFDocRevisionLabel.DocumentUpdate" Name="" Description="" ContainerID="Core.DocMgt" />

    <IRel UID2="MAG_DocumentUpdate" DefUID="SPFRelDefAccessGroup" UID1="SPFDocRevisionLabel" OrderValue="0" IsRequired="False" />

    <ISPFRelDefAccessGroup SPFRelTerminate="True" SPFRelDragDrop2on1="True" />

  </Rel>

To create the relationship between the RelDef-access group relationship and the condition, do the following:

  <Rel>

    <IObject UID="SPFDocRevisionLabel.DocumentUpdate.CND_IsObj1WORKING" Name="" Description="" ContainerID="" />

    <IRel UID2="CND_IsObj1WORKING" DefUID="SPFRelDefAccessGroupDDCondition" UID1="SPFDocRevisionLabel.DocumentUpdate" OrderValue="0" IsRequired="False" />

  </Rel>

Terminating a relationship to relationship

NLF example

The following load file is an example of terminating a relationship.

# Terminate the drag drop condition relationship on the relDefAccessgroup relationship

.SPFRelDefAccessGroupDDCondition

..Name1|Rel|SPFRelDefAccessGroup|SPFDocRevisionLabel|DocumentUpdate

..Name2|IsObj1WORKING

..Action|Terminate

XML example

The following is an example of using a fully qualified XML-based load file with this operation. This excerpt was taken from the model build file ADMIN_DocMgt.xml available on Smart Support. For more information, see Find sample data on Smart Support.

  <DeleteInstruction>

    <IObject UID="Delete_SPFLLALineListRecordDocumentVersion.ISPFAuthPublishableDocumentVersion" Name="Delete_SPFLLALineListRecordDocumentVersion.ISPFAuthPublishableDocumentVersion" />

    <IRefObject RefClass="" RefUID="SPFLLALineListRecordDocumentVersion.ISPFAuthPublishableDocumentVersion" RefName="" />

    <IInstruction />

    <IDeleteInstruction DeleteTransition="Terminated" />

  </DeleteInstruction>