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 developed macros or Apps 1

Status
Not open for further replies.

TiagoFigueiredo

Industrial
May 22, 2013
494
PT
I'm starting this thread, because I see that in this forum, there is a lot of people interested in develop macros or applications to run in CATIA (like me [bigsmile]). And i see also, that there is a lot of ideas that we can share just to see how others macro's or apps works. For example, I thought a lot in how to change some macros that I developed, just seeing some videos around youtube.

I have made a search and I haven't found any thread similar to this. But if there is, sorry about that.

I will start with some mine. I hope to see yours.

Tiago Figueiredo
Tooling Engineer
 
Replies continue below

Recommended for you

I like your idea about this thread. You are right Catia is all about scripting. So let's start with toolbar.
Small main window that appears at desktop top centre.
1_s7urfg.jpg


and expanded windows
2_kcqccj.jpg

3_h2bvam.jpg


Currently converting all of my apps to VB.net (WPF)
 
I'm also converting my macros, to vb. Net app. Where did you designed your icons? Really beautiful ones.

Do you have any videos about your apps?

Tiago Figueiredo
Tooling Engineer
 
Icons and forms background design in photoshop. What you see are buttons with pictures as background.

Regards,
Jenia Ladkov
 
Absolutely love WPF windows. Don't remember if it's possible to set opacity on WinForms. Windows instead of message boxes
Wery well known script adopted to own needs.
1_lxdah0.jpg

2_w7fgpp.jpg

3_y4fur2.jpg

Instead of messages at the left bottom corner of Catia V5 window I run such windows so user always know what app wants him to select.

Regards,
Jenia Ladkov
 
Very clever idea...
You have created awesome toolbars and an awesome interface. Congratulations.

Tiago Figueiredo
Tooling Engineer
 
Thanks.
Guys any ideas how to keep window on top but to send it back (deactivate)? I want to use this for images tracing in Catia.
When mouse moves thru my application window this deactivates Catia window and I want the exact opposite of that (Catia window/application to be always active)
I use web browser control to open pdf/image files.
1_oyuqp5.jpg


Regards,
Jenia Ladkov
 
Just passing the mouse over it?

Test me.hide

Tiago Figueiredo
Tooling Engineer
 
Hello,

You could use WinApi to set CATIA as the parent of your window.
Something like this.

Code:
Private Declare Function SetParent Lib "user32" (ByVal hWndChild As IntPtr, ByVal hWndNewParent As IntPtr) As Integer

Private Sub SetMyParent()

        Dim myProcess As Process() = Process.GetProcessesByName("CNEXT")
        Dim p As Process
        Dim CATIA_Handle As Integer = 0
        For Each p In myProcess
            CATIA_Handle = p.MainWindowHandle.ToInt32
        Next
        SetParent(Me.Handle, CATIA_Handle)

End Sub
 
More one update of my app. There is still some adjustments to make.


I would like to prevent user to see the construction, I used CATIA.RefreshDisplay=false, but I still see the construction. I think it is Because I need to make the part update after some actions. Do you have any idea to prevent the refresh of the display. [sup][/sup]

Tiago Figueiredo
Tooling Engineer
 
minimize window?

Eric N.
indocti discant et ament meminisse periti
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top