is it hard to pass control back to sw while a macro 'waits'???

Discussion in 'SolidWorks' started by Zander, Apr 21, 2004.

  1. Zander

    Zander Guest

    Hi All,

    I have a very simple macro to help me automate saving a sequence of jpegs.
    I want to hide and show parts and change views etc between saves. How can
    I pause the macro and regain control of sw until I'm ready and then pass
    control back?

    Thanks!

    Zander
     
    Zander, Apr 21, 2004
    #1
  2. Really easy, if you are using a form say UserForm1

    Load Userform1
    retval = Userform1.show (False)
    'false makes the userform stay infront of SW but you can
    'manipulate SW just like in the measuring tool.
     
    Corey Scheich, Apr 22, 2004
    #2
  3. Zander

    Zander Guest

    Great! Thanks alot for that tip.

    Zander
     
    Zander, Apr 22, 2004
    #3
  4. The other way is to set your form design-time property of Modal=False.

    Modal=True tells the form to prevent you from interacting with SW.

    Evan
     
    Evan T. Basalik, Apr 27, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.