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
Hello all, I have a tricky one, we (our customer) needs to find a way to do the following:
In this scenario we (our customer) is working "filename centric", so the filename is very important, the number has no significance other than uniqueness.
What happeneing at the moment:
From what I can see, when auto-numbering from Creo is enabled, the File New or Save-as actions will pull a number from the sequence and assign it to the filename of the Creo file in client side workspace, then upon upload the filename is mapped to the Number, so when we (our customer) is editing the filename before upload it will always be inherited as the Number.
Is there some way in the OIR or other methods to force the number to be assigned from the sequence on upload or checkin instead of taking the value from filename?
Apparently this way all working before an upgrade a couple of years ago, no document exist explaining how it was working though.
Any help appreciated.
Khimani, hi
Is the preference below set to No?
Synchronize CAD File Name with CAD Document Number
|
No
|
I'm not sure if this preference is a two-way street or not but if it is having it set to Yes might create the behavior you're seeing.
David
Hi David, I have tried that preference but it doesnt make any difference, I think that preference changes the default behaviour of the checkbox when creating a new CAD document in workspace. Thanks though.
Khimani,
This should be able to be done with a custom OIR algorithm.
Have you tried going down that road yet?
David
Hello @d_graham ,
In my opinion custom OIR algorithm does not help, because the number OIR rule is not checked during upload in a workspace.
If so, the OIR constraint would have work. (GetServerAssignedConstraint, GetImmutableConstraint)
In a workspace there is different behavior then a user would expect.
Workaround is that a user change the number manually by rename function in the workspace.
Use set new name and sets autogenerate number.
Then new autogenerated number is generated and placed to a number parameter.
Best Regards
PetrH
Yes you right @khimani_mohiki ..
That preference just check/uncheck the checkbox in the creation wizard as default.
PetrH