arthurgritzky / solidworks-export-to-slicer-macro

Streamline part export to slicer directly within SolidWorks using a macro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

solidworks-export-to-slicer-macro

Streamline part export to slicer directly within SolidWorks using a macro

This repository provides a macro or automation script that streamlines exporting SolidWorks parts directly to the slicer. It simplifies the workflow by:

  • Automatically copying the selected part file.
  • Converting the file format to a format readable by the slicer.
  • Launching the slicer and importing the converted file.

This eliminates the need for manual file conversion and import, saving you time and effort.

pipeline

How to install this macro / automation

  1. Download the swp file and icon for your preferred slicer and save them in a folder for later use

  2. Launch SolidWorks

  3. Create a new part

Step3

  1. Open the Customize menue

Step4

(open the dropdown menu next to the gear symbol and click on “Customize”)
  1. Get the macro button

Step5

(Go to category “Commands” and use the search for function to search for the “new macro button)

  1. Pin the button to the feature toolbar

Step6

(Drag the button onto the “Features Toolbar”)

  1. Customization of the macro button

Step7

(After pinning the button, the “Custamize Macro button" window should show up. Click the button with the 3 dots and brows to the folder with the swp files of step one. Choose the file for the slicer of your choice. The button with the person an the arrow lets you select the icon for the button. [Note: SW requires 16x16 pixel bmp files for the button icons])

  1. Last step

Step8

Press “OK” to save the button settings and you are done.

Usage

  1. Open your part in Solidworks
  2. Press the button for the slicer of your coice

You will be presented with a launched slicer with the part on the build plate.

U1

U2

U3

Customization

The “Edit Macro” button allows you to customize the macro. The installation is identical to the first 5 steps in the installation chapter. Executing this button allows you to select swp file of the macro. Now you are able to alter the swp file.

C2b

The default slicer paths are utilized in the provided files. If necessary, modify the slicer path as needed. These files are currently formatted in STEP, per the recommendation of Bambu Labs [https://wiki.bambulab.com/en/software/bambu-studio/step]. However, you have the flexibility to convert them to STL, 3MF, or any other supported format if desired.

C3

About

Streamline part export to slicer directly within SolidWorks using a macro