DiscussionsIssue archivePRODUCTS:DXF Import

Archived issue #0032520

DXF Import - OCC auto scaling objects if $INSUNITS is defined inside DXF file

CommunityPRODUCTS:DXF Importnew1 public note

Search issues

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

Public activity

1 archived note

Participants are labeled by their role within this record.

01Commenter 1
As far as I can see, this should be manageable via "read.dxf.insunits.scale" parameter, turned on by 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