Good morning,
I have written a CatiaV5 2012 CatScript that loops thru a design tree and renames parts and products based upon various criteria.
There is one error of which I cannot figure out how to handle. "Part number already exists in session."
Can anybody provide a clip of code as an example of how to error trap this condition?
Looking for something like: If error, then assign a dummy name and don't bail
This is the line of code that the macro bails on if new part number already exists in session.
MyObject.Products.item(InstanceCount).PartNumber = NewPartNum
Any help would be great!
Thanks
Tom
I have written a CatiaV5 2012 CatScript that loops thru a design tree and renames parts and products based upon various criteria.
There is one error of which I cannot figure out how to handle. "Part number already exists in session."
Can anybody provide a clip of code as an example of how to error trap this condition?
Looking for something like: If error, then assign a dummy name and don't bail
This is the line of code that the macro bails on if new part number already exists in session.
MyObject.Products.item(InstanceCount).PartNumber = NewPartNum
Any help would be great!
Thanks
Tom