Is there a way where I can run a SolidWorks macro using python? Either by running the full script (macro) directly from a Python IDE, or by even writing a python script that could somehow open SolidWorks and run my pre-saved .swp
macro, preferably in batch mode.
You can run a SolidWorks macro by executing a terminal command
import os
os.popen('"Path to SLDWORKS.exe" /m "Path to a macro"')