Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations SSS148 on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Part number conflicts macro?

Status
Not open for further replies.

happystamps

Automotive
Mar 28, 2013
48
Hi all, I know similar questions to this have been asked before, but I haven't been able to find an answer that solves my specific problem.

Generally at my work the part numbering is pretty good- the only time I get the "part number conflicts error" is when I'm overlaying two different releases of the same assembly. So the customer sends us a model, we're making that- then they send us another and I'd like to see what the change is, so I create a (temporary) product and insert the two assemblies. I never save this product, I just look around and compare the differences between the two assemblies.

Is there a macro that will automatically re-name the parts on insertion? Or another way of doing this? It gets to be a bit of a pain when I have to re-name 50-100 parts for no reason!

Cheers

Simon
 
Replies continue below

Recommended for you

I had the feeling CATIA will popup a function that would propose to deal with that problem...

i don't have a macro that does what you ask but you could find here and there some bits and try to put them together...

first you need something that would go through the spec tree recursively. Then you need to access the part's partnumber and rename it.

I am sure you can find both script in this forum. Put some code together and I'll help if you still have problem.



Eric N.
indocti discant et ament meminisse periti
 
Hi,

I'm afraid is not so simple. The message will pop-up exactly when you will insert the second product so it will be a conflict, will not let you to run the macro. What is annoying is the fact that CATIA will propose to rename automatically but only by selecting one by one the products which will be renamed...if you have few hundreds you can imagine what happy you can be...

Instead of this, you can open second product in a separate CATIA session and use save management with the option to add a string at the name of all files (I don't remember exactly how is called, I don't have v5 right now). I suppose then you will not have problems when inserting the second product.

Regards
Fernando

- Romania
- EU
 
Ferdo is correct. You cannot open 2 files with the same file name in catia.

So open 1 product and catpart, change file name and partnumbers, then open second product.

Eric N.
indocti discant et ament meminisse periti
 
as Ferdo said use save management. you can add prefix to file names by pressing apply pattern. however you have to select files one by one ctrl+A doesn't work.
 
What I sometimes like to do is open either of the two products and "Make CATPart from CATProduct" make sure not to merge the bodies. This way it's still very easy to hide and show various bits and pieces and you won't have to worry about any file name conflicts.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor