Preview | SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
QMQwera Mhsan18/02/2025
I think that since I can't deal with macro files, I have a ready-made code via artificial intelligence, but I couldn't run it. I need help on how to enter a ready-made code into SolidWorks 2023
' Declare variables
Dim swApp As SldWorks.SldWorks
Dim swModel As SldWorks.ModelDoc2
Dim swPart As SldWorks.PartDoc
Dim swSketch As SldWorks.Sketch
Dim swFeature As SldWorks.Feature
' Create SolidWorks object
Set swApp