cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Exporting relationship constraints

tstacy
12-Amethyst

Exporting relationship constraints

Is there a way to export relationship constraints into an xml file so that they can be imported into a different environment? I can export the link type definition, but it doesn't include relationship constraints. Any ideas?

ACCEPTED SOLUTION

Accepted Solutions

in 10.0 it was not possible ... as you said ... link type definition but not relationship constraints ...

need to create the XML manually

for example

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE NmLoader SYSTEM "standardX20.dtd">

<NmLoader>

<!-- ***************************************************** -->
<!-- ** Configurable Link Valid Relationships ** -->
<!-- ***************************************************** -->

<csvCreateDefaultAssociationConstraintItem handler="com.ptc.core.meta.type.mgmt.server.impl.association.LoadDefaultAssociationConstraintItem.createDefaultAssociationConstraintItem" >
<csvlinkType>com.richemont.MyLink</csvlinkType>
<csvroleAType>com.ptc.myWTpart</csvroleAType>
<csvroleBType>com.ptc.myObject</csvroleBType>
</csvCreateDefaultAssociationConstraintItem>

</NmLoader>

View solution in original post

4 REPLIES 4
jluo
1-Visitor
(To:tstacy)

windchill wt.load.LoadFromFile -d DefinitionExporterType.xml

export all Attribute Definizer and LWC Constraint rule.

tstacy
12-Amethyst
(To:jluo)

That command only exports the link type definition, not the relationship constraints. Thanks anyway.

in 10.0 it was not possible ... as you said ... link type definition but not relationship constraints ...

need to create the XML manually

for example

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE NmLoader SYSTEM "standardX20.dtd">

<NmLoader>

<!-- ***************************************************** -->
<!-- ** Configurable Link Valid Relationships ** -->
<!-- ***************************************************** -->

<csvCreateDefaultAssociationConstraintItem handler="com.ptc.core.meta.type.mgmt.server.impl.association.LoadDefaultAssociationConstraintItem.createDefaultAssociationConstraintItem" >
<csvlinkType>com.richemont.MyLink</csvlinkType>
<csvroleAType>com.ptc.myWTpart</csvroleAType>
<csvroleBType>com.ptc.myObject</csvroleBType>
</csvCreateDefaultAssociationConstraintItem>

</NmLoader>

That's what I thought. Thanks for confirming it. I have created my XML manually. Thank you.

Announcements


Top Tags