Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
58 views

I am attempting to connect to SolidWorks via this code: Dim swApp As SolidWorks.Interop.sldworks.ISldWorks = _ TryCast(System.Runtime.InteropServices.Marshal.GetActiveObject("SldWorks....
Dan's user avatar
  • 159
0 votes
0 answers
75 views

I'm making a code in SolidWorks VBA that will automatically model revolved rectangles onto an imported conical solid body with an axis going up the middle. The revolves are placed on angled planes ...
FerryBoat's user avatar
0 votes
1 answer
122 views

I am attempting to do some Solidworks automation to create some revolved features using an excel spreadsheet for the dimensions. I’ve deduced the error with my code was with the creation of the ...
FerryBoat's user avatar
0 votes
0 answers
38 views

A spiral cone with a parameterized radius Hello, I am struggling with filling the cone in the attached image. I drew the spiral line with a curve through XYZ points. The radius is parameterized, and I ...
Gihyeok Na's user avatar
0 votes
0 answers
34 views

In SOLIDWORKS, for a hole drawn by the wizardHole, it can be easily obtained through the hole feature in SOLIDWORKS, and its diameter and hole type can be obtained, but the hole drawn by extrusion cut,...
Stone's user avatar
  • 55
0 votes
0 answers
183 views

def open_file(): """ Open a file dialog to select a file and launch SolidWorks for supported files. """ # Specify the SolidWorks shortcut location (modify ...
Jagadeshrao Thalur's user avatar
0 votes
0 answers
119 views

I often get step-files. The coordinate system will never be the same. So I searched for solutions, that transform the main coordinate system into another. I found a good solution here on Stack ...
user28659248's user avatar
2 votes
0 answers
106 views

I get wrong characters and "???" instead of Hebrew when trying to retrieve a folder path using VBA (by user browse selection) then plot it with question marks. I changed the locale. Is there ...
lila's user avatar
  • 21
0 votes
1 answer
106 views

I have written the following VBA code to save my Solidworks files. It also checks if files already exists in the folder and if so - asks through a messagebox if these files need to be overwritten. ...
JetskiS's user avatar
  • 143
1 vote
2 answers
92 views

I am aware I'm not the first to have this question. Still I cannot find the solution. I have some vba code for my solidworks, that works fine. However, I want to use a string that I defined in one sub,...
JetskiS's user avatar
  • 143
0 votes
1 answer
124 views

I want to automatically save solidworks files within an assembly. The names of each parts that will be saved is created based on the input given in a userform. The user can determine the amount and ...
JetskiS's user avatar
  • 143
1 vote
1 answer
80 views

I have a working script that saves multiple Solidworks parts through a loop using vba. The amount and name of parts is dependent on the user that selects parts to be saved in a userform. If files are ...
JetskiS's user avatar
  • 143
0 votes
1 answer
126 views

I have a script that saves x amount parts of a SW assembly into step/xt, based on the input of a userform. This works really well. However, I want to add a messagebox that asks "Do you want to ...
JetskiS's user avatar
  • 143
0 votes
1 answer
110 views

I want to save multiple files at once. Based on checkboxes in a userform, an array called ArrayParts is created. Each checkbox contains the name of the file that the user wants to save. My code gets ...
JetskiS's user avatar
  • 143
0 votes
0 answers
39 views

I created a VBA userform (named UserParam) to save my Solidworks files. The userform contains among others two options: save as .STEP or as .XT. I used the following codes, but only the .STEP ...
JetskiS's user avatar
  • 143
0 votes
1 answer
215 views

I'm making VBAs to clean the feature tree and automate some process in the way to lighten the work on big welded structures. Every weldment and sheetmetal features in my cutListFolder have a property ...
TheRedWolf2525's user avatar
1 vote
1 answer
105 views

I want to communicate information between SolidWorks and Excel using vba back and forth. I managed Dim swApp As Object Dim Part As Object Dim boolstatus As Boolean Dim longstatus As Long, longwarnings ...
JetskiS's user avatar
  • 143
0 votes
1 answer
170 views

I have created a new version of a custom addin for SolidWorks. The addin adds a tab to the CommandManager which contains a bunch of buttons to macros. I have previously updated it without issue. ...
Andy Rigby's user avatar
0 votes
1 answer
150 views

I want to get the plane where the hole is located, I try to get the face through the feature, but it is the face inside the hole feature, not the plane where the hole is located. Later, I pass the ...
Stone's user avatar
  • 55
1 vote
1 answer
279 views

I'm writing a simple script to count the number of referenced files giving a file in a vault of Solidworks PDM. I get a Type mismatch error in GetFileFromPath method which has the following ...
Gianfranco Girardi's user avatar
1 vote
0 answers
82 views

I directly add volumetric heat sources from a VBA program using APIs. I would like to modify Q (Heat Generation Rate). My goal is to automate thermal simulations for a part composed of two solid ...
Imad's user avatar
  • 11
0 votes
2 answers
327 views

I'm trying to update a Solidworks VBA script to adjust properties of a view after it has already been placed and am unsure how to actually do this. In the GUI once I select the view I can edit these ...
eherman's user avatar
  • 57
0 votes
1 answer
385 views

I am trying to find a way to automatically open the model the drives Drawing View 1. I have the following code which opens the model if it is not open already, but if it is already open, does not ...
Cadell's user avatar
  • 61
0 votes
1 answer
486 views

I'm creating a SolidWorks VBA macro to name and save new models inside the PDM vault. The macro uses the built in SaveAs3 method and allows the user to select various save options: Save as, Save as ...
Enrico Calzolai's user avatar
0 votes
1 answer
173 views

I'm trying to split my model in the style of a dovetail using a stopper layer at the bottom. The front half will be removable and then placed on the back half with the stopper layer preventing gravity ...
SmooreInsight's user avatar

1
2 3 4 5
10