AnsweredAssumed Answered

API/Macro for creating box with hole in the middle

Question asked by Seunghun Lee on Aug 31, 2018
Latest reply on Sep 5, 2018 by Deepak Gupta

Hello,

I am just starting to learn on macro in SolidWorks.

For now, I'm trying to generate a 50mm x 50mm x 50mm box part files with a different hole sizes in the middle. The images I have attached should show an idea I have.

I want to make hundreds of files with different combinations of depth and size of the hole.

The constraints that I need to include are:

1. the size of the box needs to be generated by a function

2. the size of the hole should be adjusted with function.

3. the hole needs to be in the middle.

4. the depth of the hole should be adjusted with function.

Thank you for your time and helps!

Attachments

Outcomes