View Issue Details

IDProjectCategoryView StatusLast Update
0032520CommunityPRODUCTS:DXF Importpublic2021-08-04 13:02
Reporterlucas_morona_164500 Assigned Togka 
PrioritynormalSeverityjust a question 
Status newResolutionopen 
PlatformWindows OSWindows 10 
Product Version7.3.0 
Summary0032520: DXF Import - OCC auto scaling objects if $INSUNITS is defined inside DXF file
DescriptionInside 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 ReproduceIf you do not have AutoCAD use notpad++ find $INSUTS and change his value, you will see, OCC change the scale of objects.
Additional information
and documentation updates
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

TagsNo tags attached.
Test case number

Attached Files

  • Parametric 6.dxf (128,333 bytes)

Relationships

related to 0032514 newgka DXF Export - OCC export DXF file without $INSUNITS variable 
related to 0032512 newgka DXF Import - OCC is not reading $INSUNITS variable from DXF file 

Activities

lucas_morona_164500

2021-08-04 12:12

reporter  

Parametric 6.dxf (128,333 bytes)

kgv

2021-08-04 13:02

developer   ~0102976

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).

Issue History

Date Modified Username Field Change
2021-08-04 12:12 lucas_morona_164500 New Issue
2021-08-04 12:12 lucas_morona_164500 Assigned To => gka
2021-08-04 12:12 lucas_morona_164500 File Added: Parametric 6.dxf
2021-08-04 12:48 kgv Relationship added related to 0032514
2021-08-04 12:49 kgv Relationship added related to 0032512
2021-08-04 12:49 kgv Summary OCC auto scaling objects if $INSUNITS is defined inside DXF file => DXF Import - OCC auto scaling objects if $INSUNITS is defined inside DXF file
2021-08-04 13:02 kgv Note Added: 0102976