I was wondering how I change my default units from Imperial to Metric? I can't seem to find it anywhere.
Here is a good thread for macros.
Another option to what you are trying to do is setup a template file in the units
you want and insert these parts into it. All you have to do is once the template is setup,
is ti create a new part using this part template, then insert your exported part into it.
The units will then already be setup for you.
Welcome to SW forums Scott
Before exporting, go to Tools > Options > Docuemnt Properties > Units and set then unit system as required.
You might also find this post helpful for your future reference.
Thank you for the reply.
Yes that does work but I was hoping for a global solution. Some sort of setting that would change any file I open as Metric. Or atleast any DXF I export to scale it in Metric.
The best will be to use a macro that will first check the units and if they're not metric then change them to metric, export DXF and revert back the units to imperial. You can place a button for this macro and use this to export DXF files as and when required.
I'm afraid that is over my head. I haven't made a macro in Solidworks. Do you know of a good tutorial on how I could achieve this? I've made macros in online games before, so I do have some idea how they may work.
Thanks for your help.
Here the two examples that you can use codes from and club them into one. I would been happy to do it for you but ...
inch to metric macro
Save Drawing as DXF Example (VBA)
You can take help from SW API help files to under stand more about these codes.
Try the attached raw macro.
Extract the file and then go to Tools > Macro > Run and browse to this macro. This will set the units to MM, save as DXF and then set the units back to INCH
Thank you very much for your help on this. I never knew macros in SW could be this powerful and time saving, I have much to learn but this will make life much easier.
Retrieving data ...