Solved

How do I start using the Solidworks API?

Posted on 2008-10-27
1
1,361 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AutoCad Structural Detailing 2012 Installati¿on Error. 4 1,198
.NET FRAMEWORK 5 595
IGES CAD viewer software 6 513
AutoCad 2014 Licensing 20 2,786
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…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

710 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