Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Nov 16, 2016
Messages
8
Location
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
 
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