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!

Edit document in Product with VBA 1

Status
Not open for further replies.

blaR3

Mechanical
Nov 16, 2016
8
SI
Hello to all

I'm hoping if any of you know how to access Edit command (for pre-selected document Part or Product) in Product mode thru VBA script. I tried with CATIA.StartCommand but with no luck...

Thanks in advance for your support...

edit_r30hmv.jpg
 
Replies continue below

Recommended for you

I'm looking for a way to activate/load pre-selected element in product (like double mouse click...)
 
I tried using CATIA.StartCommand("FrmActivate") but it didn't do the trick... :(
 
Make sure one object is in selection.

Works for me on 19X from Product to Part and Part to Product

Eric N.
indocti discant et ament meminisse periti
 
Well, the command does not work from VBA for all CATIA versions. However, it should work without a problem, if you put it directly into CATIA command window (as "c:FrmActivate"). The trick then is to simulate user input into a CATIA command line either with SendKeys, WINAPI or UIAutomation.

Tesak
- Play Tetris in CATIA V5 drawing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top