Save CATPart double click blue to activate question
Save CATPart double click blue to activate question
(OP)
Hello!
CatiaV5 scripting question:
Do you need to include some scripting code to activate ( Highlighted blue ) a selected CATPart/CATProduct in order to save it to a new file name?
I have read several earlier posts related to this topic but things like .Activate or SendKeys doesn't seem to work. ( Mainly examples are old and don't
seem to work now with CatiaV52012 or later or I get compile errors )
I have written a macro that loops thru the contents of a sub assembly, fills out some user properties, and assigns a new Part Number if the current part number
does not follow a specified format. So far this part of the macro works well. I would like to include a feature that if the macro does assign a new part number
to save that CATPart or CATProduct to a file with a name that matches the new Part Number.
Can anybody help me with this? I want to make sure that when Catia performs a save file it is saving the correct highlighted blue CATPart/Product.
Thanks!
Tom
PS I am using CatiaV52012 and sometimes CatiaV52013 pending upon which customer we are doing the design work for.
CatiaV5 scripting question:
Do you need to include some scripting code to activate ( Highlighted blue ) a selected CATPart/CATProduct in order to save it to a new file name?
I have read several earlier posts related to this topic but things like .Activate or SendKeys doesn't seem to work. ( Mainly examples are old and don't
seem to work now with CatiaV52012 or later or I get compile errors )
I have written a macro that loops thru the contents of a sub assembly, fills out some user properties, and assigns a new Part Number if the current part number
does not follow a specified format. So far this part of the macro works well. I would like to include a feature that if the macro does assign a new part number
to save that CATPart or CATProduct to a file with a name that matches the new Part Number.
Can anybody help me with this? I want to make sure that when Catia performs a save file it is saving the correct highlighted blue CATPart/Product.
Thanks!
Tom
PS I am using CatiaV52012 and sometimes CatiaV52013 pending upon which customer we are doing the design work for.





RE: Save CATPart double click blue to activate question
I still would use Save Management for parent product not individual save...
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: Save CATPart double click blue to activate question
So basically I should MsgBox the designer to go to Save Management in order to save the Parts/Products with newly assigned
part numbers? No automated way of doing this or you don't recommend automating that process?
Tom
RE: Save CATPart double click blue to activate question
CATIA.StartCommand "Save Management..."
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: Save CATPart double click blue to activate question
I did not have to manage links between CATPart.
indocti discant et ament meminisse periti
RE: Save CATPart double click blue to activate question
Do you still use your renaming and saving script?
Also, should I just stick with Save Management or give a try with "ItsMyJob's" reply above???
RE: Save CATPart double click blue to activate question
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: Save CATPart double click blue to activate question
my script is easy to write but does not manage links.
Up to you...
indocti discant et ament meminisse periti