Discover what SOLIDWORKS users are discussing.
Categories:
Sort:
Does the Flow Simulation Wizard (SldWrks'16) create code for VBA? I've tried to get it by recording it but when I see the code, it's empty. Actually, I'm trying to program a flow simulation over an airfoil which is a spline.
SOLIDWORKS Forums
3 hours ago
Is there a way to split a BOM at each sub assembly? What I have is about a 100 part assembly that consists of 5 punch side and 5 die side sub assemblies plus a set of cutoff tools. I have the separated tools listed how we want to see them on the sheet as general tables as an example. I would like to have a linked BOM in place of the general tables but it would need a lot of manual tweaking that I'd like to automate as much as possible.
SOLIDWORKS Forums
4 hours ago
I need help coming up with a macro that opens a userform that allows the user to search through multiple configurations of a part for the configuration he/she needs. Right now this particular part has close to 50 different configurations. Instead of having someone have to search through each one, I need a better way for them to query the right size prt. I know the basics of VBA but I am struggling on this.
SOLIDWORKS Forums
5 hours ago
I have a macro that creates a macro feature in a part file then creates curves through XYZ and makes those curves sub-features of the macro feature. The issue I have is that if the part file is closed the next time it's re-opened the curves are no longer sub-features and I don't know why the sub-feature assignment is lost. Has anyone experienced this issue or know of a fix? I'm using theMakeSubFeature.
SOLIDWORKS Forums
7 hours ago
I am building a macro, and a part of that macro has to determine the distance from a specific plane to the furthest point of any solid body that is in the model. Here's a simplified screenshot to help visualize the problem: The real difficulty here is that there might be all sorts of solid bodies, not necessarily the one depicted in the screenshot.
SOLIDWORKS Forums
7 hours ago
I am trying to select the BOM shown on the active sheet, does anyone know how to do this? I currently have code that traverses the tree to select the BOM Feature but I ran into an issue where this won't work because the 1st BOM in the tree is on the 2nd sheet.
SOLIDWORKS Forums
8 hours ago
I would like to use some third party nuget packages within my PDM add-in. However, when I debug the app it crashes once it hits the code that would call methods in the third party packages. Any idea on how to get this working?
SOLIDWORKS Forums
8 hours ago
I am working on a macro that will add revision symbols to drawing. I have noticed two things: 1) the macro only adds one revision symbol?
SOLIDWORKS Forums
16 hours ago
I feel like I may be doing something terrible wrong, but I can't quite figure out what is wrong with this function. CreateTrimmedCurve2 does not seem to act predictably. Below are 4 examples that all I am doing is altering the start and direct of the beginning curve and the start and end points of the createtrimmedcurve2 function.
SOLIDWORKS Forums
22 hours ago
I want to put the button up the very top of the screen. Does anyone have a macro that can change this setting that I can assign to a button? not sure why you would want to open files read only but this sounds like a great enhancement request. for a right click command to open a part read only....
SOLIDWORKS Forums
1 day ago
Hello, I am working on macro which would rename selected parts in assembly. Currently i have this: But it throws Run-time error "91". on this line:
SOLIDWORKS Forums
1 day ago
I have been trying to bulk update sheet formats but have noticed strange behaviour with the automatic borders. In my system, by default the automatic borders are set to a level called "ZONES" in document properties and the line thickness is set to 0.25mm.
SOLIDWORKS Forums
1 day ago
In a VBA macro I wish to run a string as a command line command. Can this be done? How is this done?
SOLIDWORKS Forums
1 day ago
I am teaching myself to write macros for SolidWorks and many times I have the problem that I don't know what functionality is pre-included in Solidwork's API/VBA stuffs, and have no known resource/documentation for discovering this. I am looking for a teach-myself resource (or even just what keywords to google) to help with this. There's the SolidWork's online documentation found here but I either don't understand how to search through it or it rarely contains specific information I needhttp://
SOLIDWORKS Forums
1 day ago
I would like to look through the bom to find the cells that contain certain strings. I then want it to add up and return the qty's column. No doubt this can be cleaner. This is what I have that seems like it works for storing the qty's in an array.
SOLIDWORKS Forums
1 day ago
#TASK Flat pattern export fail Hey all, I'm trying to use #TASK's 'Export Flat Patterns' option but I keep getting a "Failed to export flat pattern" error. It seems as though the macro may be written to export a part with a single flat pattern, but I have a part with multiple sheet metal flat patterns.
SOLIDWORKS Forums
1 day ago
I was wondering if anyone could please help me with this: Would you be able to make me a macro that copies the value from the bends for sheet cutlist properties.
SOLIDWORKS Forums
1 day ago
How to use API to get the center coordinate value of a cylinder by selecting its edge? For example, I want to get center coordinate value (0,30,0) in Fig1 or get center coordinate value (0,20,0) in Fig2.
SOLIDWORKS Forums
1 day ago
I'm trying to write a macro to add the prefix "1-0" to the custom property "ItemNumber". I've been able to use #task to add prefix/suffix to configuration specific properties in the past, but it does not work for only custom properties.
SOLIDWORKS Forums
2 days ago
I'm a student on Engineering and Industrial Management with my master's thesis consisting on the development of some applications that can model some common standardized mechanical elements such as screws, bolts, plates and pins, and also automating assemblies with this elements. I need to include some bibliographic support but because I'm struggling to find it on google scholars and at my university repository, I feel in the need to ask you.
SOLIDWORKS Forums
2 days ago
Selecting Edges Hi all, I copied this function from a different thread and I'm trying to convert it to select edges instead of faces. Everything works except for the line " Set Edge = Body.GetEdge ".
SOLIDWORKS Forums
2 days ago
Hello every bodies , I need your help .I have two surface and I want to check interference betwwen them ! .I tried to use " check interference " in solidworks but just it allows me to chek interference just betwwen components !!.thank you very much
SOLIDWORKS Forums
2 days ago
I have a BOM i exported out to excel. I need to delete allrowsnot containing my multipal partial criteria. Basically i want to delete any rows NOT containing "-D" "-S" "-M" "RVS-" or "RVD-"....all other rows need to go.
SOLIDWORKS Forums
2 days ago
Hello friends, I have a surface that I create it using some triangular reference surface as indicated in the picture .the problem that I cannot select the face diectly.I should always select all small triangular surface to select all the face.Are there a method to combine all these small triangular surface to get on surface .I tried to use Knit command but after get the surface I cannot use it to make a coincident mate for example with another face or part !! . someone can help me plzz.thank you
SOLIDWORKS Forums
2 days ago