Macro for Ballooning Prints

Hello Everyone,

Our company recently decided to start numbering prints in Solidworks before sending them to quality for inspection, rather than numbering them by hand. As such, I have been tasked with creating a macro to simplify the process for the engineering department.

After a bit of searching, I was able to find several macros such as "AddFlagsAndExportDims" and "Inspection Notes" on these forums, however none of them were quite what I wanted. Simply put, I just need a macro that places a numbered circle where the user clicks, and then incriments the number by 1 for every click after.

I managed to cobble together something close to what I need, but have been unable to get it to propery incriment the numbers. I have no programming experience, and very little knowledge of the Solidworks macro API, so any help is greatly appreciated.

I have attached my work so far, if someone could please give it a look and let me know how to fix it, I would be greatful.

Again, its almost complete. I just need the numbers to incriment by one each time I click.

If possible, I would also like to set which number it starts at (ie 3) in case the user needs to start over, or there are additional notes that need to be added to the print. However, this is only a minor concern ATM.

Thanks Again,

Matthew Wagg

SolidworksApi macros