Page 1 of 1

How can I set unit (inch , mm ,cm) in may cad image ?

Posted: 16 Aug 2021, 09:26
by AliHatam
Hello
I want to set the unit for my cad image before drawing . is there any way ?

Re: How can I set unit (inch , mm ,cm) in may cad image ?

Posted: 16 Aug 2021, 12:27
by support
Hello,

When your CAD drawing is loaded into a CADImage object, the field CADImage.Converter.HeadStruct.InsUnits contains a value of INSUNITS variable that specifies the drawing units. You can change this value in the following way:

Code: Select all

cadImage.Converter.HeadStruct.InsUnits = InsUnitsStruct.Inches;

Code: Select all

cadImage.Converter.HeadStruct.InsUnits = InsUnitsStruct.Millimeters;

Code: Select all

cadImage.Converter.HeadStruct.InsUnits = InsUnitsStruct.Centimeters;
For more information about the INSUNITS variable, please refer to the following article:
https://knowledge.autodesk.com/support/ ... 8-htm.html

Mikhail