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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Unable to rename in the Number Column

msexton
1-Newbie

Unable to rename in the Number Column



My predecessor at my current company we are not able to change the Number. We can change the Name and File Name with no problem.


10 REPLIES 10
grocha
1-Newbie
(To:msexton)

Edit the number of an object is achieved through OIR.

Find the Object Initialization Rule related to the object you want to enable
renumbering and comment out the argument below for the AttrConstraint
id="number".



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



You should check if this change has any affect in previous customizations or
workflows.








Guilherme, does<value algorithm="com.ptc.core.rule.server.impl.GetImmutableConstraint"/"> apply just at time of create or forever afterwards? Regards Darren

MikeLockwood
22-Sapphire I
(To:msexton)

Rename (renumber) acts on the "master."

User permission (Modify Identity) has to be applied for all states that currently exist for the object in order for the user to be able to perform this action. One can see what states exist for any object from the Maturity History table.


But... (there's always more to the story)
It's fairly common to allow users to rename at the first working state (e.g. In Work) but not at Released or other states that result from promotion or another process. If this is the case in your system the following would be true. This is a very good best practice and should only be changed (if in place) after careful consideration.

Initial Condition: CAD PRT with these Versions exists
A.1 In Work
A.2 In Work
MikeLockwood
22-Sapphire I
(To:msexton)

In general, OIR's are only involved during creation - and in a very limited way on Revise.
Editing the Number via OIR is something that I cannot see any way to do.

Mike


This is exactly were I am trying to get the system set to. But the way it is right now I have admin rights and I can't even renumber a file.



Marshall Sexton
Master Modeler


NABI USA

MikeLockwood
22-Sapphire I
(To:msexton)

How does your screen differ from this?

[cid:image001.png@01CF18E9.73FE83A0]

Mine number column is grayed out.

At one time auto numbering was turned on. We turned the auto number off but missed something in the
process to be able to re-number the existing components.








MikeLockwood
22-Sapphire I
(To:msexton)

As someone else said earlier today, must be the OIR (I stand corrected). PTC has not been consistent in specifying how to disable autonumbering.
Need to get tech support involved.

Will do, thanks all. I'll post the solution when I have one.





It is in the object OIR in each context or organization:


You will see this for autonumber generation for WTPart OIR:


<arg>{GEN:wt.enterprise.SequenceGenerator:WTPARTID_seq:10:0}</arg>
</attrvalue>



Just add this in the bottom of the OIR:



<attrconstraint id="number" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
</attrconstraint>


Hope this helps.


Patrick

In Reply to Marshall Sexton:





My predecessor at my current company we are not able to change the Number. We can change the Name and File Name with no problem.


Top Tags