<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: change unit programmatically in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/change-unit-programmatically/m-p/3202900#M58703</link>
    <description>&lt;P&gt;As Alfred indicates, AutoCAD deals with things in "AutoCAD units", so It will make no difference in the drawing itself unless that drawing is exported to some other format, or imported into another drawing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That said, if it is that important to you, you can modify the acad.unt file and add a definition for Pixel.&amp;nbsp; Just open it in a text editor and follow the pattern that is there.&amp;nbsp; The file&amp;nbsp;is found under the AutoCAD program folder in the UserDataCache folder.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2011 19:04:38 GMT</pubDate>
    <dc:creator>chiefbraincloud</dc:creator>
    <dc:date>2011-10-24T19:04:38Z</dc:date>
    <item>
      <title>change unit programmatically</title>
      <link>https://forums.autodesk.com/t5/net-forum/change-unit-programmatically/m-p/3202026#M58701</link>
      <description>&lt;P&gt;hi everyone.&lt;/P&gt;&lt;P&gt;I'm using sendcommand to draw various shapes in autocad.&lt;/P&gt;&lt;P&gt;the problem is my application (wpf) uses pixel units while autocad uses inches by default.&lt;/P&gt;&lt;P&gt;how can I change autocad units to pixel programmatically?&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2011 08:31:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/change-unit-programmatically/m-p/3202026#M58701</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-24T08:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: change unit programmatically</title>
      <link>https://forums.autodesk.com/t5/net-forum/change-unit-programmatically/m-p/3202082#M58702</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AutoCAD does not know a unit of type "pixel", however AutoCAD has a sysvar UNITMODE and you can change that in the database:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Database.Unitmode&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Important: AutoCAD does use this setting only for some functions like INSERT/XREF/... but at least the UNITs-setting is just for orientation for you and nothing else. If you draw a line of 20 length, for AutoCAD 20 is nothing else but 20 "AutoCAD-UNIT"s, it's not inch, not meter, not lightyears and so you can say: for me 1 AutoCAD-UNIT is 1 pixel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More important is to use the command scale that gives the geometry the size you wish to have on the end (and if your drawing is inserted into any other drawing that is get's the size it should get ... and of course there is also no unit "pixel" in the nature). &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH, - alfred -&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2011 09:31:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/change-unit-programmatically/m-p/3202082#M58702</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2011-10-24T09:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: change unit programmatically</title>
      <link>https://forums.autodesk.com/t5/net-forum/change-unit-programmatically/m-p/3202900#M58703</link>
      <description>&lt;P&gt;As Alfred indicates, AutoCAD deals with things in "AutoCAD units", so It will make no difference in the drawing itself unless that drawing is exported to some other format, or imported into another drawing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That said, if it is that important to you, you can modify the acad.unt file and add a definition for Pixel.&amp;nbsp; Just open it in a text editor and follow the pattern that is there.&amp;nbsp; The file&amp;nbsp;is found under the AutoCAD program folder in the UserDataCache folder.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2011 19:04:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/change-unit-programmatically/m-p/3202900#M58703</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2011-10-24T19:04:38Z</dc:date>
    </item>
  </channel>
</rss>

