Solved

How do I start using the Solidworks API?

Posted on 2008-10-27
1
1,354 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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

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…
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!…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
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 …

770 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