Check these macro or examples and modify them as needed:
Thank you very much for your fast reaspond.
My knoledge in MACRO programming is not so good (in each file I got a message of error)...
There is a complete code (that I don't need to change) for exporting BOM to CSV file by running it in *.SLDDRW file, and saving it (CSV) in the same drawing location folder?
Thank you in advance