<?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: Rounding coordinates of line in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/8827707#M137932</link>
    <description>&lt;P&gt;Thanks but I am looking for something else.&lt;/P&gt;&lt;P&gt;I don't want to change the&amp;nbsp;&lt;SPAN&gt;precision. the next step is to insert the drawing fro AutoCAD to final elements program, so the&amp;nbsp;precision&amp;nbsp;must be perfect. in the final elements program, 19.999 is 19.999, not 20.00.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 02 Jun 2019 07:19:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-06-02T07:19:00Z</dc:date>
    <item>
      <title>Rounding coordinates of line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/8827691#M137930</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have a drawing where the X,Y coordinates of the lines are not rounded like&amp;nbsp;(18.997,15.999) - (18.997,35.999).&lt;/P&gt;&lt;P&gt;is there any code or command that will move the lines and change the coordinates of the line to the nearest whole number? (19.000,16.000) - (19.000,36.000)&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2019 06:35:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/8827691#M137930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-02T06:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding coordinates of line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/8827697#M137931</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;i suggest from DDUNITS command to change the precision like&amp;nbsp; 0.00&amp;nbsp; .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2019 06:54:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/8827697#M137931</guid>
      <dc:creator>imadHabash</dc:creator>
      <dc:date>2019-06-02T06:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding coordinates of line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/8827707#M137932</link>
      <description>&lt;P&gt;Thanks but I am looking for something else.&lt;/P&gt;&lt;P&gt;I don't want to change the&amp;nbsp;&lt;SPAN&gt;precision. the next step is to insert the drawing fro AutoCAD to final elements program, so the&amp;nbsp;precision&amp;nbsp;must be perfect. in the final elements program, 19.999 is 19.999, not 20.00.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2019 07:19:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/8827707#M137932</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-02T07:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding coordinates of line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/8827710#M137933</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;gt;&amp;gt;&lt;/FONT&gt;&amp;nbsp;&lt;FONT color="#999999"&gt;&lt;EM&gt;is there any code or command that will move the lines and change the coordinates of the line to the nearest whole&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; number? (19.000,16.000) - (19.000,36.000)&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;i understand here that you want to move your CAD elements to get zero precision .&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#999999"&gt;&lt;EM&gt;so the&amp;nbsp;precision&amp;nbsp;must be perfect. in the final elements program, 19.999 is 19.999, not 20.00.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;i missed here your point !!! did you want a perfect number or what ??&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Any way ... if you want to get a real coordinates numbers with zero&amp;nbsp;precision then you have to select all of your drawing elements and MOVE them to the right coordinate&amp;nbsp;. on the other side if you change the precision from DDUNITS as i told you previously this is mean that your coordinates rounded to the nearest perfect number 19.00 , 16.00 ( as you asked ) BUT your elements still exist at&amp;nbsp; 18.997 , 15.999 &amp;nbsp; .&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2019 07:32:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/8827710#M137933</guid>
      <dc:creator>imadHabash</dc:creator>
      <dc:date>2019-06-02T07:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding coordinates of line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/8827734#M137934</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp; hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let's say there is a tool to do want you want don't you worrie that a straight lines would become diagonal and lines that are intersect would be left with gaps?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2019 08:34:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/8827734#M137934</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2019-06-02T08:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding coordinates of line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/8827743#M137935</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;first at all you should verify why this happened. Because a tool that changes now the geometry might fail on some specific geometry points. So preventing this inaccuracy during construction is what you should look for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A way out may help to save your geometry as DXF and in the dxf options set the number of decimal places to 3 or so, but take care, that means every point in the geometry (in your complete drawing) will be rounded. The alternative is to only export selected objects in the following dialog, then you have to erase the exported objects and import the ones you have exported to DXF).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefor start command &lt;STRONG&gt;&lt;FONT color="#333399"&gt;_DXFOUT&lt;/FONT&gt;&lt;/STRONG&gt; and in the dialog where you can specify the output filename you can chose Tools ==&amp;gt; Options&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20190602_105521.png" style="width: 624px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/643143i3FE072ED5E0AAFB6/image-dimensions/624x450?v=v2" width="624" height="450" role="button" title="20190602_105521.png" alt="20190602_105521.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20190602_105738.png" style="width: 449px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/643145iB9A37A32B739013C/image-dimensions/449x296?v=v2" width="449" height="296" role="button" title="20190602_105738.png" alt="20190602_105738.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2019 08:59:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/8827743#M137935</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2019-06-02T08:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding coordinates of line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/8827833#M137936</link>
      <description>&lt;P&gt;As I understand it, you need to "round" the geometry of the drawing (snap it to a virtual "grid"). Try the FixOffGrid utility by Joe Burke and set the appropriate grid size. You can find FixOffGrid here in the forum or on &lt;A href="https://www.cadforum.cz/cadforum_en/qaID.asp?tip=6065" target="_blank"&gt;https://www.cadforum.cz/cadforum_en/qaID.asp?tip=6065&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vladimir Michl, &lt;A href="http://www.cadstudio.cz" target="_blank"&gt;www.cadstudio.cz&lt;/A&gt; - &lt;A href="http://www.cadforum.cz" target="_blank"&gt;www.cadforum.cz&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2019 11:13:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/8827833#M137936</guid>
      <dc:creator>vladimir_michl</dc:creator>
      <dc:date>2019-06-02T11:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding coordinates of line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/8830970#M137937</link>
      <description>&lt;P&gt;YES !!&amp;nbsp; &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;this is what I looked for&lt;/P&gt;&lt;P&gt;Vladimir, thank you very much&lt;/P&gt;&lt;P&gt;and thanks to everyone who helped &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 08:56:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/8830970#M137937</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-04T08:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding coordinates of line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/9569245#M137938</link>
      <description>&lt;P&gt;In the program description is written:&lt;/P&gt;&lt;P&gt;;; The fuzz value determines the range of what's considered "off grid"&lt;BR /&gt;;; expressed as an integer which represents number of decimal places.&lt;BR /&gt;;; 6 equals 1e-6. Lower values will find fewer off grid objects.&lt;BR /&gt;;; Values above 8 will will identify off grid points/objects beyond the&lt;BR /&gt;;; precision which can be displayed in Properties.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this fuzz value what is?&lt;/P&gt;&lt;P&gt;I try some decimal values 0.1 , 0.001 , 0.000001 but something sounds strange.&lt;/P&gt;&lt;P&gt;Smaller is the value higher is the range of fixing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 12:58:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/9569245#M137938</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-09T12:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding coordinates of line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/9569541#M137939</link>
      <description>&lt;P&gt;One of the modifications available on CADforum.cz is about entering the *fuzz* value - you can do it in a standard way, specifying the requested precision - e.g. entering the value of 0.1 will "round" the geometry to a virtual grid of 0.1 unit squares (...0.9, 1.0, 1.1, 1.2...).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vladimir Michl, &lt;A href="http://www.cadstudio.cz" target="_blank"&gt;www.cadstudio.cz&lt;/A&gt; - &lt;A href="http://www.cadforum.cz" target="_blank"&gt;www.cadforum.cz&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 14:49:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/9569541#M137939</guid>
      <dc:creator>vladimir_michl</dc:creator>
      <dc:date>2020-06-09T14:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding coordinates of line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/9569801#M137940</link>
      <description>&lt;P&gt;For additional approaches, do a Search for "QUANTIZE" -- &lt;A href="https://forums.autodesk.com/t5/forums/searchpage/tab/message?filter=location&amp;amp;q=quantize&amp;amp;location=category:8&amp;amp;collapse_discussion=true" target="_blank" rel="noopener"&gt;&amp;gt;here&amp;lt;&lt;/A&gt; are results in the AutoCAD Forums [including this one and the Customization Forum].&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 16:04:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/9569801#M137940</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-06-09T16:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding coordinates of line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/9576512#M137941</link>
      <description>&lt;P&gt;Dear Vladimir,&lt;/P&gt;&lt;P&gt;In the fixoffgrid you mention in your website the text in the script is the same.&lt;/P&gt;&lt;P&gt;If you open the file with Notepad you can read the same text.&lt;/P&gt;&lt;P&gt;The point is if I use the "fxg" command with parameters 1; 0.01 I expect that around the each point of the grid&amp;nbsp; a square with the side 0.02 with the center of the square the grid point. Each line with the end inside the square will be moved to the grid vertex. This is not happening.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 13:36:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/9576512#M137941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-12T13:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding coordinates of line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/9576600#M137942</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;.... if I use the "fxg" command with parameters 1; 0.01 I expect that around the each point of the grid&amp;nbsp; a square with the side 0.02 with the center of the square the grid point. Each line with the end inside the square will be moved to the grid vertex. This is not happening.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Can you illustrate with an image or sample drawing?&amp;nbsp; What &lt;EM&gt;is&lt;/EM&gt;&amp;nbsp; happening?&amp;nbsp; Show before and after.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I understand your description correctly, and the description in the routine's comments, I think you should be giving it &lt;STRONG&gt;2&lt;/STRONG&gt; for the fuzz factor, for 2 decimal places, not 0.01, to get the "virtual square" defining what's off-grid to be 0.01 around the grid point.&amp;nbsp; But saying that "off grid" means not within 2 decimal places means anything inside that virtual square would be considered &lt;EM&gt;not&lt;/EM&gt;&amp;nbsp; off-grid by far enough to bother moving it to the grid point.&amp;nbsp; I suspect you want a higher fuzz value, to move things that are off by far less.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want something &lt;EM&gt;without&lt;/EM&gt;&amp;nbsp; that fuzz thing, that will move everything to the closest grid point &lt;EM&gt;without&lt;/EM&gt;&amp;nbsp; the possibility of things being left where they are because they're "close enough," look at some of the things in my linked Search.&amp;nbsp; One of mine [with several defined commands] is in &lt;FONT color="#000000"&gt;&lt;STRONG&gt;zzQuantize.lsp&lt;/STRONG&gt;&lt;/FONT&gt;, available &lt;A href="https://forums.autodesk.com/t5/autocad-forum/how-to-set-dimensions-always-comes-under-even-numbers/m-p/8714577/highlight/true#M975299" target="_blank" rel="noopener"&gt;&amp;gt;&amp;gt;here&amp;lt;&amp;lt;&lt;/A&gt; -- see the comments there and in the file.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 14:21:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/9576600#M137942</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-06-12T14:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding coordinates of line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/9577960#M137943</link>
      <description>&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;Dear Kent,&lt;/P&gt;&lt;P&gt;zzQUANTIZE seems to be what I need. Command QSS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I may need to 0.2 or 0.3 or 0.15 because some piping has decimal diameter, so if I round to 1 I loose the real pipe diameter.&lt;/P&gt;&lt;P&gt;Example 48.3 mm (1" 1/2) cannot become 48.0 mm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyhow I tried to generate lines with one end to coordinates 1.01, 1.01 and apply FixOffGrid&lt;/P&gt;&lt;P&gt;- grid value: 1, fuzz: 2 =&amp;gt; nothing happen&lt;/P&gt;&lt;P&gt;- grid value: 1, fuzz: 1 =&amp;gt; nothing happen&lt;/P&gt;&lt;P&gt;- grid value: 1, fuzz: 0.1 =&amp;gt; nothing happen&amp;nbsp;&lt;/P&gt;&lt;P&gt;- grid value: 1, fuzz: 0.01 =&amp;gt; fixed to 1 ,1&lt;/P&gt;&lt;P&gt;- grid value: 1, fuzz: 0.001 =&amp;gt; fixed to 1 ,1&lt;/P&gt;&lt;P&gt;&amp;nbsp;is not working properly with a kind of logic on the fuzz parameter. It seems that rounds what is coincident or outside the "virtual square". And is not what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will use zzQUANTIZE from now on.&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 13 Jun 2020 12:13:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/rounding-coordinates-of-line/m-p/9577960#M137943</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-13T12:13:38Z</dc:date>
    </item>
  </channel>
</rss>

