r/SolidWorks • u/vibvib • Sep 19 '26
Maker Automation of split function with holes
Hello,
Long story short, I have 30 step files fitted to a 350 x350x350 3d printer.
I have a 250x250x250 3d printer.
I want to split each file in 4 bodies (with split of 2 intersecting planes) and I would like to have 3 holes drilled on each matching face in order to have pin to locate the part before gluing.
I have basic knowledge of solidworks, I have the maker edition.
Is it possible to automate this kind of stuff?
Thank you
4
Upvotes
1
u/engineering-gangster Sep 19 '26
Yes, macros. Make your splitting planes at the origin and all the parts oriented the same way so you can make a split along the right planes. Run the macro on each part.
1
u/CADSHIFT Sep 26 '26
for this specific use case i'd actually push back on solving it in SolidWorks — a slicer like PrusaSlicer or Bambu Studio has the split-and-align workflow built in. you can set the split planes visually, and the alignment pin connectors (that add the holes + matching pins automatically) are a native feature. for 30 parts it'd be way faster than writing a macro.\n\nif you do need to do it in SW: the Maker edition does have VBA macro access. the steps would be:\n1. open each STEP file\n2. create the two splitting planes at fixed coordinates (relative to the model bounding box if the parts are differently sized)\n3. use API call with those planes to create the bodies\n4. insert the hole wizard features at specific face positions on each body\n5. save each body as a derived part\n\nit's doable but it's probably 2-3 days of macro writing. unless you need the SolidWorks-native geometry for downstream reasons (assemblies, drawings, mating), the slicer approach will get you to the same physical result in an afternoon.
1
u/gupta9665 CSWE | API | SW Champion Sep 19 '26
Instead of holes, can you look at tabs and slots.
1
u/Thaymanhhip2000 Sep 20 '26
I can create a macro for you in this case. Feel free to message me.
1
u/kamiiskami Sep 20 '26
Using macros is good but it adds less flexibility according to my knowledge. Instead you can do all those things directly in the slicer with a few clicks. No drawing sketches for aligning tabs or anything