Skip to main content
1-Visitor
September 4, 2014
Solved

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

  • September 4, 2014
  • 3 replies
  • 1735 views

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

Best answer by BjoernRueegg

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>

3 replies

1-Visitor
September 4, 2014

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

17-Peridot
September 4, 2014

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>

1-Visitor
September 4, 2014

Thank you!!!

It's Works with me too!!!

=D