Solved

How do I start using the Solidworks API?

Posted on 2008-10-27
1
1,351 Views
Last Modified: 2013-12-04
All,

I am not a programmer in anyway. However, I have been tasked with the project of using the Solidworks API to automate the quoting process here. What they want is to read the dimensional data from a simple object in Solidworks [physical, not related to programming] and the run it through an algorithm that spits out a $ value and prints it out all pretty.

Questions:

1.) Where do I start? I.E can I use the VBA Editor in DWG component ... if so how the hell does that thing work?? ... Or should I use MS VB Express IDE...? By this question I mean, where/how do I bang out the code, compile (or interpret) to see some kind of result?

Thank you,

Naerwen
0
Comment
Question by:Naerwen
1 Comment
 
LVL 18

Accepted Solution

by:
meintsi earned 500 total points
ID: 22822435
There are several places you can use to get started ..

1. WIth SolidWorks running, there is an "API Help" in the HELP menu containing sample projects, examples and tips.
2. You can access the VB interface via TOOLS - MACRO - NEW.
3. You access the SW API if you add the following references to the VB Express project.
          SolidWorks.Interop.sldworks
          SolidWorks.Interop.swcommands
          SoildWorks.Interop.const
(I think think you only need to add these 3 for basic programming.)
4. Info at the SW website  Http://www.solidworks.com/pages/servicess/APISupport.html

You will need to traverse the SW Feature Manager Tree of the assembly, and pull relevent component information for data manipulation.
Printing the data 'with no programming experience' will become the biggest hurdle.

Overall, not a small or easy task for a person WITH programming experience.

Alternate Option:  There may be a "Partner Product" availiable to do this.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Our company has proprietary drawing files that we do not give to our customers for final documentation. Our customers now require that we give them these drawings. They understand that they are proprietary and do not require them to be in AutoCAD bu…
The following article will describe how to add/edit a dimension style through AutoCAD VBA. AutoCAD VBA has its quirks and when it comes to dimensions and controlling how they look through VBA.  This is where AutoCAD can be vividly confusing. The…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now