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 TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to the sendkeys with VB in CATIA ?

Status
Not open for further replies.

Dina3419

New member
Joined
Aug 31, 2009
Messages
5
Location
US
Hello everybody,

Like I said in my previous post ( I'd like to use the function Search in my macro with VB.

But it works only If I have previously opened the Search windows at least once.(In my previsous post I said that I need to run a first manually search but it was a mistake I just need to open the Search windows, it's enough).

So I have tried to use the Sendkeys function in my macro to open the windows automatically but nothing happens.

Code:
SendKeys "^F" 'code for CTRL+F

Would somebody know how to use the sendkeys function with CATIA V5 ?
 
Power input mode will do what you need

Sub CATMain()
CATIA.StartCommand "Search..."
End Sub

 
It works great !

Thank you both for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top