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!

Catia VBA Macro for Selection from Active or Non Active Document

Status
Not open for further replies.

22555

Automotive
Dec 17, 2003
24
US
Hi,

If I have 2 product documents open in current session, How do i select or switch between documents within the VBA?

SelectElement2 is used within active document

SelectElement4 is used within non active document

But In my case, I dont know whether selection will be in active document or non active document.

Thanks in Advance

Regards


 
Replies continue below

Recommended for you

Use SelectElement4. It allows selecting in non-active document, but can handle a tive document as well.

If I'm wrong then it's not possible to achieve with SelectElement... at all.
You can run a timer and check selection manually on every tick.
 
Thanks Little,

Yes When I use SelectElement4, It is not allowing me to select in Active Document.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top