×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Save CATPart double click blue to activate question

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.

RE: Save CATPart double click blue to activate question

(OP)
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

RE: Save CATPart double click blue to activate question

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

RE: Save CATPart double click blue to activate question

(OP)
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???

RE: Save CATPart double click blue to activate question

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources