<?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: finding empty 2D area in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/finding-empty-2d-area/m-p/13321727#M826</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13541427"&gt;@kazfukuoka&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hi Kerry, I am wishing for a fully automatic way.&lt;BR /&gt;The "entities of interest" is created by my program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In case user interaction is allowed,&lt;BR /&gt;I could use jig to let user select a good space.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, I was going to suggest using an MTEXT Jig to place the notation ( with a leader if needed )&lt;BR /&gt;This could&amp;nbsp; fairly easily be built into the workflow loop&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;loop {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; zoom to area of interest&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; create "entities of interest"&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; invoke&amp;nbsp; Jig for relevant MText&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added: Link : perhaps something like this from Gilles&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/net/how-to-crate-mtext-and-visible-with-the-cursor-amp-exit-when/m-p/7682076/highlight/true#M56833" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/net/how-to-crate-mtext-and-visible-with-the-cursor-amp-exit-when/m-p/7682076/highlight/true#M56833&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added afterthought: Even if you are able to develop a full automatic smart process you'll probably want/need to check processed object and each MText&amp;nbsp; notation. . . .&amp;nbsp; so there may not be much difference in total time spent . . . .except for the simpler code development&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 16 Feb 2025 07:11:26 GMT</pubDate>
    <dc:creator>kerry_w_brown</dc:creator>
    <dc:date>2025-02-16T07:11:26Z</dc:date>
    <item>
      <title>finding empty 2D area</title>
      <link>https://forums.autodesk.com/t5/net-forum/finding-empty-2d-area/m-p/13321087#M820</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;This question is about 2D drawing (ignoring Z).&lt;BR /&gt;Is there any way to see if a rectangular area is empty?&lt;BR /&gt;Something like &lt;FONT face="courier new,courier"&gt;bool IsEmpty(x, y, w, h)&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a background, here is what I want to do: There are some entities of interest in the drawing.&lt;BR /&gt;I want to add information text close to each of those entities.&lt;BR /&gt;To find a space to draw the text, I want to find an empty space near each of such entities.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2025 14:02:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/finding-empty-2d-area/m-p/13321087#M820</guid>
      <dc:creator>kazfukuoka</dc:creator>
      <dc:date>2025-02-15T14:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: finding empty 2D area</title>
      <link>https://forums.autodesk.com/t5/net-forum/finding-empty-2d-area/m-p/13321358#M821</link>
      <description>&lt;P&gt;Assume that you want to do it in a regular AutoCAD session with a MdiActiveDocument (that is, there is Editor available), you can simply use&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit.SelectWindow() to see if the PromptResult returns OK or Error. OK means something inside the selecting window, Error mean nothing is selected (that is what you want to know). Make sure you zoom to the window before calling SelectWindow().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2025 20:14:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/finding-empty-2d-area/m-p/13321358#M821</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2025-02-15T20:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: finding empty 2D area</title>
      <link>https://forums.autodesk.com/t5/net-forum/finding-empty-2d-area/m-p/13321610#M822</link>
      <description>&lt;P&gt;Thank you Norman, this will do for now.&lt;/P&gt;&lt;P&gt;Although Edit.SelectWindow() is handy, it cannot be the final solution because of the zooming requirement.&lt;BR /&gt;I wish to find a nicer solution for the future improvement.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2025 03:05:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/finding-empty-2d-area/m-p/13321610#M822</guid>
      <dc:creator>kazfukuoka</dc:creator>
      <dc:date>2025-02-16T03:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: finding empty 2D area</title>
      <link>https://forums.autodesk.com/t5/net-forum/finding-empty-2d-area/m-p/13321686#M823</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13541427"&gt;@kazfukuoka&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;How much user interaction will be allowed ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you manually selecting the&amp;nbsp; "&lt;SPAN&gt;entities of interest" ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2025 05:12:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/finding-empty-2d-area/m-p/13321686#M823</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2025-02-16T05:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: finding empty 2D area</title>
      <link>https://forums.autodesk.com/t5/net-forum/finding-empty-2d-area/m-p/13321697#M824</link>
      <description>&lt;P&gt;Hi Kerry, I am wishing for a fully automatic way.&lt;BR /&gt;The "entities of interest" is created by my program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In case user interaction is allowed,&lt;BR /&gt;I could use jig to let user select a good space.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2025 05:42:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/finding-empty-2d-area/m-p/13321697#M824</guid>
      <dc:creator>kazfukuoka</dc:creator>
      <dc:date>2025-02-16T05:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: finding empty 2D area</title>
      <link>https://forums.autodesk.com/t5/net-forum/finding-empty-2d-area/m-p/13321715#M825</link>
      <description>&lt;P&gt;in that case you know the cordinates of your drawing. you can zoom extents then create a region with that rectangle.&lt;/P&gt;&lt;P&gt;since entities of interest are created by your programs, now you can get geometric extents of those entities and create another region.&lt;/P&gt;&lt;P&gt;subtract the entity regions from the large region and you will be able to get some thing. then you can convert that region to a polyline using Giles Geometry extension. then you can find the empty areas.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2025 06:19:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/finding-empty-2d-area/m-p/13321715#M825</guid>
      <dc:creator>a.kouchakzadeh</dc:creator>
      <dc:date>2025-02-16T06:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: finding empty 2D area</title>
      <link>https://forums.autodesk.com/t5/net-forum/finding-empty-2d-area/m-p/13321727#M826</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13541427"&gt;@kazfukuoka&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hi Kerry, I am wishing for a fully automatic way.&lt;BR /&gt;The "entities of interest" is created by my program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In case user interaction is allowed,&lt;BR /&gt;I could use jig to let user select a good space.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, I was going to suggest using an MTEXT Jig to place the notation ( with a leader if needed )&lt;BR /&gt;This could&amp;nbsp; fairly easily be built into the workflow loop&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;loop {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; zoom to area of interest&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; create "entities of interest"&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; invoke&amp;nbsp; Jig for relevant MText&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added: Link : perhaps something like this from Gilles&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/net/how-to-crate-mtext-and-visible-with-the-cursor-amp-exit-when/m-p/7682076/highlight/true#M56833" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/net/how-to-crate-mtext-and-visible-with-the-cursor-amp-exit-when/m-p/7682076/highlight/true#M56833&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added afterthought: Even if you are able to develop a full automatic smart process you'll probably want/need to check processed object and each MText&amp;nbsp; notation. . . .&amp;nbsp; so there may not be much difference in total time spent . . . .except for the simpler code development&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2025 07:11:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/finding-empty-2d-area/m-p/13321727#M826</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2025-02-16T07:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: finding empty 2D area</title>
      <link>https://forums.autodesk.com/t5/net-forum/finding-empty-2d-area/m-p/13324444#M827</link>
      <description>&lt;P&gt;Both of you are right. I go with Edit.SelectWindow().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I worried too much considering the zooming step ugly.&lt;BR /&gt;But when the most important thing is to get the job done, such extra one step is not bad.&lt;BR /&gt;Working on AutoCAD requires lots of compromise anyway&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 00:51:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/finding-empty-2d-area/m-p/13324444#M827</guid>
      <dc:creator>kazfukuoka</dc:creator>
      <dc:date>2025-02-18T00:51:27Z</dc:date>
    </item>
  </channel>
</rss>

