KFW Automation Solidworks
Links Jobs Consultants Tips & Tricks Newsletter Macros Frequently Ask Questions Officers Mid-Atlantic Region Independednt SolidWorks User Group Home Page

MACROS

Macros should be placed in a folder named "Macros" inside your SolidWorks installation directory. Make sure you exit and restart SolidWorks after you place the Macros in the directory If SW was running.

Go to Tools/Customize/Macros. All the Macros in the Macros Directory will show up in the Window. At this time you can add hotkeys to the Macros just like any other SW functions.

  • .swb = Basic Source in ASCII. Edit with text editior.
  • .swp = VBA Project in binary. Edit in SW
  • Create by recording or from scratch

    Run from :

    • Macro play button
    • Custom Macro Icon: Anybitmap 16x16, 16 color, white background
    • Hot key
    • Macro Feature: Must be done thru API
  • Macro sites

MACROS Provided by Eric Franco (macros are in zip format, unzip before using. All macros are free to use but please keep the name of the person that created them)

  1. FM-Split-Toggle.swb” by Dale Dunn. Toggle feature manager open and closed.
  2. Sketch-Relations-Toggle.swp” by Greg Jankowski. Toggle the setting of "Automatic relations"
  3. Flat DXF.swp” by Fielder Hiss. Create a DXF from a flattened sheet metal part.
  4. Animate.swp” Iterate an assembly dimension value between set bounds in order to simulate an animation.
  5. Offset-Replace-Face.swb” by Chen Gingold. Combination of Oset Face and Replace Face commands.
  6. BMP for each feature.swb” by Steve Fye.
  7. Point at CG.swb” by Don Shoebridge. Puts a point at the CG of a part or assembly. Needs to be rerun each time a change is made.
  8. pointOnMassCenter.SLDPRT” by SolidWorks. A part with an embedded Macro Feature that automatically puts a point at it’s CG after each rebuild. Could be used as a template part for any geometry.
  9. ConfigSwitcher.swp” by Aaron Kelly. Iterates thru all configurations of a part or assembly. This will subsequently allow for quick switching since they are essentially all preloaded.
  10. Config_List.swb” by Tony O'Hara & Wayne Tiffany. Outputs a text list of all configurations.
  11. SaveAs JPEG.swp” by Muggs Ferguson. Creates jpg of each ortho view plus isometric, diametric, and trimetric.