Import dxf and dwg in millimeters by default

Hello

I would like to import my files either dxf or dwg in millimeters by default.

Systematically this is done in inches and I have to change each tab so that it goes well.

Tedious and without added value.

Is there a way to change this setting ?

Thank you in advance.


capture.jpg

What are your units for parts and MEPs in solidworks if it's in inches it's normal that the export is in inches.

(Tool/Option menu then Document/Unit Option tab)

2 Likes

Like our friend @ sbadenis

You're talking about importing either DXF or DWG files

Basically, what are these files like in inches in millimeters ?

@+ ;-)

ps:

And via the solidworks configues you are in which unit?

 

2 Likes

My original files are in mm

1 Like

And your SW in what by default?

See this link

Document Properties - Units

Specify the properties of the units at the document level. Available for all types of documents.

http://help.solidworks.com/2016/french/solidworks/sldworks/hidd_options_units_new.htm

Watch this video

https://www.youtube.com/watch?v=1IHgqxOs46s

@+ ;-)

1 Like

Checks the units for the part or assembly and also for the MEP.

Otherwise maybe in the dwg export options but in the 2016 version I don't have anything like that.

Otherwise you import the dwg/dxf into which software? Wouldn't it be the option or the standard plan in which you import your dwg that would be in inch?

2 Likes

I'm going to check all of these options.

thank you for the answers

Hello, when you make file open with Solid, it asks you how you want to open the file. Then it opens a second window in which at the top left you have "Imported Data Units!"

On the other hand, I import the dwg as lines.

Cdt


capture.png
1 Like

Hello

What software did your DWG files create?

To see if the DWG is in mm or inches, you can open it in eDrawing and take a measurement. For my part, a DWG file in mm made on Autocad is found in inches when I open it in eDrawing while another DWG file in mm made by SW is found in mm when I open it in eDrawing. The import of the file from Autocad is done in inches by default in SW while the one from SW is done in mm by default, complicated all that!!

Do you change other values when importing your DWG files into SW, such as format and scale for example?

Kind regards

1 Like

Hello

If you can't find the option that allows you to force the insertion of a dwg in mm in Solidworks then there is the macro solution that allows you to do it. Here is a small example of a macro that should systematically import your dwg in mm and also center your dwg on the sheet.

There is more information on http://help.solidworks.com/2017/english/api/sldworksapi/solidworks.interop.sldworks~solidworks.interop.sldworks.isldworks~loadfile4.html.

Kind regards


macroloaddwg_.swp
1 Like