SolidWorks is a 3D mechanical CAD (computer-aided design) program that runs on Microsoft Windows. SolidWorks has a COM-based API allowing users to automate its functions with VBA MACROS, VSTA MACROS (VB.NET/C#) and Add-ins (C#/VB.NET/C++).
Questions tagged [solidworks]
411 questions
48
votes
1 answer
Solidworks C# Addin - Sending a string to a macro
I'm currently working on a new Solidworks task-pane, mostly implementing some "old" macros I've written in a more convenient format. A few of these require user input via text boxes which I would like to include in the task-pane.
The problem is, I…

Nick
- 665
- 5
- 12
25
votes
1 answer
SolidWorks to OBJ export
At the moment I am engaged in creation SolidWorks add-in for exporting 3D models in OBJ format .
OBJ is opened and very simple format
I've googled and found out the following information about existing solutions: there are several paid plugins and 1…

TemaTre
- 1,422
- 2
- 12
- 20
11
votes
2 answers
Getting custom materials from solidworks
First note I don't have solidworks installed on my computer, but use the files for a project.
Solidworks has the ability to make a custom tab to the file properties. In this tab you can find all kind of information about a model(part) that is made…

Desutoroiya
- 534
- 2
- 6
- 15
10
votes
2 answers
Argument Exception in Dictionary Getter
I have run into a weird situation where using the getter on a C# dictionary in a specific way yields an argument exception even though that should never happen. The issue seems to only happen my computer.
Actually I have already found an alternate…

Taus
- 344
- 2
- 15
10
votes
1 answer
Solidworks, tracking down a Memory Access Violation Error on Isldworks.CloseDoc
I have two different functions inside an addon I have been working on in C#. Recently (Apparently) Solidworks has been crashing when it gets to certain parts of these two functions (possibly more, but these are the only two I have found it occurring…

Nick
- 665
- 5
- 12
9
votes
2 answers
How to export SolidWorks/eDrawings file in WebGL?
With the launch of SolidWorks 2016, Dassault Systèmes has promoted a new web portal that enables the embedding of Edrawings models into web pages: 3dcontentcentral.com.
Their web 3D viewer uses WebGL to show model inside a browser window (here you…

sentenza
- 1,608
- 3
- 29
- 51
8
votes
2 answers
Get thumbnail of any file including SolidWorks on Windows XP/Vista
There is a lot of build-in ThumbnailProviders inside every installed OS. Due to these providers Windows is able to show Thumbnail of many files. For example Windows Explorer can show content of *.jpg files, but from Solidworks *.sldprt files too (If…

user1588135
- 81
- 1
- 2
7
votes
4 answers
Check Solidworks is installed?
I have a c# application that runs on both 32-bit and 64-bit OS.In my app, how can I programatically check that solidworks is installed or not on computer.If we can check it by reading registry key ,then provide me path for both 32-bit and…

user369182
- 1,995
- 4
- 16
- 17
6
votes
4 answers
Is there any way to import solidworks files into unity as assets?
I'm attempting to program a simple chess game using the unity game engine. However, I can't work out how to import the assets that I've created in Solidworks into Unity.
Is it possible to do?

ScottishTapWater
- 3,656
- 4
- 38
- 81
5
votes
1 answer
Solidworks EPDM API IEdmEnumeratorVariable5::SetVar not working as expected
I'm trying to use IEdmEnumeratorVariable5::SetVar to update some file card variables based on user input into a windows form. My code executes, there are no error messages, the file is checked out and checked back in and the appropriate comment is…

CBRF23
- 1,340
- 1
- 16
- 44
5
votes
2 answers
What's the main difference between B-Rep and Mesh index represation
I know B-Rep (ParaSolid) is the popular solid representation. From my past experience, I always touch the triangle mesh representation like OBJ, STL file format. I am wondering why B-Rep is better than mesh representation? What's the main…

Adam Lee
- 24,710
- 51
- 156
- 236
4
votes
3 answers
How to Export SolidWorks file to use in WebGL?
Is there a way to export or convert a SolidWorks file to be used in any way for WebGL?

edt
- 22,010
- 30
- 83
- 118
4
votes
1 answer
How to open Solidworks, run macro, and close Solidworks from vb.net script?
I am running a VBA Macro in solidworks that stops working and requires me to restart Solidworks after exactly 478 loop-itterations every time I run it.
Inside my loop, I open an STEP file, verify it, and then save it as an STL file. It appears as if…

avgJoe
- 832
- 7
- 24
4
votes
1 answer
Opening Drawing Documents using OpenDoc6
I am trying to open drawing documents using vb.net OpenDoc6 command. This is a snippet of my code where i try to traverse through all the files and try to open drawings.
Whenever it tries to open the file, it gives me a nullreferenceexception. I am…

Rahul
- 903
- 1
- 10
- 27
4
votes
0 answers
Marshal.GetActiveObject fails with OPERATION UNAVAILABLE, HRESULT: 0x800401E3 exception if elevation levels mismatch. What can I do?
I am writing a VB.NET add-on for Solidworks, in which I first need to connect to an already running instance of Solidworks (similarly to how such connections are made to Excel). I am using Marshal.GetActiveObject method:
Sub ConnectToSolidworks()
…

Justinas Rubinovas
- 197
- 14