<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>CAD Forum discussion (EN) : Drawing in relation to 0,0</title>
  <link>https://www.cadforum.cz/forum_en/</link>
  <description><![CDATA[This is an XML content feed of; CAD Forum discussion (EN) : AutoCAD : Drawing in relation to 0,0]]></description>
  <pubDate>Sat, 05 Sep 2026 21:42:44 +0000</pubDate>
  <lastBuildDate>Fri, 21 Jul 2017 16:57:34 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://www.cadforum.cz/forum_en/RSS_post_feed.asp?TID=12400</WebWizForums:feedURL>
  <image>
   <title><![CDATA[CAD Forum discussion (EN)]]></title>
   <url>https://www.cadforum.cz/forum_en/forum_images/web_wiz_forums.png</url>
   <link>https://www.cadforum.cz/forum_en/</link>
  </image>
  <item>
   <title><![CDATA[Drawing in relation to 0,0 :  I don&amp;#039;t know of a way to...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=12400&amp;PID=34948&amp;title=drawing-in-relation-to-00#34948</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=353260">Kent Cooper</a><br /><strong>Subject:</strong> 12400<br /><strong>Posted:</strong> 21.Jul.2017 at 16:57<br /><br />I don't know of a way to do that <em>without</em> Inserting one into a drawing, but once you've Inserted one, you can.&nbsp; It involves getting the Block definition <font color="#ff0000">as an object</font> with something like &#091;if your Stop Sign is called "StopSign"&#093;:<div>&nbsp;</div><div>(setq ent (<font color="#ff0000">tblobjname</font> "block" "StopSign"))</div><div>&nbsp;</div><div>and then stepping through the things that make it up, which are the <font color="#00ff00">next entity</font>, and the next, etc.:</div><div>&nbsp;</div><div>(setq ent (<font color="#00ff00">entnext</font> ent))</div><div>&nbsp;</div><div>At each step, you can get entity data about the&nbsp;piece you're up to, and handle it any way you like.&nbsp; The key is that those entities that make up the Block are all defined <em>in terms of locational information <strong>in relation to the Block's defined insertion point</strong></em>.&nbsp; So, if the word "STOP" in your Stop Sign is middle-justified at the center of the sign, and the Block's insertion point is 0,0, you could step through and check each entity for <em>whether it's Text</em> &#091;on the assumption that there won't be any <em>other</em> Text object(s) in a Stop Sign Block&#093;, and if it is, get its insertion point, which in your example will be that 20,50 location, and stop looking further.&nbsp; Similarly, if something is round, and doesn't have any Circles in it other than its outline, you could look at the pieces until you find a Circle, and get its center.</div><div>&nbsp;</div><div>In&nbsp;Blocks that <em>don't</em> have some specific entity from which the middle location can be pulled like that, you could step through things and get their bounding boxes, keeping tabs on the lower left and upper right corner of each and saving the extremes, then find the midpoint between the outermost extents of all the objects.&nbsp; &#091;That <em>does</em> have the possibility of incorrect results&nbsp;in some circumstances, since some objects' bounding boxes can at least sometimes extend beyond their actual graphic extent -- Splines and Mtext are examples, and there might be others.&#093;</div> ]]>
   </description>
   <pubDate>Fri, 21 Jul 2017 16:57:34 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=12400&amp;PID=34948&amp;title=drawing-in-relation-to-00#34948</guid>
  </item> 
  <item>
   <title><![CDATA[Drawing in relation to 0,0 : Sorry for the confusion. The 5000...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=12400&amp;PID=34947&amp;title=drawing-in-relation-to-00#34947</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=736654">aarevalo0827</a><br /><strong>Subject:</strong> 12400<br /><strong>Posted:</strong> 21.Jul.2017 at 14:16<br /><br />Sorry for the confusion. The 5000 blocks are individual drawings/icons that are brought or inserted into other AutoCAD files. These 5000 blocks are made up of a group of lines, arcs and circles. Let's say one of the blocks is a stop sign. Instead of the center of the stop sign being the insertion point, it's insertion point is 0,0. The groupings of the stop sign (octogon and text) are located 20,50 (center of the stop sign). I want to know if there is a way for AutoCAD to tell me that the center of the stop sign is 20,50. I know that if I open the file and use the list command and select the groupings of the stop sign it will display the center location - 20,50. Is there a faster way of doing it for all of these drawings/icons? I hope I clarified my situation better.&nbsp;<div>Thanks,</div>]]>
   </description>
   <pubDate>Fri, 21 Jul 2017 14:16:52 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=12400&amp;PID=34947&amp;title=drawing-in-relation-to-00#34947</guid>
  </item> 
  <item>
   <title><![CDATA[Drawing in relation to 0,0 :  I&amp;#039;m having a hard time...]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=12400&amp;PID=34944&amp;title=drawing-in-relation-to-00#34944</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=353260">Kent Cooper</a><br /><strong>Subject:</strong> 12400<br /><strong>Posted:</strong> 21.Jul.2017 at 03:33<br /><br /><div>I'm having a hard time understanding exactly what you're asking.&nbsp; 5,000 Block <i>definitions</i> as files outside any working drawing, or 5,000 Block <i>insertions</i> within a drawing?&nbsp; By "the actual lines, arcs and circles" do you mean those that <i>make up the Blocks</i>, or those that are <i>not</i> parts of Blocks, but that Blocks will be "pull&#091;ed&#093; in" and placed in relation to, somehow?&nbsp; Are those 5,000 Blocks the same things as the&nbsp;"icons" you refer to, or are those something else?&nbsp; Is the "center point" of&nbsp;an icon &#091;<i>if</i> that's a Block&#093; always its insertion point?</div><div><br></div><div>Probably what you are asking can be done -- I just don't quite get what that is, yet.&nbsp; A sample drawing with notations, or even an image of some kind, would go a long way.</div>]]>
   </description>
   <pubDate>Fri, 21 Jul 2017 03:33:21 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=12400&amp;PID=34944&amp;title=drawing-in-relation-to-00#34944</guid>
  </item> 
  <item>
   <title><![CDATA[Drawing in relation to 0,0 : So, we have over 5,000 blocks....]]></title>
   <link>https://www.cadforum.cz/forum_en/forum_posts.asp?TID=12400&amp;PID=34943&amp;title=drawing-in-relation-to-00#34943</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.cadforum.cz/forum_en/member_profile.asp?PF=736654">aarevalo0827</a><br /><strong>Subject:</strong> 12400<br /><strong>Posted:</strong> 20.Jul.2017 at 21:29<br /><br />So, we have over 5,000 blocks. These blocks all have different insertion points. What we are trying to do is find where the actual lines, arcs and circles within the drawing are located in relation to 0,0. I know we can do the list command and select the icons and it will give me a center point. I was wondering if there was a way to do it via a lisp command to make it faster.&nbsp;<div>The reason for this is programming. We have a program that will pull these icons in and scale them. We just need to ensure they are placed correctly.</div>]]>
   </description>
   <pubDate>Thu, 20 Jul 2017 21:29:48 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum_en/forum_posts.asp?TID=12400&amp;PID=34943&amp;title=drawing-in-relation-to-00#34943</guid>
  </item> 
 </channel>
</rss>