×
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

how to invoke a part from a Product by using VBA
2

how to invoke a part from a Product by using VBA

how to invoke a part from a Product by using VBA

(OP)
i am working on an assembly. I want to switch to part workbench by using VBA.
Same things we can do by double clicking on the Part entities in an Assembly.
How can i do it by using VBA?

RE: how to invoke a part from a Product by using VBA

From the assembly level, you can find the object of the part you want to work with and create/modify/delete object with no problem.
Why do you need to activate a part level workbench?

Eric N.
indocti discant et ament meminisse periti

RE: how to invoke a part from a Product by using VBA

If you had an assembly loaded and you wanted to do something like StartCommand "Publications", you would need to be active on a part or the publications would be made at the assembly level.

To place a part in edit mode, add the part to the selection then change the workbench to Part Design or GSD.

CATIA.StartWorkbench("PrtCfg")

RE: how to invoke a part from a Product by using VBA

(OP)
thank you landman363.
I was looking for same. It solved my problem :)

RE: how to invoke a part from a Product by using VBA

(OP)
one more question... where can i find argument of startworkbench.
like "PrtCfg" in above example.
Unable to find the same in V5automation.chm file

RE: how to invoke a part from a Product by using VBA

(OP)
thank you very much ferdo

RE: how to invoke a part from a Product by using VBA

You're welcome...how about a starcheershourglass

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