×
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

What is API's POWER?

What is API's POWER?

What is API's POWER?

(OP)
Hello all you API Gurus.

I am debating to delve into Solidworks API. I am don't consider my self a programer, but I have dealt with different scripting languages such as HTML, Actionscript, 3DSMAX Script, Java Script, etc. I am now taking on a professional career in Industrial Design working primarily with Solidworks. I have many ideas for the program to make it more user friendly and efficient.

I am just want to know how much does Solidworks API allow the user to customize:

1. Can you add custom command buttons to the interface with your own illustrated icons and a cool script to boot?

2. Can you add scripts to any specific right-click pop up menus?

3. Bind Macros to scripts?

4. Rebind your Ctrl, Alt, Enter, Shift, to new keys on the keyboard for convenience?

5. Automate complicated tasks.

6. Create your own dialogue panels.

7. To be able to further manipulate the user interface in a way such as adding things, like tabs on the side of the screen showing what part/assembly/drawing documents are currently open and being able to access them quickly just by clicking them? To have this instead of using the Window Menu. Or create a split view in a Drawing so you can view 2 pages at a time?

8. Be able to toggle on/off certain key parts of the program. Such as scroll bars in the Drawing Graphics View.

9. Create your own Menus with your own scripts, on the main Menu bar?

Like what is the extent to API's power?


Thanks, Robert

RE: What is API's POWER?

1. Can you add custom command buttons to the interface with your own illustrated icons and a cool script to boot?
Yes<Http://www.EsoxRepublic.com/devtools>
2. Can you add scripts to any specific right-click pop up menus? Yes

3. Bind Macros to scripts?
?

4. Rebind your Ctrl, Alt, Enter, Shift, to new keys on the keyboard for convenience?
no comprende

5. Automate complicated tasks.
Yes
6. Create your own dialogue panels.
yes
7. To be able to further manipulate the user interface in a way such as adding things, like tabs on the side of the screen showing what part/assembly/drawing documents are currently open and being able to access them quickly just by clicking them?Yes
 To have this instead of using the Window Menu. Or create a split view in a Drawing so you can view 2 pages at a time? probably

8. Be able to toggle on/off certain key parts of the program. Such as scroll bars in the Drawing Graphics View.
I don't think so
9. Create your own Menus with your own scripts, on the main Menu bar? yes

I could be the world's greatest underachiever, if I could just learn to apply myself.
http://www.EsoxRepublic.com-SolidWorks API VB programming help

RE: What is API's POWER?

The best place to start is simply by learning VB6 or VBA.  Be sure you have a solid understanding of C, VB (.Net, VB6, or VBA) and object-oriented programming.  Otherwise, you are wasting your time.

Once you know VB (or C), get to know how these programs "plug in" to other applications.  There are thousands of pages and websites dedicated to VBA in Excel.  Might be a good training ground.

I could be the world's greatest underachiever, if I could just learn to apply myself.
http://www.EsoxRepublic.com-SolidWorks API VB programming help

RE: What is API's POWER?

(OP)
Thanks guys. CorBlimeyLimey I already checked it out, I am more or less compiling a list of the cons to getting into API and finding how my company can benefit from it.

TheTick, thanks for responding to each question. Uhh, I corrected these below.

3. Attach Macros to buttons?

4. Attach your Ctrl, Alt, Enter, Shift, to new keys on the keyboard for convenience? Because I am left-handed, its more natural for me to use hotkeys on the number pad. So if I can make the "Num 0" key Ctrl and the "Num 3" key Alt, than that would speed things up for me.

8. Be able to toggle on/off the display of all Command Button Bars on the interface, also hide status bar, using only a single keyr. Thus making a toggle button for Expert Mode, like they have in 3DSMAX showing just the Graphics Area with your model.

Thanks again for all your help guys. :)

RE: What is API's POWER?

Quote:

3. Attach Macros to buttons?
Yes macros can be assigned to buttons in SW using the standard button customization utility (i.e. Tools/Customize/Keyboard). If you want to use one macro to assign certain macros to certain buttons, then you'll need to make an Add-In.

Quote:

Attach your Ctrl, Alt, Enter, Shift, to new keys on the keyboard for convenience?
Not with SolidWorks.

Alternatives:
  1. Since I am right-handed and find the [Enter] key sometimes annoying to click (since it's on the right side of the keyboard). I have a programmable keypad with 20 buttons (one of which is programmed to [Enter], and the others are used for views and calling macros). Mine is a Z-Key from www.zmc.com for about $100, but I'm sure there are plenty of others out there.
  2. My other method for hitting [Enter] was to buy a programmable mouse. It has the standard 3 buttons plus 5 other buttons (all of which are programmable). Of those five, one is [Enter], one is zoom to Isometric View orientation, and the other is [Ctrl]+[Shift]. I use the last one to allow me to basically assign a whole second keyboard's worth of macros (where I have to hold that button in and then hit one key on the keyboard, rather than having to do a multi-key combination all with my left-hand).

Quote:

Be able to toggle on/off the display of all Command Button Bars on the interface, also hide status bar, using only a single key
I have not used this but the SW API call ModelDoc2::Toolbars appears to be able to turn the following Toolbars on/off.
  1. main toolbar
  2. view manipulation toolbar
  3. main sketch toolbar
  4. sketch entity toolbar
  5. feature toolbar
  6. relationships toolbar
  7. macro toolbar
And the description for SldWorks::DisplayStatusBar is

Quote:

This method sets whether to display or not display the status bar.

I'm sure both of the above commands could be initiated by striking a single key.

Ken

RE: What is API's POWER?

(OP)
Wow KenBolen, thanks a lot, you have a lot to good ideas there. The Z-Key looks good. And I never thought to change the exta buttons on my mouse.

Thanks again. :)

Robert

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