Archived issue #0032520
DXF Import - OCC auto scaling objects if $INSUNITS is defined inside DXF file
Description
Inside DXF file there is a variable called $INSUNITS this variable define unit inside DXF file, like SI (meters, millimeters, centimeters and go on), if this variable is set OCC scaling objetcs automaticly, i would like to now if is possible deactivate this, and import file without scaling.
Steps to reproduce
If you do not have AutoCAD use notpad++ find $INSUTS and change his value, you will see, OCC change the scale of objects.
Additional information
For more information about look:
https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2018/ENU/AutoCAD-Core/files/GUID-A58A87BB-482B-4042-A00A-EEF55A2B4FD8-htm.html
google it about change unit in AutoCAD there is many videos how do it
https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2018/ENU/AutoCAD-Core/files/GUID-A58A87BB-482B-4042-A00A-EEF55A2B4FD8-htm.html
google it about change unit in AutoCAD there is many videos how do it
Public activity
1 archived note
Participants are labeled by their role within this record.
As far as I can see, this should be manageable via "read.dxf.insunits.scale" parameter, turned on by default.
As far as I understand, input model is converted into MM, when this option is enabled (default).
DxfControl_Controller::Init();
Interface_Static::SetIVal ("read.dxf.insunits.scale", 0); // disable scaling
As far as I understand, input model is converted into MM, when this option is enabled (default).
Related records