×
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

Is there an API command for "Invert Selection" command?

Is there an API command for "Invert Selection" command?

Is there an API command for "Invert Selection" command?

(OP)
Hi,

It seems that "Sendkeys" command is no longer supported with 64 bit Windows system (Vista and Win7).  I found many users are having the same issue with "Sendkeys" as I am.

Now back to my question, how do you use "Invert Selection" in macro?  Is there an API command in Solidworks for "Invert Selection"?  Recording a macro does not reveal "Invert Selection".

Before I upgraded to SW2010, I achieved this by using "Sendkeys" command with "I" (a shortcut for invert selection), which does no long work.

Best regards,

Alex

RE: Is there an API command for "Invert Selection" command?

Check out RunCommand in the API help.  Many of the UI actions can be automated using RunCommand.  That's usually one of the first places I look for a one-click type interface command.  Invert Selection is in the list (swCommands_InvertSelection)

-handleman, CSWP (The new, easy test)

RE: Is there an API command for "Invert Selection" command?

(OP)
Hi, Handleman:

Thanks for your advice!

To run swCommands_*, I need "SolidWorks 2010 Commands Type Library".  But I am unable to find this reference with my SW2010 installed Win7 64.

Do you know if SW2010 has a commands type library?

Best regards,

Alex

RE: Is there an API command for "Invert Selection" command?

(OP)
Hi,

Never mind.  I found the reference

"SolidWorks 2010 Commands type library", and it is in "C:\Program Files\SolidWorks 2010\SolidWorks\swcommands.tlb"

Best regards,

Alex

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