Complimentary Tools – No Cost Examples and Solutions
At GoEngineer, we love to help our customers. Here’s a collection of small ‘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.
Still need help?
Maybe we can be of assistance. If you need help with a 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.
SOLIDWORKS Automation with Excel
GoAutomate is an open-sourced tool based on Microsoft Excel that helps customers automate SOLIDWORKS models directly from Excel. Users can control features, dimensions, configurations and more in their models, directly from Excel, and without having to be a ‘programmer’. This fully supported tool by GoEngineer is a complimentary part of our subscription support.
Save a Drawing as a PDF
Macro that saves currently open drawing in SOLIDWORKS as a pdf to the same folder with the same name.
How to Automate Tree Display Settings
This 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.
Show Feature Where-Used in Configurations
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.
How to Switch Active Sheets and Configurations
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.
Create Individual Files for Each Configuration/Sheet
The 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.
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.
Quickly Add Configurations to Parts and Assemblies
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.
Mass Save As
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.
Replacing/Reloading Sheet Formats in SOLIDWORKS Drawings
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 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 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.
Batch Convert Files
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.
Rename with Custom Property
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.