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!

Visual studio macro for CATIA 3

Status
Not open for further replies.

TiagoFigueiredo

Industrial
May 22, 2013
494
PT
Hello,

i'm starting to look to create macros for catia in visual studio. i have found some disadvantages already. Like only one session of catia should be running, the message box can stay behind of catia window.
My question is, there is any advantages of create macros in visual studio instead of creating them inside catia (CATVBA)?
 
Replies continue below

Recommended for you

Looks impressive...

But all the functions of your vídeo can be made with vb6 inside CATIA.

From my research I can adress the following:
-Better vb editor
-You can create "special" toolbars. Better creation of forms.
-Easy to interact with other aplications
-higher code protection, you can delliver only *.exe files, instead of your code.
-the worst for me, only works fine with one CATIA session.

How do you manage several CATIA sessions?

Can you add more advantages/disadvantages?



 
 
Time Saving Toolbar ?

Eric N.
indocti discant et ament meminisse periti
 
Ferdo could you please upload an example of how to always bring input box/message box in front of Catia.Also facing this problem. I have found several examples over the Net but they all used with user form. I don't have any user forms.
 
Hi Jenial

If you already grabbed CATIA as COM object, use it for displaying messages

CATIA.MsgBox "Bla bla bla bla", 0, "Title", vbNullString, 0

cilici
 
In VS there's an option keep on top. Can't find the same in VB6. To do that thru coding will also be ok.

Ferdo TST link please.
 
I'm trying to make a search for sketches in visual Studio. But i can't do it.

In vb6 i wrote

selection1.Search "((CATPrtSearch.Sketch + CATGmoSearch.Sketch) + CATSpdSearch.Sketch),all"

in visual studio doesn't work. Is it diferent?
 
Try that

Selection1.Search("CatPrtSearch.Sketch,All")

Works in VS2008
 
Do you had the need to make public CatPrtSearch?

I'm out of the office now, but on monday morning I will try it.
 
Ferdo,
I have download your app, and it looks amazing. I had'nt much time to test it but, it's impressive.

I'm starting to make an special app to help me in my daily job. I see that vb.net is slightly diferente from catvba. I'm used to catvba. but from my trials vb.net gives more freedom to make app.

Many thanks
 
By the way. I have instaled the vs2017 rc. And it works with CATIA r26. I hope that i don't find any surprises.
 
In my research I see that there are a lot of people using c# language to create their apps or macros. My question is why use c# to create them if in CATIA (catscript, or vb6) uses vb?.
What's the advantages?

Ferdo you have made your TST in wich language?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top