I have a very big sheet metal assembly, DXF of which is saved from macro. After upgrading to SolidWorks 2020, the DXF are scaling to the default sheet ratio. They are no more 1:1.
Edited the question.
When you save DXF via API or even manually, SW creates a temp drawing file in background using the default drawing template and that scale is used. Few of the other users on this forum had similar issue and setting the default template scale as 1:1 solved the issue.
Attach the macro.
We have no idea what the macro is doing now.
Attached the macro here. Sorry it is too messy because i used too many macros to make it into one. Before this i use another macro downloaded from forum to make a custom property "autoqty" for renaming my part.
Attach some sample files to test the macro.
Hello. First of all i want to thank you for all the help in previous threads.
I have attached the files. When I run this program in another PC it is working fine. I have same swsettings in all PCs.
Hi Yash, try to save as DXF a single drawing and check the following option:
The macro will save according to these setting.
Thank you Sergio Monti. I changed settings as you mentioned, but it is not working.
I think, I got the solution, I changed Sheet scale to 1:1 and saved the template as default. Now when I run macro, it does everything well. But I am not sure if it is correct solution or not. Is there any method by which macro can force scale the sheet to 1:1.
So is there a line of code that can do this, if the default sheet scale is not 1:1. Because there are plenty number of sheet formats .
Macro and manual process both use the same template which is set as default template. So set your default template accordingly.
It an be done via macro but not required.
Thanks. It Solved the problem
Retrieving data ...