AnsweredAssumed Answered

Developing a macro code for creating a workpiece based on semi-circular product

Question asked by Binish Mohan on Aug 11, 2020
Latest reply on Aug 13, 2020 by Binish Mohan

Hi everyone,  my aim is basically to creating a workpiece from any final product using visual basic language in solidworks macro. I realised the macro code generated only works for flat surfaces or straight edges like the one in the screenshot below. As for the models that has curved surfaces, there seem to be an issue when the code is run. I am unsure how to include the bounding box for surfaces that are curved or cylindrical like in the screenshot below. I have attached the macro code as well the flat model and semi-circular model. Appreciate all the help I can get