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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

How can I set a folder path for a given type using OIR in Windchill 10.2 m20?

ptc-5452031
1-Newbie

How can I set a folder path for a given type using OIR in Windchill 10.2 m20?

Hello everybody,

In the Windchill 10.1 M40, was possible to configure a folder path fixed to create some Types.

<!-- set the folder -->

<AttrValue id="folder.id" algorithm="com.ptc.core.foundation.folder.server.impl.FolderPathAttributeAlgorithm">

<Arg>/Default/THALES/RIDs</Arg>

</AttrValue>

But now In Windchill 10.2 M20 this process doesn't work.

Does anybody already made it in Windchill 10.2 M20???

Thanks

ACCEPTED SOLUTION

Accepted Solutions

10.2M020 is working for me with following xml code

<!-- set the folder -->

<AttrValue id="folder.id" algorithm="com.ptc.core.foundation.folder.server.impl.FolderPathAttributeAlgorithm">

<Arg>/Default/Parts</Arg>

</AttrValue>

<!-- specify AttrConstraint tag -->

<AttrConstraint id="folder.id" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">

<Value algorithm="com.ptc.core.rule.server.impl.GetServerPreGeneratedValue"/>

<Value algorithm="com.ptc.core.rule.server.impl.GetImmutableConstraint"/>

</AttrConstraint>

View solution in original post

3 REPLIES 3

Hell,

It's necessary to add this line in OIR :

<AttrConstraint id="folder.id" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">

<Value algorithm="com.ptc.core.rule.server.impl.GetServerPreGeneratedValue"/>

<Value algorithm="com.ptc.core.rule.server.impl.GetRendererConstraint">

<Arg>SelectGeneratedFolderByDefault</Arg>

</Value>

</AttrConstraint>

Best regards

Pascal

10.2M020 is working for me with following xml code

<!-- set the folder -->

<AttrValue id="folder.id" algorithm="com.ptc.core.foundation.folder.server.impl.FolderPathAttributeAlgorithm">

<Arg>/Default/Parts</Arg>

</AttrValue>

<!-- specify AttrConstraint tag -->

<AttrConstraint id="folder.id" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">

<Value algorithm="com.ptc.core.rule.server.impl.GetServerPreGeneratedValue"/>

<Value algorithm="com.ptc.core.rule.server.impl.GetImmutableConstraint"/>

</AttrConstraint>

Thank you!!!

It's Works with me too!!!

=D

Announcements


Top Tags