×
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 VBA Macro Toolbar

Catia VBA Macro Toolbar

Catia VBA Macro Toolbar

(OP)
Hello everyone.

I am working on a VBA macro toolbar that would have tabs and buttons for various macros. My only problem is that I feel like I am missing something.
Currently, at the end of each macro, I have "Unload Me" to let the macro run and close the toolbar window. Without this command you could press as many macro buttons as you want but they will only run after you close the window (using "Unload Me" again).
Is there a way of making the macros run immediately after clicking the button without closing the toolbar window?

Thank you.

RE: Catia VBA Macro Toolbar

I just create code on button click event

CODE --> vb

Private Sub CaptureBtn_Click(sender As Object, e As RoutedEventArgs) Handles CaptureBtn.Click
        'GET CATIA V5
        Dim myCATIA As INFITF.Application
        On Error Resume Next
        myCATIA = CType(GetObject(, "CATIA.Application"), INFITF.Application)
        myCATIA.StartCommand("Capture")
    End Sub

    Private Sub StartUpBtn_Click(sender As Object, e As RoutedEventArgs) Handles StartUpBtn.Click
        Process.Start("xxxxxxxxxxxxxx")
    End Sub 

I'm playing with custom toolbar too (Design using WPF).

RE: Catia VBA Macro Toolbar

I'm working also on a toolbar. but still a huge amount of a work to do.

Tiago Figueiredo
Tooling Engineer

RE: Catia VBA Macro Toolbar

(OP)
Apologies for my late reply.

@ferdo I tried googling it but, as your example proves, you have to know what to search for :D. I found a couple of useful answers there now.

@jenial I will try your idea as well soon and let you know how it worked out. Your toolbar looks much better, I have settled for a more classic approach.

Thank you for your help.

RE: Catia VBA Macro Toolbar

I have several states in my toolbar. One favourites and some network folders, second one more specific apps. and third window just a small icon on a screen that expands on mouse over event. In plans to add one more window that will store all of the apps that we use at work.
I call this application macros pallet. It's like a library.

Regards,
Jenia Ladkov

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