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
Hi, I'm trying to replace the revision letter "A" with the last 2 digits of my filename. Eventually I would save this as drawing sheet format template so it will automatically sync my future drawings. Any help would be highly appreciated! SolidworksApi/macros
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
Hi, I am using Solidworks XR Exporter in order to save animations in .gltf format with motion studies. Is there any api provided to mark the "Exporter Motion Studies" under "Animations" in Options tab during SaveAs? Please see the attachment provided for the setting that I want to mark. Thanks SolidworksApi/macros
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
Hello, In an effort to be more efficient I was wondering if anyone had a macro to export Information from the file properties window. I just want a simple text box to pop up displaying the information below. I would be looking to have my Material Name / Material Units / and Weight of the Base part before any features. Attached is a photo of my File Properties.
Hi all, I want to use vba for my work: select 1 view in drawing file, then open part file --> save to step file --> close file (part) --> (go back drawing file) next sheet ---> ( select view --> open part......) I think this is possible, but I'm not good at vba programming. Hope you will help me, thank you very much. SolidworksApi/macros
Goodmorning everyone. Is there a way to set the parameters of a Hole witzard specific for each configuration? I should create a macro that sets different hole sizes based on the configuration. Thanks in advance for the help.
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
all parts in the assembly will be colored the same piece must be the same color can you edit a macro also Is there a macro that will wipe all colors? SolidworksApi/macros
It does not seem to matter what I use for the width (I have tried 1 - 300) the display width of the edges do not change: I must be misunderstanding the parameter and what it does? SolidworksApi/macros
any one can help me ,How to setting a part of file name link to the file property? thank you very much. for example , fliename is "R.125.212 Stop Part", and i want to get "R.125.212" link to my file property. SolidworksApi/macros
In drawing,I have selected one segment and I want to know that how to get which part it belongs to? Please look at the information selected below in the diagram . I am fluent in VB. Thank you for all your help! SolidworksApi/macros
PDM,API file open dialog box, open the PDM local view gallery under win10, resource manager display incomplete, all the file icon lost, statement as follows 'Set the initial directory in the File Open dialog CustRefOpenFileDialog.InitialDirectory = vault1.RootFolderPath SolidworksApi/macros
I want to work with Solidworks exporter api's in order to save the loaded model in .gltf format, but could not find anything. Are there any api's related to exporter? Any suggestions will be really helpful. SolidworksApi/macros
Hi, I have published new blog post which shows different ways of adding watermark into SOLIDWORKS document. This includes: macro feature with secure notes, invisible features with owner name, 3rd party storage stamps. Thanks, Artem SolidworksApi/macros