API: Switch from dialog to SW to select entities

Discussion in 'SolidWorks' started by JM, Dec 11, 2003.

  1. JM

    JM Guest

    Hi, I hope I'm not bothering too much...

    But I got stuck again writing this little macro in VB.
    I'm using a VB form (kind of dialogue box) which is running but I can't
    figure out howto go to the SW app to 'pick' entities & then return to this
    dialogue box with the information herefrom.

    Could anyone tell me which commands/instructions/methods I should study to
    achieve this?

    Thanks in advance,

    Best,
    JM
     
    JM, Dec 11, 2003
    #1
  2. Load Userform1
    Userform1.Show False

    This sets the modal switch to off and allows you to select and open other
    windows just like the mass properties window

    Corey Scheich
     
    Corey Scheich, Dec 11, 2003
    #2
  3. You said "macro", right? If so, make sure that you set the modal property
    on your userform to be Non-Modal.

    --Brenda
     
    Brenda D. Bosley, Dec 12, 2003
    #3
  4. you use selectionmanager to get the selected entities. if you want to
    bring a form to the forground then use
    formname.show

    i think this is what you are asking for.
     
    Sean Phillips, Dec 12, 2003
    #4
  5. JM

    JM Guest

    Thanks Corey & Brenda, the "modal" thing worked.

    & Yes, the selectionmanager is something I need to learn to understand next.

    Is it correct to say that the selections are stored in some variable
    somewhere & that you add items to this by various selection/get methods ? &
    could the contents of this variable then be made visible ? ..or am I totally
    wrong on this?

    Thanks again & best wishes,
    JM
     
    JM, Dec 12, 2003
    #5
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.