Macro

Macro is a scripted or recorded piece of program that can eliminate repeated tasks.

In solidworks we can create macro in 2 ways ;

  • Record Macro.
  • image
  • Create Macro by Coding (VBA).
  • image
    later we can run this macro to do the recorded or coded Script.

    How to Record Macro?

    • Enable Macro Toolbar.
    • image
    • Click Record.
    • image
    • Do your steps.
    • Click stop record.
    • image
    • Give name & save macro.

    How to Create Macro by Coding (VBA).

    • Click on New Macro.
    • image
    • Browse & Save.
    • It will open Microsoft VBA Application.
    • Here we can script / code & Save.

    How to Run Macro?

    • Click on Run Macro.
    • image
    • Browse & Open.
    • ✅ Done (Macro Run).

    How to Edit Macro ?

    • Click on Edit Macro.
    • image
    • Browse & Open.
    • It will open Microsoft VBA Application.
    • Here we can edit the script / code & Save.
      image

    How to create custom macro button ?

    • Goto : Customize.
    • image
    • Choose Macro & Icon.
    • Icon Optional.
    • image

    Related :

    How to Float a part in assembly ?
    What is virtual part in SolidWorks ?
    Download Catia Macros