×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

CATIA developed macros or Apps

CATIA developed macros or Apps

CATIA developed macros or Apps

(OP)
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

RE: CATIA developed macros or Apps

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.


and expanded windows



Currently converting all of my apps to VB.net (WPF)

RE: CATIA developed macros or Apps

(OP)
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

RE: CATIA developed macros or Apps

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

Regards,
Jenia Ladkov

RE: CATIA developed macros or Apps

(OP)
Really nice.

Tiago Figueiredo
Tooling Engineer

RE: CATIA developed macros or Apps

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.



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

RE: CATIA developed macros or Apps

(OP)
Very clever idea...
You have created awesome toolbars and an awesome interface. Congratulations.

Tiago Figueiredo
Tooling Engineer

RE: CATIA developed macros or Apps

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.

Regards,
Jenia Ladkov

RE: CATIA developed macros or Apps

(OP)
Just passing the mouse over it?

Test me.hide

Tiago Figueiredo
Tooling Engineer

RE: CATIA developed macros or Apps

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 

RE: CATIA developed macros or Apps

(OP)
More one update of my app. There is still some adjustments to make.

https://m.youtube.com/watch?v=VzFgGbGGKgA

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.

Tiago Figueiredo
Tooling Engineer

RE: CATIA developed macros or Apps

minimize window?

Eric N.
indocti discant et ament meminisse periti

RE: CATIA developed macros or Apps

(OP)
Not minimize, freeze catia display

Tiago Figueiredo
Tooling Engineer

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources