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

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
AliHatam
Posts: 13
Joined: 13 Aug 2021, 08:56

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

Post by AliHatam » 16 Aug 2021, 09:26

Hello
I want to set the unit for my cad image before drawing . is there any way ?

support
Posts: 3254
Joined: 30 Mar 2005, 11:36
Contact:

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

Post by support » 16 Aug 2021, 12:27

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
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply