I've never used before Api, The following part of the over and over again in different sizes are extraordinary style, how can I simplify it with api.
You might look into using a design table with configurations. Would be much simpler than using a macro I think.
DriveWorksXpress can help you much better and it is free add-in with every seat of SOLIDWORKS
Other options are Configuration Publisher and Design Table.
Retrieving data ...