Yes, you can certainly get in and learn the SOLIDWORKS API to do what you're asking. You will need some code language knowledge to start. If you want to go all-in, I'd recommend a formal course like this one...
Or, there are dozens of great online resources including free and paid offerings from YouTube, blogs and CADSharp at SolidWorks API Video Tutorials
Insert shameless book plug here as well...
You'll get lots of help in this forum when you have specific questions! This is a great group. Best of luck!
Thanks Michael, have been considering purchasing your book actually!