xarial / codestack

Library of SOLIDWORKS API, SOLIDWORKS PDM API, VBA and Desktop code examples, applications macros and tutorials.
https://www.codestack.net
MIT License
195 stars 71 forks source link

Macro for changing the Grid reference origin #328

Open jjoFrenell opened 6 months ago

jjoFrenell commented 6 months ago

Thanks for the VBA code "Export dimensions information from SOLIDWORKS drawing to CSV file" in your blog. This is very useful but the grid reference is wrongly exported. Prior to export of dimension one has to change the grid reference origin manually by going to sheet properties/Zone Parameters/Go to Drawing Sheet Properties/Drawingt Sheets/Zones/Origin and selecting "Upper Left" for my sheets.

Is there any way to automate this origin translation using VBA? image