Questions tagged [solidworks]

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++).

319 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
  • 655
  • 4
  • 11
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,046
  • 2
  • 9
  • 18
12
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
  • 1
  • 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
  • 345
  • 3
  • 15
9
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
  • 655
  • 4
  • 11
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,336
  • 1
  • 22
  • 44
7
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
  • 71
  • 1
  • 2
6
votes
3 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,807
  • 4
  • 15
  • 16
5
votes
5 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?
Persistence
  • 2,502
  • 3
  • 22
  • 58
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,291
  • 1
  • 14
  • 42
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
  • 20,403
  • 27
  • 78
  • 114
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
  • 672
  • 2
  • 19
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
  • 835
  • 1
  • 8
  • 22
4
votes
2 answers

Convert .sldprt file to .stl using Python script

Recently I have been working on an assignment to convert five file formats (.dae, .stl, .step, igs, obj) to .stl. using FreeCAD Python console and help from people on StackOverflow and FreeCAD forum, I was able to do that. The last part of this…
Umar Dastgir
  • 518
  • 5
  • 20
4
votes
1 answer

Is it possable to call a method that takes this.Handle as an argument inside a background worker in C#

I am working on a stand-alone WinForm program in C# that uses the Solidworks EPDM api. The program takes a top level assembly and finds all the referenced and referencing files in the assembly. e.g. all sub-assemblies, part files, and drawings. …
T. Dog
  • 43
  • 5
1
2 3
21 22