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

Rename with Autonumber - Have Drawing Match Model

Level 18

Rename with Autonumber - Have Drawing Match Model

I have just enabled autonumbering for one particular product and now I need to do some renaming/renumbering to use the new numbers.  Is there any way to have the drawings automatically use the model's newly assigned number?  Since I can't see what the new number is until after the renaming process is finished, I have no idea how to properly rename the drawings while still keeping them matched up with their corresponding models.  Any ideas?

 

This is what happens if I autonumber everything together (drawing doesn't match the model):

 

before.PNGBefore      during.PNGDuring   after.PNGAfter

If I autonumber just the models, I won't have any idea which newly named model the drawing should be associated with (in order to rename it.):

 

   before.PNGBefore   during2.PNGDuring   after2.PNGAfter

19 REPLIES 19

Re: Rename with Autonumber - Have Drawing Match Model

Thanks  for this topic, Tom. This is a pain which we have been going through ever since we have enabled autonumbering. The only workaround we have found is by enabling the config.pro option, rename_drawings_with_objects  and then do a save as from Creo. Of course a save as from Creo has its own limitations. 

We are very interested to know how others do this. 

Re: Rename with Autonumber - Have Drawing Match Model

Unfortunately I need to rename thousands of objects, and most of them are in SolidWorks.  Smiley Sad

 

What I really need is something like this for each of the drawings:

autogenerate.png

 

We don't use WT Parts, but I wonder if "Generate document number based on related Part" could do this...

Would it work to somehow (automatically) associate both the model and the drawing to the same WT Part, rename the WT Part (autonumber), and then rename the CAD model and drawing to follow the WT Part?

Re: Rename with Autonumber - Have Drawing Match Model

Hello Tom.

 

Are you also creating Parts in Windchill?  Does your Part have the same number?

Are you using Windchill 11.0?

 

In Windchill 11.0, in the Rename UI, there is an option "Generate document number based on related Part".

Rename_SetNew_names.gif

 

The control was designed such that the model and the drawing (and other deliverables related to the Part) use the Part's number as a basis for the CAD Document numbers:

Part's Identifiers:

  • Number is generated: 00001234

CAD Document's Identifiers

 - Number is based on Part number; but contains extensions and suffixes to make it unique

  • 00001234.PRT
  • 00001234_FLEX001.PRT
  • 00001234.DRW
  • 00001234.MFG

–File Name is same as number

 

 

Does this help?

Thanks

Jennifer

 

Re: Rename with Autonumber - Have Drawing Match Model

@JenniferPierron,

Thanks for the reply.  Yes, Windchill 11.0 M030 CPS01.  We are not currently using WT Parts.  So far we haven't seen any benefit to doing so.  (We are CAD centric, don't use BOMs, and aren't connected to an ERP system.)  I'm not sure I want to start using WT Parts just for the rename capability.  Seems like an awful lot of overhead and extra work just for this function.

 

I also recently noticed that there is an inconsistency with the "Set New Name" dialog depending on whether I'm doing a "Rename" or "Save As".  "Rename" will allow me to set everything to an autogenerated number.  "Save As" will not.  Why? Smiley Frustrated 

Set New Name.png

 

Unfortunately, neither "Rename" or "Save As" will allow the drawing and cad model name/number/filename to stay synchronized between them.  (The drawing and model already match,except for extension, and they should continue to match after both a rename and save as.)

Re: Rename with Autonumber - Have Drawing Match Model

@BineshKumar1, I've had to turn autonumber back off for the time being.  It was super nice when it worked, but the fact that it wasted a number every time someone did a save-as, rename, or replace from Creo made it completely unusable.  Especially on save-as.  A number was wasted every time someone ran a mapkey to generate a PDF, DXF, IGES, STEP, etc. Smiley Frustrated  You can read my full post about it here: https://community.ptc.com/t5/Windchill-Questions/Autonumbering-and-Creo/m-p/478337.

I do have a couple of cases open with PTC but so far they haven't gone anywhere.  Smiley Sad

Re: Rename with Autonumber - Have Drawing Match Model

Hello Tom.

 

I understand.  Each company must decide whether to use Parts or not.

 

You asked:

Rename" will allow me to set everything to an autogenerated number.  "Save As" will not.  Why? Smiley Frustrated 

<jlmp> So, there is a way to do it; but you are right it is not done in the same way.

<jlmp>

<jlmp>HOW TO SET NAME=NUMBER in SAVE AS UI

<jlmp>- You need to set up an OIR that sets name=number, then choose the "Autogenerate" choice.   If you need a sample OIR let me know.

<jlmp>

<jlmp>WHY ARE THEY DIFFERENT?

<jlmp>Save As is really CREATING and thus OIRs are applicable.  Based on requestes, we have extended OIR concepts to rename; but originally they were not designed to use OIRs.   The result is that the options are slightly different where Save As is more OIR focused and Rename controls are more explicit.

 

<jlmp>You stated:

Unfortunately, neither "Rename" or "Save As" will allow the drawing and cad model name/number/filename to stay synchronized between them. 

<jlmp> If you do not have a Part, we do not have a tool right now.

<jlmp> The only other suggestion I have is to use the OIRs to generate number; but allow it to be editable (not immutable).  If you do not want to pre-generate the number, then you will need to do the rename in 2 steps.

<jlmp> If you would like some additional tools, I would start an idea and based on interest, we could add something to the software.

 

Thanks

Jennifer

 

 

Re: Rename with Autonumber - Have Drawing Match Model

Thanks again for the reply.  I'm actually less worried about Name and more worried about Filename during a save-as.  If we ever start using Name as a description (instead of just a duplicate of Number), it would actually need to remain unchanged.  Obviously that won't work for Filename since no duplicates are allowed.  Will the OIR that controls save-as allow Filename to automatically equal Number (and just leave Name unchanged)?  Thanks.

Re: Rename with Autonumber - Have Drawing Match Model

Hi @TomU,

 

We do have the same issue, the system wastes a new number for save as to other formats, when we rename drawings to match the model number and so on. This wastage of numbers hasn't been escalated to a concern, but I am sure some day it will. It would be nice, if we can turn on autonumber only when you create a new CAD document from Windchill, and an option to control the behaviour in save as and rename wizards. Do we have a product idea on this? I couldn't find one

Re: Rename with Autonumber - Have Drawing Match Model

Hello Tom.

 

I understand your concern. 

 

File Name cannot be controlled by an OIR.

 

I don't know why your control is disabled.    Are you selecting new files in WS where some do not have a number?

 

Otherwise, I always see Same As Number enabled and it can be the default option using the server-side preference:

Save As > Inherit FileName From Number to Yes (and locked if you want).

 

If you cannot isoloate why it is disabled, I would encourage you to file a Tech Support call, because your use case of setting Number to be autogenerated and file name to be the same was intended to be supported.

 

Thanks

Jennifer