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

We are happy to announce the new Windchill Customization board! Learn more.

Hide Part "View" in create UI, use OIR to set "View" to "Design"

jthornton
8-Gravel

Hide Part "View" in create UI, use OIR to set "View" to "Design"

Part masters,

We're finally deploying Parts and E-BOMs.  At this point just planning on using the OOTB Design View but having it be not selectable and not visible to users in the Part create screen.

What's the right approach for setting the View in the OIR and hidding the value in the UI?  Does anyone have a working example?

We've followed article below but got stuck with the OIR working.  The View isn't being set correctly.  We're talking to tech support but thought someone else would have this working

https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS24963


Jeff

4 REPLIES 4
bsindelar
6-Contributor
(To:jthornton)

The "Design" view should be the automatic default set in the create part wizard, so all you might need to do is go to the Type and Attribute Manager and for this particular object type (WTPart base type, assuming your question), you should be able to edit the type, go to Layouts, then select the "Create" layout and simply remove the "View" attribute by dragging it back over to the left-side window.  This keeps the View attribute applied to the part, but removes it from the create layout.  No OIR modification would be necessary here.

If you are trying to avoid the manufacturing view altogether, you may also want to make this change for other layouts, particularly the "Edit" layout.

If you are ever looking for more specific or in-depth help as you get more involved, feel free to send me an e-mail at robert.sindelar@eccellent.com.  We have several years experience in all thing Windchill and are here to help!

I think it may be a bug in 10.0 M040 since we've done as suggested however some attributes like View fail to be set at all if removed from the UI.  That's essentially the issue

bsindelar
6-Contributor
(To:jthornton)

Maybe try to make the view field immutable by adding this to the OIR:

   <AttrConstraint id="teamTemplate.id" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">     
         <Value algorithm="com.ptc.core.rule.server.impl.GetServerAssignedConstraint"/>                   
         <Value algorithm="com.ptc.core.rule.server.impl.GetImmutableConstraint"/>
           </AttrConstraint>
           <AttrConstraint id="teamTemplate" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
         <Value algorithm="com.ptc.core.rule.server.impl.GetServerAssignedConstraint"/>
         <Value algorithm="com.ptc.core.rule.server.impl.GetImmutableConstraint"/>
           </AttrConstraint> 
bsindelar
6-Contributor
(To:jthornton)

I sent that too early by mistake.  Code should read:

<AttrConstraint id="view.id" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">     
    <Value algorithm="com.ptc.core.rule.server.impl.GetServerAssignedConstraint"/>                   

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

</AttrConstraint>

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

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

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

</AttrConstraint>

Top Tags