SolidWorks Macros by Lenny Kikstra
Macros that I have written and have made freely available for your download and use.


Disclaimers:
  • These macros are provided free of charge for personal use and/or reference.
  • These macros may be freely distributed, provided the original copyright notices remain unchanged and intact.
  • Most of these macros will work many 32bit versions of SolidWorks with minimal or no modification.
  • These macros, may not work on 64bit installations of Windows or SolidWorks.
  • These macros, and corresponding files, are provided as is.
  • There are no warranties, expressed or implied, that these macros will perform as indicated, perform to users expectations, or complete a specific task.
  • These macros will change the current SolidWorks document. Use these macros at your own risk. Back up your data before using this macro on any SolidWorks document.
  • This disclaimer was last modified on March 13, 2007 by Leonard Kikstra

    Name/Size: 3DPoints 61k
    Version/Date: 1.10 10/12/2007
    Programmer/Copyright: Leonard Kikstra 2007 Leonard Kikstra
    Description: The 3DPoints macro provides a means to import 3D points, from a text file generated by coordinate measuring machine, into a 3D sketch in a part model. swp file now included.

    Name/Size: AnnotationsPro 160k
    Version/Date: ??? August 11, 2003
    Programmer/Copyright: Leonard Kikstra 2003
    Description: AnnotationsPro is a SolidWorks macro that provides a consistent method for correcting the display of annotations in SolidWorks documents. When the macro is launched, the user is presented with a list of options that can be run on the current SolidWorks document. Changes will not be completed in the document until the user clicks on 'Process'.

    Name/Size: AppLaunch 1k
    Version/Date: ??? 10/10/2003
    Programmer/Copyright: Leonard Kikstra 2003
    Description: AppLaunch allows you to launch a specific application and document, from within SolidWorks.

    Name/Size: AssemblyTools 201k
    Version/Date: 2.00 12/22/2005
    Programmer/Copyright: Leonard Kikstra 2005
    Description: AssemblyTools is a SolidWorks macro that is a collection of tools that are designed to be used on SolidWorks assemblies. Tools include: Unsuppress All Components, Copy All Components Here, Reload Assembly Model

    Name/Size: BGColors 1k
    Version/Date: ??? 08/27/2003
    Programmer/Copyright: Leonard Kikstra 2003
    Description: BGColors is a nice tool to dynamically enable/disable gradient background in SolidWorks models, set top and bottom colors for the gradient background, and set viewport background colors for drawings, and models (when gradient background is disabled). This is an example of reading and changing of SolidWorks settings.

    Name/Size: CommonNotes 47k
    Version/Date: v2.55 March 9, 2007
    Programmer/Copyright: Leonard Kikstra 2003-2007
    Description: CommonNotes is a highly configurable, user customizable, SolidWorks macro that provides a quick and consistent method for adding common/standardized notes to a SolidWorks drawing. Macro options and common/standardized notes are read from an external data file. (If the external data file is not found, the user will be warned, and the default notes and settings, stored in the macro, will be used.) See OPTIONS below for a list of configurable options that can be added to the data file.

    Name/Size: CommonNotes_V1 22k
    Version/Date: 1.00 08/04/2003
    Programmer/Copyright: Leonard Kikstra 2003
    Description: This macro that provides a quick and consistent method for adding common/standardized notes to a SolidWorks drawing. The common/standardized notes are read from an external data file.

    Name/Size: CompStateSwitcher 26k
    Version/Date: 1.00 03/09/2005
    Programmer/Copyright: Leonard Kikstra 2005
    Description: ComponentStateSwitcher is a SolidWorks macro that helps you change the suppress/resolve state and hide/show visibility of components in the current assembly. It does this by providing a list of all components, providing a preview of the component, then allowing you to chage the state and visibility of the component. This only works on the current configuration of the current assembly, and it does not allow you to change the referenced configuration of the components.

    Name/Size: ConfigManager 61k
    Version/Date: 1.10 03/08/2007
    Programmer/Copyright: Leonard Kikstra 2003-2007
    Description: ConfigManager.swp macro will dynamically change the configuration that is activated or referenced in SolidWorks documents. Document type and preselection(s) determines how the macro works

    Name/Size: ConfigMassProp 61k
    Version/Date: 1.00 03/15/2007
    Programmer/Copyright: Leonard Kikstra 2003-2007
    Description: Retrieve Mass Properties values (lbs and kgs) for multiple configurations in a SolidWorks model (current or selected part/assembly) and export that data to a comma delimited text file for later use. Based on ConfigManager.

    Name/Size: DataCharter 61k
    Version/Date: v1.0 March 7, 2009
    Programmer/Copyright: Leonard Kikstra 2009
    Description: DataCharter is a SolidWorks macro that provides a method of automatically exercising SolidWorks geometry and retrieving data from SolidWorks while the geometry is being exercised.

    Name/Size: DataRipper
    Version/Date: v1.0 March 7, 2009
    Programmer/Copyright: Leonard Kikstra 2009
    Description: DataRipper is a SolidWorks macro that provides a method of retrieving data from SolidWorks geometry on demand. This allows geometry to be modified as needed and data is retrieved when requested by the user. Data is stored in the form during editing.

    Name/Size: DeleteConfigurations 38k
    Version/Date: ??? 10/06/2003
    Programmer/Copyright: Leonard Kikstra 2003
    Description: This is a series of individual macros that can be used to delete configurations in a SolidWorks model.

    Name/Size: DeleteSelectConfigs 47k
    Version/Date: ??? March 9, 2007
    Programmer/Copyright: Leonard Kikstra 2003-2007
    Description: DeleteSelectConfigs is a simple macro that displays a list of the current configurations in a SolidWorks model prior to deleting these configurations, except for the current configuration. The current configuration cannot be deleted. The name of the current configuration is displayed under the list of configurations. The user can then select the configurations that are to be deleted.

    Name/Size: DelRevTriangles 3k
    Version/Date: ??? 08/27/2003
    Programmer/Copyright: Leonard Kikstra 2003
    Description: This macro will delete revision triangles from SolidWorks drawings. As written, this macro will recognize a rev triangle is a single character note with a triangle border.

    Name/Size: DisplayProperties 77k
    Version/Date: 1.10 03/09/2007
    Programmer/Copyright: Leonard Kikstra 2003-2007
    Description: This macro provides a simple, easy to use interface to change many of SolidWorks' display properties. This macro really serves no purpose beyond providing quick access to SolidWorks' display settings and demonstrating how you can use a macro to change settings in SolidWoks.

    Name/Size: DocExport 116k
    Version/Date: 1.30 03/09/2007
    Programmer/Copyright: Leonard Kikstra 2003-2007
    Description: Assists user in exporting selected SolidWorks model configurations or SolidWorks drawing sheets to different file types. This is useful when you need to separate many configurations into individual files of another file type for a vendor to use/reference.

    Name/Size: FixAltPartNo 46k
    Version/Date: 1.00 03/09/2005
    Programmer/Copyright: Leonard Kikstra 2005
    Description: FixAltPartNo is a SolidWorks macro that helps you 'globally' fix/set/change the AlternateNumberInBOM setting in all configurations in all selected SolidWorks models in the current directory.

    Name/Size: FixProperties 46k
    Version/Date: 1.00 03/09/2005
    Programmer/Copyright: Leonard Kikstra 2005
    Description: FixProperties is a SolidWorks macro that helps you 'globally' fix/set/change 'Custom File Properties' and 'Configuration Specific Paoperties' values in all configurations in all selected SolidWorks documents in the current directory.

    Name/Size: FixRevisions 37k
    Version/Date: 1.00 03/09/2005
    Programmer/Copyright: Leonard Kikstra 2005
    Description: FixRevisions is a SolidWorks macro that helps you 'globally' fix/set/change the 'REVISION' 'Custom File Properties' values in all selected SolidWorks documents in the current directory.

    Name/Size: FixWeldSymb 3k
    Version/Date: 1.00 08/27/2003
    Programmer/Copyright: Leonard Kikstra 2003
    Description: A simplified macro, based on the ANNOTATIONS PRO macro that Trims leading and trailing spaces from the weld size and specification, and Ensures a minimum of 4 characters are entered for weld length to provide uniform appearance of weld symbols.

    Name/Size: InfoFileBuild(DSO) 72k
    Version/Date: ??? 04/20/2007
    Programmer/Copyright: Leonard Kikstra 2003-2007
    Description: InfoFileBuild creates a list of SolidWorks models in the current directory. This data file list will contain the file name, file type, drawing file type (SolidWorks or AutoCAD), read status (@ = read-only), revision property, and description property. This version does all file access via dsofile.dll, therefore it is faster, but it cannot read Configuration Specific Properties.

    Name/Size: InfoFileBuild 63k
    Version/Date: ??? 03/07/2007
    Programmer/Copyright: Leonard Kikstra 2003-2007
    Description: InfoFileBuild creates a list of SolidWorks models in the current directory. This data file list will contain the file name, file type, drawing file type (SolidWorks or AutoCAD), read status (@ = read-only), revision property, and description property.

    Name/Size: IsoViews 24k
    Version/Date: 1.30 02/18/2009
    Programmer/Copyright: Leonard Kikstra 2001-2009
    Description: This macro will add/update 16 (4 Isometric, 4 Dimetric, 4 bottom ISO, 4 Bottom Dimetric) named views in this SolidWorks model. These named views can be referenced at any time while viewing the SolidWorks model, or they can be used within SolidWorks drawings. This version (02/2009) has been improved with an added subroutine to allow streamlining the code.

    Name/Size: MacroLaunch 62k
    Version/Date: v1.20 March 9, 2007
    Programmer/Copyright: Leonard Kikstra 2003-2007
    Description: Launch custom SolidWorks macros from a simple interface.

    Name/Size: MaterialProperties 32k
    Version/Date: 1.00 08/04/2003
    Programmer/Copyright: Leonard Kikstra 2003
    Description: MaterialProperties is a SolidWorks macro that provides a quick and consistent method for changing the material properties of a SolidWorks part model. Once your preferred materials, densities, patterns and colors are entered into the external data file, the data is used by the macro to provide a simple interface for changing the material properties of the SolidWorks part model.

    Name/Size: ModelColors 37k
    Version/Date: 2.50 07/20/2004
    Programmer/Copyright: Leonard Kikstra 2003-2004
    Description: ModelColors is a nice tool to dynamically change the base color of SolidWorks part models. This macro incorporates a user customizable external data file to allow the user to add their own custom model colors to the selection buttons. This maceo can also manage multiple color lists if needed. User also has option to apply color to shaded, wireframe or both.

    Name/Size: ModelProperties 94k
    Version/Date: 1.00 09/15/2004
    Programmer/Copyright: Leonard Kikstra 2003-2004
    Description: ModelProperties is a nice tool to dynamically change the base color of SolidWorks part models, individually or multiple parts within an assembly. This macro incorporates a user customizable external data file to allow the user to add their own custom model colors to the selection buttons. This macro can also manage multiple color lists if needed. User also has option to apply color to shaded, wireframe or both.

    Name/Size: ModelRescaler 60k
    Version/Date: 1.00 05/12/2004
    Programmer/Copyright: Leonard Kikstra 2003-2004
    Description: ModelRescaler is a macro that will dimensionally rescale a SolidWorks part model by traversing all features and dimensions in the part model and multiplying/dividing a user defined value to each dimensions. This macro checks for linked dimensions to avoid changing them multiple times. Changes are made according to the data in the form. To undo changes, rescale by same value in opposite direction.

    Name/Size: ModelTweaker 44k
    Version/Date: 1.00 05/12/2004
    Programmer/Copyright: Leonard Kikstra 2004
    Description: ModelTweaker is a macro that will allow you to dynamically change some visual properties within the SolidWorks part model. This macro incorporates a user customizable external data file to allow the user to add their own schemes to the selection pull downs.

    Name/Size: PartNoProperty 54k
    Version/Date: 1.01 07/12/2005
    Programmer/Copyright: Leonard Kikstra 2005
    Description: PartNoProperty is a SolidWorks macro that helps you 'globally' fix/set/change a user defined custom file property that identifies the file number/name for some PDM software that requires this property.

    Name/Size: PrintDrawings 64k
    Version/Date: 1.30 03/09/2007
    Programmer/Copyright: Leonard Kikstra 2003-2007
    Description: PrintDrawings is a very simple macro that can be used to print some or all SolidWorks drawings in the current directory. This macro is helpful, but it is also limited.

    Name/Size: PropertyEditorGlobal 164k
    Version/Date: v2.00 March 9, 2007
    Programmer/Copyright: Leonard Kikstra 2003-2007
    Description: PropertyEditorGlobal is a macro that allows you set up rules that define the properties that will Edit/Add/Delete/Rename custom file properties and configuration specific properties, in all SolidWorks documents in the current directory. Rules may be saved for later addition to the external configuration file for later use.

    Name/Size: PropertyEditorSpec 124k
    Version/Date: v2.00 March 9, 2007
    Programmer/Copyright: Leonard Kikstra 2003-2007
    Description: PropertyEditorSpec is a macro that allows you to Edit/Add/Delete/Rename custom file properties and configuration specific properties, in any SolidWorks document, in one easy to use interface. PropertyEditorSpec provides a list of properties that are being worked on. The change(s) to these properties will not be syncronized in the SolidWorks document until you 'Write' the change(s) to the document.

    Name/Size: RebuildDrawing 14k
    Version/Date: ??? 04/21/2004
    Programmer/Copyright: Leonard Kikstra 2003-2004
    Description: RebuildDrawing is a nice tool to automatically rebuild all sheets of a multi-sheet SolidWorks drawing. To eliminate duplication of efforts, this macro begins by activating and rebuilding sheet 2, then proceed sequentially to the last sheet of the drawing, and finally activates and rebuilds sheet 1 where the user can then save the rebuilt drawing. This macro is provided as an example of using the SolidWorks API and VBA to control SolidWorks activity.

    Name/Size: ResolveAll 14k
    Version/Date: 1.00 08/06/2004
    Programmer/Copyright: Leonard Kikstra 2004
    Description: This macro can be used to resolve all components at the top level, or all levels in the current assembly. Note: Time to complete the task is based on the size, complexity, and number of levels to resolve in the assembly.

    Name/Size: RotateViewPro 25k
    Version/Date: 1.00 08/22/2003
    Programmer/Copyright: Leonard Kikstra 2003
    Description: RotateViewPro is a simple SolidWorks macro that is based on a recent request for help found on the usenet newsgroup "comp.cad.solidworks". This macro will rotate a SolidWorks model and create saved views in the model, and/or export each view to a JPEG or TIFF file.

    Name/Size: SearchPathManager 18k
    Version/Date: 1.00 01/13/2006
    Programmer/Copyright: Leonard Kikstra 2006
    Description: Search Path Manager ia a simple macro that allows you to have simple control over use of SolidWorks' searching of file locations for external references.

    Name/Size: ShowConfigs 18k
    Version/Date: 1.00 09/22/2003
    Programmer/Copyright: Leonard Kikstra 2003
    Description: ShowConfigs.swp macro displays a selection list of configurations in the current SolidWorks model with the current configuration highlighted.

    Name/Size: SourceFileAccess 9k
    Version/Date: 1.00 10/09/2003
    Programmer/Copyright: Leonard Kikstra 2003
    Description: SourceFileAccess is an example macro contains routines I use for accessing data in an external configuration file. If the data file is not found, the macro uses default values.

    Name/Size: StripFeatureColors 59k
    Version/Date: 1.00 03/09/2007
    Programmer/Copyright: Leonard Kikstra 2001-2007
    Description: This macro will strip the feature colors of all components contained in the current assembly. This macro is based on the macro ModelProperties macro written by Leonard Kikstra.

    Name/Size: TemplateSwitch 25k
    Version/Date: 1.00 06/26/2010
    Programmer/Copyright: Leonard Kikstra 2002-2003
    Description: Switch templates (sheet formats and sizes) within SolidWorks drawings. This version includes option to use alternate borders on sheets 2 and higher.

    Name/Size: UnitManager 20k
    Version/Date: 1.00 09/11/2003
    Programmer/Copyright: Leonard Kikstra 2003
    Description: UnitManager is a SolidWorks macro that provides a quick and consistent method for changing the unit settings (type and precision) in a SolidWorks document. Once your preferred settings entered into the external data file, the data is used by the macro to provide a simple interface for changing the unit settings of the SolidWorks document.