<?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 Coordinate blocks distance measurement in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8513247#M154278</link>
    <description>&lt;P&gt;Hello, I'm wondering if someone can help me. I've created coordinate blocks in a drawing I'm working on but I need the distance between the 2 blocks. Is there any command that will provide the &lt;STRONG&gt;x and y&lt;/STRONG&gt; distances between the two? I need to account for both distance and sum them up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This needs to be done for a lot of blocks so I'm wondering if there is a table that can also be&amp;nbsp;extracted for AutoCAD.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jan 2019 14:35:38 GMT</pubDate>
    <dc:creator>alxnds5</dc:creator>
    <dc:date>2019-01-10T14:35:38Z</dc:date>
    <item>
      <title>Coordinate blocks distance measurement</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8513247#M154278</link>
      <description>&lt;P&gt;Hello, I'm wondering if someone can help me. I've created coordinate blocks in a drawing I'm working on but I need the distance between the 2 blocks. Is there any command that will provide the &lt;STRONG&gt;x and y&lt;/STRONG&gt; distances between the two? I need to account for both distance and sum them up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This needs to be done for a lot of blocks so I'm wondering if there is a table that can also be&amp;nbsp;extracted for AutoCAD.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 14:35:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8513247#M154278</guid>
      <dc:creator>alxnds5</dc:creator>
      <dc:date>2019-01-10T14:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinate blocks distance measurement</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8513309#M154279</link>
      <description>&lt;P&gt;Check out the DATAEXTRACTION command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2018/ENU/AutoCAD-Core/files/GUID-B0D32260-45E3-4643-B574-7F6C31579B68-htm.html" target="_blank"&gt;https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2018/ENU/AutoCAD-Core/files/GUID-B0D32260-45E3-4643-B574-7F6C31579B68-htm.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 14:55:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8513309#M154279</guid>
      <dc:creator>TheCADnoob</dc:creator>
      <dc:date>2019-01-10T14:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinate blocks distance measurement</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8513345#M154280</link>
      <description>&lt;P&gt;I am using data extraction currently and thereafter formulating an equation that will find the overall length (account for x and y differences) but I'm wondering if there is a faster method as I have close to 100 blocks.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 15:09:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8513345#M154280</guid>
      <dc:creator>alxnds5</dc:creator>
      <dc:date>2019-01-10T15:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinate blocks distance measurement</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8513397#M154281</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6969952"&gt;@alxnds5&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see that you are visiting as a new member to the AutoCAD forum.&amp;nbsp;&lt;SPAN style="color: #808000;"&gt;Welcome to the Autodesk Community!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Take your data extraction and drop it into an Excel spreadsheet.&amp;nbsp; Form there you should be able to do the math failry easily.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;Please select the &lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt; button if my post solves your issue or answers your question.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 15:27:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8513397#M154281</guid>
      <dc:creator>john.vellek</dc:creator>
      <dc:date>2019-01-10T15:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinate blocks distance measurement</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8513411#M154282</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6969952"&gt;@alxnds5&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.... I need the distance between the 2 blocks.&amp;nbsp;.... I need to account for both distance and sum them up. ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;PRE&gt;(defun C:TEST (/ blksel1 blksel2)
  (setq
    blksel1 (entsel "\nSelect one Block: ")
    blksel2 (entsel "\nSelect other Block: ")
    delta (mapcar '- (cdr (assoc 10 (entget (car blksel1))))  (cdr (assoc 10 (entget (car blksel2)))))
  ); setq
  (prompt
    (strcat
      "\nSum of X &amp;amp; Y distances between Blocks = "
      (rtos (+ (abs (car delta)) (abs (cadr delta))))
      "."
    ); strcat
  ); prompt
  (princ)
); defun&lt;/PRE&gt;
&lt;P&gt;That's just the summation-of-XY part, not the further stuff [e.g. table].&amp;nbsp; If I've misunderstood, give more detail about what you need, what steps the User would take, the nature of the Blocks, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 15:31:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8513411#M154282</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2019-01-10T15:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinate blocks distance measurement</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8513509#M154283</link>
      <description>&lt;P&gt;Hi Kent,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried the code but I'm not able to get anything, not sure if there is something additional I have to input. To give you a better idea of what I need I've attached a sample image, so basically what I need is to distance (sum of x and y) from the coordinates up top to the box labeled "1" at the bottom.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example a method that would calculate distance using the coordinates (52,470) to the coordinates at the bottom (71,20). I have to do this repeatedly with many columns so anything to expedite the process and make it more effective would be great.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMAGE.PNG" style="width: 480px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/589444i5FF96D5FF6A6DF56/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMAGE.PNG" alt="IMAGE.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 16:02:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8513509#M154283</guid>
      <dc:creator>alxnds5</dc:creator>
      <dc:date>2019-01-10T16:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinate blocks distance measurement</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8513674#M154284</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6969952"&gt;@alxnds5&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.... I tried the code but I'm not able to get anything....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are they not Blocks?&amp;nbsp; If they are, are their insertion points at the locations you want to measure between?&amp;nbsp; When you try it, what &lt;EM&gt;do&lt;/EM&gt;&amp;nbsp; you get?&amp;nbsp; Any error messages?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 16:42:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8513674#M154284</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2019-01-10T16:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinate blocks distance measurement</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8513736#M154285</link>
      <description>&lt;P&gt;I created a coordinate block&amp;nbsp; (in green) and placed them at different points as you can see on the image. You are correct I want the distance between them. So distance between 1 to box 1, 2 to box 1 and 3 to box 1 (x and y included, so the perpendicular path not just the linear).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Upon pasting the code I cannot pick the block, perhaps I don't know how to use the code. I apologize I'm not too familiar with coding through AutoCAD.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 16:59:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8513736#M154285</guid>
      <dc:creator>alxnds5</dc:creator>
      <dc:date>2019-01-10T16:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinate blocks distance measurement</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8513906#M154286</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6969952"&gt;@alxnds5&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;....&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Upon pasting the code I cannot pick the block, perhaps I don't know how to use the code. I apologize I'm not too familiar with coding through AutoCAD.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code defines a command name.&amp;nbsp; It doesn't "do the work" until you call for that command.&amp;nbsp; If you're just&amp;nbsp;pasting&amp;nbsp;the code into&amp;nbsp;a drawing, then you still need to type TEST to run it.&amp;nbsp; If it does what you want, save it as a file with a .lsp filetype ending that you can then APPLOAD in any drawing, and change that TEST command name to something more meaningful.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 17:54:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8513906#M154286</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2019-01-10T17:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinate blocks distance measurement</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8513967#M154287</link>
      <description>&lt;P&gt;I was able to get it, thank you so much Kent. Do you know of any command that would compile the data in this case the distances in a table format?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 18:14:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8513967#M154287</guid>
      <dc:creator>alxnds5</dc:creator>
      <dc:date>2019-01-10T18:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinate blocks distance measurement</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8514006#M154288</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6969952"&gt;@alxnds5&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.... Do you know of any command that would compile the data in this case the distances in a table format?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't, and I've only rarely used Tables, and never in AutoLisp.&amp;nbsp; Search the Customization Forum, and you may find something that builds a Table from collected information.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 18:27:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8514006#M154288</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2019-01-10T18:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinate blocks distance measurement</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8514016#M154289</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6969952"&gt;@alxnds5&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should be workable in Excel. You capture all the blocks with their insertion points and you can perform the same kind of math that&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;'s routine does for the two individual blocks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;Please select the &lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt; button if my post solves your issue or answers your question.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 18:29:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8514016#M154289</guid>
      <dc:creator>john.vellek</dc:creator>
      <dc:date>2019-01-10T18:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinate blocks distance measurement</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8514200#M154290</link>
      <description>&lt;P&gt;I'm not quite sure that would work considering its several&amp;nbsp;blocks connecting to one main block. They don't interconnect among one another so I don't know how I would be able to get an accurate total distance. As far as extracting data, I&amp;nbsp;don't know if these distances would be able to be extracted apart from manually writing each one manually in an excel.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 19:31:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8514200#M154290</guid>
      <dc:creator>alxnds5</dc:creator>
      <dc:date>2019-01-10T19:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Coordinate blocks distance measurement</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8514497#M154291</link>
      <description>&lt;P&gt;I have one last question, I'm sorry. Is it possible to modify your code so that there is one main block chosen and thereafter pick multiple blocks that have a path to the main block?, that way it adds all the distances to that one main block.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 21:03:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/coordinate-blocks-distance-measurement/m-p/8514497#M154291</guid>
      <dc:creator>alxnds5</dc:creator>
      <dc:date>2019-01-10T21:03:46Z</dc:date>
    </item>
  </channel>
</rss>

