Visual Basic in AutoCAD and SolidWorks, any Areas/Uses for me knowing it.

I feel it was a waste of time for me to learn the VB Object Model for AutoCAD and SolidWorks.   I am a Engineer and Programmer,  I currently do consulting for Programming.  I tought it was worth the time to learn "VB in CAD".  I discovered that it is very Powerful.  However I only use AutoCAD/SolidWorks to draft.  Very similar to a computer is meant for computing, however there are 'entertainment system' computers.  But I much rather buy a seperate computer and entertainment system.   ??????

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I'm lost to what you are asking?  

<<I feel it was a waste of time for me to learn ...>>  So you know VB already ???

<<I tought it was worth the time to learn "VB in CAD".  I discovered that it is very Powerful. >>  These two contradict each other.

What is your question?
About VB in general? (uses in CAD or other?)
The SolidWorks API? (these is NOT part of normal VB>>>)
sendtojpAuthor Commented:
The VB Object Model refers to the Properties, Methods, and Events.  Word, Excel, Access, etc., as well as a Control such as a Textbox each have their own Object Model.  A Programmer 'reads' the Object Model as if it were a Map.  There are maps of Orange County CA, SLC, Denver, there are several metro areas. The person reading the map would be compaired a Visual Basic programmer, just as the person reading the map might not know these areas, but can read the map, the Visual Basic Programmer might not know the  VB Object Model, but can read the Object Model.

To explain where the term SolidWorks API falls in, the SolidWorks API (Application Programming Interface, I think) uses Visual Basic for Applications (VBA) to provide the interface.  This is no different in concept than the VBA in Word, Excel, Access, or etc.  Also Esprit CAM uses an API in VBA as well.  I find that Computer Technology people refer to it as VBA while Engineers refer to it as API.  I choose to refer to it from a Computer Technology stand point on this site.

Very Powerful didn't mean Useful.  Just as a 'Entertainment Center' may seem not practical, Visual Basic in these Drafting/Modeling Apllications doesn't to me, altough it is very flexible and seems to extend the ability of these Apllications.  
sendtojpAuthor Commented:
Any practical projects for this?
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

sendtojpAuthor Commented:
I hope this better explains it.
Do you do any repetitive and tedious tasks?

For instance, you design a spring using one of a variety of programs out there to do this. Wouldn't it be nice to "push a button" and:

1) All pertinent information is added to your local spring database.
2) SolidWorks automatically creates a model of the spring for use in assemblies and prompts you for a storage location and or name. (if it cannot be determined programatically)
3) Any paperwork required for the "release" of the spring is automatically generated and printed.
4) A journal entry is started and opened within Outlook to track work, time, costs, etc.

All of the four examples above can be further broken down to include many more tasks. Note blocks on drawings, automatic title block info, etc...

It's these kind of tasks that makes VB and the programs API so useful.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
plus with vba you can make applications talk to each other alot easier. ie. b.o.m.'s exported to excel
plus what I learned in one app I could easily use in another as far as code.
the addition of vb to acad was a tremendous achievement in my book, basically because I didnt have time to learn lisp.
Corey ScheichDeveloperCommented:
I just wrote an app yesterday I have an archive of thousands of parts and each of them has a material number assigned to it. Well changes in manufacturing caused a change in material where we used to have 10 different materials for different sized parts we now have a single material.  Now the material and description needs to change on thousands of drawings.  I wrote an application in Excel VBA to attach to both SW and AutoCad drawings and change this info from a list of part numbers on the excel spread sheet.  The computer will work all weekend and change almost every part I timed it for the autocad parts it takes 19 seconds each open the part search the attributes of the title block and change the apropriate ones save and close.  With the SW parts since the data is actually stored in the part file's custom properties I don't have to open them and was able to run 300 parts in less than a minute.  Then the program drops feedback into each row letting me know the status wether the file was accessable or not and which strings were found in the auto cad files.  I think it is pretty slick. only about 4 hours programming.

All that to say this.  API is very useful if you know how to do it.  VBA is a usefull tool that allows you to easily cross between applications.  API is refering to the fact that they left hundreds of useful tool available to you giving you the ability to create custom apps that SW or AutoCad couldn't write for lack of return on investment.  Why would they have written the app I described above.  It is specific to my situation, but because Autodesk and SolidWorks both decided to create API that I could access I was able to save tons of time in my task.  API isn't limited to VBA it can be accessed through C++, C, C#, VB, VB.NET and VBA I believe some have even ported it through JAVA and others.  It has also helped me work arround bugs in either program.  VB, VBA and are all very easy to understand to boot.

There's not much more that can be added.
The questioner asked for the uses of VB in CAD programs and received several.

His mis-understanding of the term API was also addressed, but without understanding exactly what the API is, and how it provides an interface into ANY program, useful" sub-programs"/macros cannot be developed.
Corey ScheichDeveloperCommented:
I whole heartedly agree.
How much do you value your time?  If you feel that what you spent your time learning was a powerful application.  Then is was worth it because the time spent wasn't wasted and the more you know....
I think thats fair.
Thanks for taking the time Venabili
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CAD/Architecture Software

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.