Part number conflicts macro?
Part number conflicts macro?
(OP)
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
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





RE: Part number conflicts macro?
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.
indocti discant et ament meminisse periti
RE: Part number conflicts macro?
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
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: Part number conflicts macro?
So open 1 product and catpart, change file name and partnumbers, then open second product.
indocti discant et ament meminisse periti
RE: Part number conflicts macro?
RE: Part number conflicts macro?