What's new in the

SOLIDWORKS User Forum

Where SOLIDWORKS users discover, engage, and share about 3DEXPERIENCE Works - SOLIDWORKS desktop, cloud-connected, and pure cloud.

Just log in with your 3DEXPERIENCE ID.

Hello, can someone point me on the right direction to export some bodies from a multibody part into a new part using api? i want to mimic the behaviour os the existing command "Inser into new part", but need some tweeks as automatic file name, custom properties, etc... thanks in advance, Bruno. SolidworksApi/macros
SOLIDWORKS User Forum
3 years ago
I want to save it and can not get the dll item. SolidworksApi/macros
SOLIDWORKS User Forum
3 years ago
Hey guys, Actually i want to traverse into file / folder of PDM vault. I am able to connect PDM Vault perfectly but not able to get files/ folders. Any help would be appropriated. Thanks. ‌ ‌ SolidworksApi/macros
SOLIDWORKS User Forum
4 years ago
I'm trying to write a macro that creates a note, but I don't want to define a position. I want the note to be attached to the cursor for the user to place it where they want (just like if they were inserting a note manually). The effect shown in the following image GIF SolidworksApi/macros
SOLIDWORKS User Forum
4 years ago
From solidworks 2018, VSTA Macro update from vsta 1.0 to vsta 3.0. we have run ,edit micro with Visual studio 2015. so ,this is the reason for the question . SolidworksApi/macros
SOLIDWORKS User Forum
3 years ago
The problem is when i read component‘s customInfo,i need to use GetModeDoc2(). if the function return null,i need to open the file.But if the file have too many component,the memory will broken down .So Is there have anyway to release memory?I try to use modelDoc2.close() and Swapp.closeDoc("**").they have do nothing.I see the documentManager but i haven't the lisence. SolidworksApi/macros
SOLIDWORKS User Forum
3 years ago
Hi, I have published new blog post 5 best practices to make your VBA macro great. It practically demonstrates simple techniques which can be used in macro development which will make macro more reliable, stable and easy to use and maintain. I have used Excel macro in this example, but the same techniques can be applied to VBA macros in SOLIDWORKS. Thanks, Artem SolidworksApi/macros
SOLIDWORKS User Forum
3 years ago
Does anyone know why this command doesn't work? Sub UserForm_KeyDown(ByVal KeyAscii As MSForms.ReturnInteger, ByVal Shift As Integer) Select Case KeyAscii Case 13 'enter key addBtn_Click 'ase 39 'right arrow skipBtn_Click Case 27 'escape key Unload Me Case Else End Select End Sub thank SolidworksApi/macros
SOLIDWORKS User Forum
3 years ago
Hi guys, I'm currently straggling to find any documentation or examples how to use branch and merge via API. Unfortunately without any luck so far.. Has anyone seen anything? Please share SolidworksApi/macros
SOLIDWORKS User Forum
3 years ago
Hi, In this blog post: Automatically Run Macro On Model Open I explain two ways and provide source code to automatically run VBA code when model is opened Using Events Using Macro Feature In both cases it is not requried to create add-in or install any additional software. Thanks, Artem SolidworksApi/macros
SOLIDWORKS User Forum
4 years ago
Hi, is it possible to make a VBA program that would generate a list of all dependant drawings (dependant on root assembly and specific configuration)? Did anyone do this kind of project? SolidworksApi/macros
SOLIDWORKS User Forum
3 years ago
Hi, I have published video which shows how to extend the functionality of SOLIDWORKS by implementing a custom parametric macro feature to create extrude from multiple sketches in a single feature. This feature can be embedded in the model and used on any machine. Macro code and example model are available for download. SolidworksApi/macros
SOLIDWORKS User Forum
3 years ago
how to solve the problem in the picture can you edit a macro I'm using solidworks 2019 SolidworksApi/macros
SOLIDWORKS User Forum
4 years ago
I save a macro in Vsta 3 in my desktop directory , and then Visual Studio 2015 open it in other directory (C:\Users\blues\AppData\Local\Temp\Vsta\VSTAConsoleApp\VstaTGLKCEvl5USbkMHpAyVbSQ\VstaJQx9h4_YLk2dwmz8nMYwjQ\). When i rebuild ,clear this macro project , i meet some problem. SolidworksApi/macros
SOLIDWORKS User Forum
3 years ago
Oi I have a simple extrusion (not well oriented). With the file already open i want the code to: get normal to extrusion; view>modify>orientation; new view;
SOLIDWORKS User Forum
4 years ago
I have this macro which i wanted to use for ease of my operation . But it is showing run time error. Can some one please help me fix this error! ‌ SolidworksApi/macros
SOLIDWORKS User Forum
4 years ago
What macros are you all using to split up your macros and what characteristics are you using to tell them apart eg. Cutson property, tag, toolbox SolidworksApi/macros
SOLIDWORKS User Forum
4 years ago
One more feather on the cap, SOLIDWORKS CSWP API Certified. Thank you ‌ for the guidance and support. Exam is available for everyone and currently the exam is on 50% discount, details here SOLIDWORKS CSWP API Discount SolidworksApi/macros
SOLIDWORKS User Forum
3 years ago
How can I get the customer property file name which linked to SW part file when file opened appeared on right task panel automatic SolidworksApi/macros
SOLIDWORKS User Forum
3 years ago
Hi every one . I have install the SOLIDWORKS API SDK.msi (swvbaddin template) but i can't see it on Visual Studio 2019 template list.Can any one tell me how can i fix the problem .Thank you for your time Kostas . I use SW2018 SolidworksApi/macros
SOLIDWORKS User Forum
3 years ago
solidworks drawing hide and show sketch macros Is there a macros SolidworksApi/macros
SOLIDWORKS User Forum
4 years ago
I have recently recieved help on deleting rows that do not have the YES quantity in a certain coloumn. Is there anyway to keep the title row/Header row? Attached pictures are as explained. First is before i run macro and highlighted row is the row i want to stay.
SOLIDWORKS User Forum
4 years ago
Hi, I am trying to clear any dimension on a specific drawing view. I tried with outline to get the bounding box of the view then swApp.SetSelectionFilter 14, and then using the SketchBoxSelect to select the dimensions. However, it always deletes the view with it even if the filter is on! Any idea how to approach this is welcome!
SOLIDWORKS User Forum
4 years ago
Want macro to browse a folder path and save all the opened solidworks file (part(.sldprt) and drawing(.slddrw) documents in that path. SolidworksApi/macros
SOLIDWORKS User Forum
4 years ago