Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How do I start using the Solidworks API?

Posted on 2008-10-27
1
Medium Priority
?
1,379 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 2000 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

If, like me, you find yourself repeatedly and tediously joining many segments (lines, arcs) in other people's drawings back into polylines that can be used more effectively in Computer Aided Machining and Laser Cutting, then this article is for you!…
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…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

876 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