We use cookies to operate this website, improve its usability and track visits. Please note that by using this site you are consenting to the use of cookies.
Learn More |
Search results from your query.
Categories:
Sort:
I have used the macro for the 6.0 Beta in this forum Batch export to dwg and it works perfectly for everything that I need. I'm using SW2016 But, How can I add to this macro to include a specific view of either front, right, or top?
SOLIDWORKS Forums
13 hours ago
With 2017, we now have the ability to show comment indicators for features and configurations. They can be turned on and off by RMB on the top-most node of the Feature Manager and Configuration Manager, but I would like to use the API as well. I couldn't find anything on this in the API help, but then again, I have a hard time finding almost anything in the API help.
SOLIDWORKS Forums
15 hours ago
I putting together a macro that i can run on an assembly to automatically replace parts. Basically im replacing a specific named part with a identical part with a different name from a defined standards library location. I can get the components & their configurations being used.
SOLIDWORKS Forums
16 hours ago
I have an assembly that is export to create a BOM but the order is wrong in so many level. I saw the answer for please help(traverse assembly) with someone saying " If you do mind the order of the tree you will have to traverse on the features tree and look for components. The API help is not explaining that so let me know if you need help."
SOLIDWORKS Forums
16 hours ago
I have a (hopefully quick) question. If I have an active file, what is the script to check out, save, and check in?
SOLIDWORKS Forums
16 hours ago
Basically, I have my own search using WinForms (standalone application outside of PDM) so that I can search for "base" part numbers in my search and pull in variables when I select the filename in the list. The first part works nicely and I'm trying to now pull variables from the file. I can get file information just fine, but it's breaking when I try to set my textboxes to the object string.
SOLIDWORKS Forums
16 hours ago
I have a BOM table what contains hidden columns. I'd like get the title and visibility informations of all columns. This is a sample part of my code below.
SOLIDWORKS Forums
19 hours ago
I created a macro (attached) that replaces a weldment profile of a structural member in a part document (attached). (The macro has two lines starting with "featData.WeldmentProfilePath =". If you want to switch between them, you need to comment in and out the two lines alternately. You also might need to adjust the paths depending on your installation folder of SolidWorks.)
SOLIDWORKS Forums
22 hours ago
I would like to create a macro which saves an active assembly as separate dxf files of each of the standard views, but not current or ISOs. To do this manually, I have to first save the assembly as a part, then save the part as a dxf and check some boxes. The dxf folder is a sub folder of the active file location called "SW DXFs". I have found two macros, both written by Deepak Gupta, but I'm having trouble combining them as I have a very small knowledge of VBA.
SOLIDWORKS Forums
1 day ago
In VBA, I know i can filter a string with for a single character. Is there a way to filter the same string to check multiple characters in the same digit. 4th from the right must be E, S, X, P, O, H...
SOLIDWORKS Forums
1 day ago
I've created a macro with a button, I'm trying to change the icon to a custom image. Here is the image I'd like to use I've also attached the bmp file.
SOLIDWORKS Forums
1 day ago
Hello friends , I have two macro(SUB ROTATEFACE ) and (SUB TRANSLATEFACE) wich are exist in a SUB MAIN . the first is used to rotate face of component in assembly and the second one is a macro to translate the same face of component in the same assembly.I want a mathod or macro like this : AFTER SELECTING FACE ----> IF I want to rotate face then go to ( SUBROTATEFACE) or IF I want to translate face then go to ( SUB TRANSLATEFACE)
SOLIDWORKS Forums
1 day ago
Help with Create Center Rectangle method Macros I was trying to implement a Macro which selects a surface on a cube and draw rectangles on it using the CreateCenterRectangle method. The units i was using is Microns (code below).
SOLIDWORKS Forums
1 day ago
If I draw a Detail view, I will get a detail view without Leader and profile, so I always need to change that view with Leader and Profile. Is there any Macro to get that Detail View with Profile and Leader by clicking one button after drawing the profile? Thanks in Advance.
SOLIDWORKS Forums
1 day ago
I am trying to figure out why my macro for setting material on a part isn't working, I basically copied and pasted the code from here: 2015 SOLIDWORKS API Help - Set Material Example (VBA) But it doesn't work, no material is applied when I put in the file path for my part. Is there a way to set the material of a part file rather than the individual solid bodies?
SOLIDWORKS Forums
1 day ago
Known Dim swDispDim As SldWorks.DisplayDimension Set swAnn = swDispDim.GetAnnotation
SOLIDWORKS Forums
1 day ago
I have had this macro for a long time, I'm struggling to recall where Igot it from. I used it to replace the drawing sheets in all my drawings before I placed them into my workgroup PDM vault.
SOLIDWORKS Forums
2 days ago
The example in SW API help is not doing what is supposed to do. I 'm assuming that the API call is not functioning correctly. Can anybody run this macro and get the correct output?
SOLIDWORKS Forums
2 days ago
I work at a company in a transition between two programs. At the moment we are generating every .PDF and .DWG manually. To make this easier i started making a macro to make the process faster and automated. Problem is that i am stuck.
SOLIDWORKS Forums
2 days ago
Hello brothers , I wanto to know how can I check the intersection between to components in assembly after add mates . thanks in advance If you mean Interference then just select the parts and go to Tools -> Evaluate (near the bottom) -> Interference Detection.
SOLIDWORKS Forums
2 days ago
Obviously I am a newbie to this and I don't yet know what I'm talking about... I'm a little confused, because there seems to be a choice of API language.
SOLIDWORKS Forums
2 days ago
Hi all, I'm trying to made a Vb.net code that should import an model and update some equation dimensions. This is the first time i'm using VS with SW api. So i really can't understand what I'm doing wrong .
SOLIDWORKS Forums
2 days ago
I am using Sketch Text and Cut Extrude to create labels on parts, but the text is too small for my application, so I have to change it manually. When changing it manually, you must uncheck the "use document font" box and click on the font button. Then you can change font size, type, etc., but I need a way to change it automatically when using a macro.
SOLIDWORKS Forums
2 days ago
Is there a way in SW2013 to set the "horizontal cell padding" within a macro? Are you looking to do a dimension (HorizontalJustification) or text in a cell (CellTextHorizontalJustification)
SOLIDWORKS Forums
2 days ago