I have also tried to write macros for Solidworks with Chat GBT, for very simple tasks it works quite well, but for complex tasks the generated code was often faulty.
That’s why I stopped creating code with AI. It’s OK to get some inspiration or to get a hint about the required interfaces. But I write the final code myself, because it is important to me to understand what I am programming and how the code works, or why it doesn’t work ![]()
If you want to learn how to write macros in SWX without AI, have a look at this article: https://forum.cadmunity.com/t/solidworks-api-learning-course-100-off/3416/1