Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Save CATPart double click blue to activate question

Status
Not open for further replies.

JayEnn1

Automotive
Sep 29, 2015
50
US
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.
 
Replies continue below

Recommended for you

Thanks for the information.

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
 
i once did a script that would rename all parts in open product and save each part once modification is done. I saved files in empty directory. once CATPart were saved I saved CATProduct.

I did not have to manage links between CATPart.




Eric N.
indocti discant et ament meminisse periti
 
Sorry for a delay reply.
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???
 
Save management will take care of links between file but automation is not easy (need to use winAPI to access and control frame)
my script is easy to write but does not manage links.

Up to you...

Eric N.
indocti discant et ament meminisse periti
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Top