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
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?
The API support guys at SW may be your best bet for such in-depth prgramming.
Helpful SW websites FAQ559-520
How to get answers to your SW questions FAQ559-1091
RE: What is API's POWER?
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
http://www.EsoxRepublic.com-SolidWorks API VB programming help
RE: What is API's POWER?
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.
http://www.EsoxRepublic.com-SolidWorks API VB programming help
RE: What is API's POWER?
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?
Not with SolidWorks.
Alternatives:
- 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.
- 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).
I have not used this but the SW API call ModelDoc2::Toolbars appears to be able to turn the following Toolbars on/off.- main toolbar
- view manipulation toolbar
- main sketch toolbar
- sketch entity toolbar
- feature toolbar
- relationships toolbar
- macro toolbar
And the description for SldWorks::DisplayStatusBar isI'm sure both of the above commands could be initiated by striking a single key.
Ken
RE: What is API's POWER?
Thanks again. :)
Robert