<?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: Get Region Boundary in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/get-region-boundary/m-p/13178431#M5682</link>
    <description>&lt;P&gt;Manually this is how I let AutoCAD create the new inner &amp;amp; outer PLINEs from the REGION&lt;/P&gt;&lt;P&gt;Enter command:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BPOLY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In the &lt;STRONG&gt;Boundary Creation&lt;/STRONG&gt; dialog under &lt;STRONG&gt;Boundary&lt;/STRONG&gt; &lt;STRONG&gt;set&lt;/STRONG&gt; click &lt;STRONG&gt;New&lt;/STRONG&gt; and select the &lt;STRONG&gt;Region&lt;/STRONG&gt; and hit &lt;STRONG&gt;Enter:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_0-1732735252636.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1439546i54EA174480A26104/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_0-1732735252636.png" alt="paullimapa_0-1732735252636.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;Boundary Creation&lt;/STRONG&gt; dialog re-appears and this time click on &lt;STRONG&gt;Pick Points&lt;/STRONG&gt;&amp;nbsp;but this time select the space that makes up the&amp;nbsp;&lt;STRONG&gt;REGION:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_2-1732735396666.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1439548i27CF9458B8D760D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_2-1732735396666.png" alt="paullimapa_2-1732735396666.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If successful AutoCAD will show selected the new PLINE boundaries generated:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_3-1732735474893.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1439549i308E5FB7EC94E40E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_3-1732735474893.png" alt="paullimapa_3-1732735474893.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hit Enter to complete the command.&lt;/P&gt;&lt;P&gt;Now you've got the PLINEs automatically generated for you:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_4-1732735545217.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1439550iD2F1DCFCC0C84BB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_4-1732735545217.png" alt="paullimapa_4-1732735545217.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2024 19:26:14 GMT</pubDate>
    <dc:creator>paullimapa</dc:creator>
    <dc:date>2024-11-27T19:26:14Z</dc:date>
    <item>
      <title>Get Region Boundary</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/get-region-boundary/m-p/13177478#M5680</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ysuuny_0-1732714761457.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1439274iF8DFBF088AAD3951/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ysuuny_0-1732714761457.png" alt="Ysuuny_0-1732714761457.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hello!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm developing it with civil3d c# and it's not solved, so I'm leaving a post.&lt;/P&gt;&lt;P&gt;I only want to bring the outer line (polyline) from the region with a hole in the middle&lt;/P&gt;&lt;P&gt;- I explode the region, but it's hard to join because it's remain to the middle line&lt;BR /&gt;- I've also checked if it's in the area based on the point criteria, but it's not working well&lt;/P&gt;&lt;P&gt;I also referred to this library(GeometryExtensionsR19,&amp;nbsp;brep) and worked hard...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me,, &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 13:51:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/get-region-boundary/m-p/13177478#M5680</guid>
      <dc:creator>Ysuuny</dc:creator>
      <dc:date>2024-11-27T13:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get Region Boundary</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/get-region-boundary/m-p/13177508#M5681</link>
      <description>&lt;P&gt;LINEWORKSHRINKWRAP ?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 14:03:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/get-region-boundary/m-p/13177508#M5681</guid>
      <dc:creator>Joe-Bouza</dc:creator>
      <dc:date>2024-11-27T14:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get Region Boundary</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/get-region-boundary/m-p/13178431#M5682</link>
      <description>&lt;P&gt;Manually this is how I let AutoCAD create the new inner &amp;amp; outer PLINEs from the REGION&lt;/P&gt;&lt;P&gt;Enter command:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BPOLY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In the &lt;STRONG&gt;Boundary Creation&lt;/STRONG&gt; dialog under &lt;STRONG&gt;Boundary&lt;/STRONG&gt; &lt;STRONG&gt;set&lt;/STRONG&gt; click &lt;STRONG&gt;New&lt;/STRONG&gt; and select the &lt;STRONG&gt;Region&lt;/STRONG&gt; and hit &lt;STRONG&gt;Enter:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_0-1732735252636.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1439546i54EA174480A26104/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_0-1732735252636.png" alt="paullimapa_0-1732735252636.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;Boundary Creation&lt;/STRONG&gt; dialog re-appears and this time click on &lt;STRONG&gt;Pick Points&lt;/STRONG&gt;&amp;nbsp;but this time select the space that makes up the&amp;nbsp;&lt;STRONG&gt;REGION:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_2-1732735396666.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1439548i27CF9458B8D760D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_2-1732735396666.png" alt="paullimapa_2-1732735396666.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If successful AutoCAD will show selected the new PLINE boundaries generated:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_3-1732735474893.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1439549i308E5FB7EC94E40E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_3-1732735474893.png" alt="paullimapa_3-1732735474893.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hit Enter to complete the command.&lt;/P&gt;&lt;P&gt;Now you've got the PLINEs automatically generated for you:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_4-1732735545217.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1439550iD2F1DCFCC0C84BB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_4-1732735545217.png" alt="paullimapa_4-1732735545217.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 19:26:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/get-region-boundary/m-p/13178431#M5682</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-11-27T19:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get Region Boundary</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/get-region-boundary/m-p/13178447#M5683</link>
      <description>&lt;P&gt;Also this is how I would do it with lisp code:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-use-bpoly-function/m-p/12773148/highlight/true#M466033" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-use-bpoly-function/m-p/12773148/highlight/true#M466033&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;;;--- aec_setmrk is used w/ (aec_getmrk) it sets pt. marker
(defun aec_setmrk ()
  (command "_.Point" "@")
  (setq aec_pt-mrk (entlast))
  (entdel aec_pt-mrk)
  (princ)
) ;defun
;;;--- aec_getmrk starts at aec_pt-mrk (aec_setmrk) retrieves to current entity
(defun aec_getmrk (/ aec_ss)
	(if aec_pt-mrk
		(progn
			(setq aec_ss (ssadd))
			(while (setq aec_pt-mrk (entnext aec_pt-mrk))
				(ssadd aec_pt-mrk aec_ss)
			)
      (setq aec_pt nil)
			aec_ss
		)
	) ;if
) ;defun
(if (setq bp (getpoint "\nSelect Internal Point: ")) ; select point in middle of REGION
 (progn
  (aec_setmrk) ; set beginning marker
  (command "._-Boundary" "_non" bp "") ; create boundaries
  (if (setq ss (aec_getmrk))(sssetfirst nil ss)) ; highlight them
 )
) ; if&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 19:35:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/get-region-boundary/m-p/13178447#M5683</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-11-27T19:35:29Z</dc:date>
    </item>
  </channel>
</rss>

