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 |
Discover what SOLIDWORKS users are discussing.
Categories:
Sort:
I have used the attached macro and it has been quite the time saver. However, I have a few projects that require to include sketches in the export option and I would like to have it added to this macro. Is there someone who can help me with this?
SOLIDWORKS Forums
10 minutes ago
I have a macro that needs to update a concentric mate. In the image below there is a pattern of the part "1400-015-035-0", I update the pattern using the macro to change the number of parts from 15 to 20, then I need to update this mate to attach to the 20th instance of this part. Can I do this within a macro? I am writing all of this in VBA.
SOLIDWORKS Forums
14 minutes ago
We have certain parts that get used rather often. Unfortunately there wasn't really a set manner to name them but all of them have "start" it them. E.g.: startflens_PP , startflens_RVS , HDPE_start , PVC_start, etc.
SOLIDWORKS Forums
24 minutes ago
I'm not sure if what I want is possible. If it is not possible, I will just create two separate add-ins. Here's what I want my program to do:
SOLIDWORKS Forums
2 hours ago
I have a question about MathTransforms. I'm trying to construct a MathTransform that I would otherwise
SOLIDWORKS Forums
2 hours ago
I have a lot of models that my teams are working on that have a lot of broken relations still in the models they show the dreaded -> x ...is there a way in run through the model and remove only the "broken" dangling relations. Does anyone have a macro to do this yet. Ive looked at using2017 SOLIDWORKS API Help - SketchConstraintsDel Method (IModelDoc2), but would be lengthy to go through all the relation types....
SOLIDWORKS Forums
4 hours ago
Drawing Automation Macro I've been working on a macro to automate drawings from an assembly. The overall goal is for the macro to store the filepaths and names of all components in the assembly, and then start a new drawing, creating and populating the sheets with components in the three standard views.
SOLIDWORKS Forums
5 hours ago
I'm not so experienced with the SW / EPDM Api. I need to run a simple piece of code during a EPDM task. We need to generate a dxf and a pdf from a .dft file (Solid Edge).
SOLIDWORKS Forums
8 hours ago
Hole creation with HoleWizard5 method I am suffering with a simple hole creation in SolidWorks API. I am trying to use the "HoleWizard5" method with the following parameters but nothing happens.
SOLIDWORKS Forums
9 hours ago
sketch segments projected intersection Hi, I've been looking for a method to determine the intersection of sketch segments (line,Arc, spline etc) where the segments either intersect or the projected intersection point. I've used ICurve.IntersectCurve, Moddoc:ClosestDistance etc which don't work for projected, and inserting an actual point can be difficult particularly with projections and splines.
SOLIDWORKS Forums
9 hours ago
I've been struggling with the Hole Wizard API last night. I started by reading the documentation. It is lengthy, but not complete or clear. The HoleWizard5 function has 27 parameter, but the function of each variable depends on the hole type that you create.
SOLIDWORKS Forums
10 hours ago
Linear component Pattern Hi, Could anyone explain to me how to use the FeatureLinearPattern5 method for components in an assembly? I am trying to create a linear component pattern of a part using the API in VBA.
SOLIDWORKS Forums
17 hours ago
I have a drawing macro feature that needs to wait till the view rebuild has finished to continue. The scenario is - Both the drawing and the part file are open. The part has been updated.
SOLIDWORKS Forums
19 hours ago
document preview Is there a way to turn on or off the "Options/ Document Properties/ Image Quality/ Use isometric, zoom to fit view for document preview" check box?
SOLIDWORKS Forums
19 hours ago
Purge Configuration Data method? Wondering if anyone knows of an api call to purge configuration data while a document is open. In SW you do this by running the configuration tree context menu command "Rebuild/Save Mark > Remove Mark and Purge Data for All Configurations".
SOLIDWORKS Forums
23 hours ago
Reload Sheet Format I need a help regarding drawing sheet format.
SOLIDWORKS Forums
1 day ago
Have a drawing macro I'm updating, part of the macro requires the model (asm or prt) to be opened, have a custom property changed, then saved. Now, i have seen it done a few different ways. I want to do it all silently so the user sees none of the steps.
SOLIDWORKS Forums
1 day ago
Macro below processes a part and fully defines all sketches. The Issue is it wont find/process the sketches of holes. It processes all other features, but holes it skips.
SOLIDWORKS Forums
1 day ago
I have made a macro which creates PDF`s of my drawings. Our MPS system can only handle A3 as maximum sheet size,
SOLIDWORKS Forums
1 day ago
The command "swDispDim.GetText(swDimensionTextPrefix)" returns "20X .201 THRU ALL", which has a string length of 28. Is there a way to return the displayed dimension string of "20X Ø .201 THRU ALL", for instance, which has a string length of 19?
SOLIDWORKS Forums
1 day ago
I can't find any hint how I can access these items (see picture) in a macro. Does anyone know how I can do it? Lets try this code...
SOLIDWORKS Forums
1 day ago
Macro dimensions I'm struggling learning vba so I take my hat off to you people who know your stuff and help people like me.
SOLIDWORKS Forums
1 day ago
I'm trying to control the number of pages I print using a macro, I've tried using both PrintRange and AddPrintRange However the macro still just seems to print which ever the current selected sheet is, regardless what range is defined.
SOLIDWORKS Forums
1 day ago
I export an assembly as 3D PDF using PublishTo3DPDF api. I customized the 3DPDF template with views , custom properties and BOM tables. Everything was working but custom properties values not shown in 3DPDF.
SOLIDWORKS Forums
1 day ago