At GoEngineer, we love to help our customers. Here’s a collection of small SOLIDWORKS ‘macros’ that were tailored to help solve a customer problem. Free to use, free to review, free to modify. If you need help finding what you are looking for, we would suggest using the Knowledge Base to help.
Maybe we can be of assistance. If you need help with a SOLIDWORKS macro, give us a ring. Macro creation isn’t supported under subscription service, so we can’t guarantee you a solution. But if it’s a simple thing for one of experts to put together, we would love to help! Send inquiries to firstname.lastname@example.org.
The ‘SAVE PDF’ macro will save the currently open drawing in SOLIDWORKS as a PDF file to the same folder location and name as the SOLIDWORKS Drawing.
This SOLIDWORKS macro contains code that shows you how to set tree display settings through the SOLIDWORKS API. It turns on Names for Feature, Component, and Component Configuration. It turns off Descriptions for Feature, Component, and Component Configuration.
The macro gets all features of a part or assembly and then builds a tree view showing those features. When you expand a node on the tree, you will see what configurations the feature is not suppressed in. This will then reveal the configurations it is used in by deduction.
Have a large part, assembly, or drawing that takes forever to load when you switch sheets or configurations? With Activator you select which sheets or configurations you need to work with and it will load the referenced models into memory so you don’t have to sit there and switch configurations or sheets manually one at a time.
The File Splitter macro will then take the active document and create a new file in the same directory with a new name following this structure: original filename space hyphen space configuration/sheet name. It will warn you to overwrite if a file with that name already exists. Each of the new files will only contain one configuration/sheet with all of the others removed hence splitting the original file out into separate files for each configuration/sheet found in the original active document. No changes will be made to the active document itself.
Macro that updates all drawing BOM’s to reference Default configurations.
This macro contains example code that shows you how to apply multiple mates between an o-ring and the groove. It selects the adjacent faces of the bottom of the groove for adding a symmetric mate.
The macro presents the user with a form so they can enter as many configuration names that are required to be added to their part or assembly. With a click of the button, each entry will result in a new configuration being created in the active document.
Copies all Custom Properties from an open Drawing to the referenced Part/Assembly.
This is a great example of a recursive function to process a directory and all sub-folders. It processes all assemblies and exports a IGES and STEP on these assemblies. It uses the File System Object for this.
This is a SOLIDWORKS Task macro that replaces or updates the sheet formats for all SOLIDWORKS drawings in a specified folder. You can specify a sheet format template for first sheet and a separate sheet format template for the second and remaining sheets.
This macro renames SOLIDWORKS sheets in sequential order with the format sheet1, sheet2, sheet3…
This macro can be used to copy the existing value of a Custom Properties to a new or existing Custom Property in the same file. The macro can be run on SOLIDWORKS parts, assemblies and drawings in a specified folder.
This macro allows you to scale the location for points in a 3D sketch. This is handy if you have created 3D sketch points with the document units set to the wrong unit system. The macro will allow you to adjust their locations without having to recreate them.
This macro can be used to batch convert SOLIDWORKS models and drawings to another file format. You can specify different file types for models and drawings and optionally append ‘Revision’ custom property to converted filename.
This macro can be used to quickly rename the active file in SOLIDWORKS with the value from a Custom Property. By default, the macro is setup to rename the file using the custom property ‘PartNo’. The macro can be modified to change this to any desired custom property.
This macro is used to add custom properties to SOLIDWORKS and designlibrary components.