Solved

How do I start using the Solidworks API?

Posted on 2008-10-27
1
1,348 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Following a number of instances of re-installing Solidworks I thought that it may be a  good idea to detail the procedure that I follow each time to ensure a good stable install. Backup: Backup your system.  It goes without saying that this i…
In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 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

9 Experts available now in Live!

Get 1:1 Help Now