<?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: Creating multiple closed polygons in selected closed boundaries in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/8426795#M96150</link>
    <description>&lt;P&gt;chek this..... created by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ssget-to-select-a-polyline-using-two-coordinates-as-filters/td-p/8408912" target="_blank"&gt;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ssget-to-select-a-polyline-using-two-coordinates-as-filters/td-p/8408912&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And first give some clue how the problem can be solved.......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second post your workout.......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because its sure you are going to ask many questions 1 by 1.......&lt;/P&gt;</description>
    <pubDate>Tue, 27 Nov 2018 10:08:10 GMT</pubDate>
    <dc:creator>dbhunia</dc:creator>
    <dc:date>2018-11-27T10:08:10Z</dc:date>
    <item>
      <title>Creating multiple closed polygons in selected closed boundaries</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/8426623#M96146</link>
      <description>&lt;P&gt;Dear Helpers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I stucked in creating lot of closed polygons in closed boudaries. Suppose we have so many rooms in a floor of a building with just lines and arcs. The lisp should generate multiple polygons inside the closed boundaries of rooms or zones.&lt;/P&gt;
&lt;P&gt;Please have a look on attached drawing.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 08:53:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/8426623#M96146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-27T08:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple closed polygons in selected closed boundaries</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/8426719#M96147</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your every Room is named then try this........(Chose a layer create Polyline &amp;amp; change its properties.....)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun C:CB (/)
(setvar "CMDECHO" 0)
(princ "\nSelect the Text/Mtext Inside the Closed Area: ")
(Setq selectionset (ssget '((0 . "*TEXT"))))
(repeat (setq N (sslength selectionset))
	(setq Data (ssname selectionset (setq N (- N 1))))
	(setq EntityData (entget Data))
	(setq IP_Text (cdr (assoc 10 EntityData)))
	(command "BOUNDARY" "_none" IP_Text "") 
)
(setvar "CMDECHO" 1)
(princ)
)&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Nov 2018 09:31:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/8426719#M96147</guid>
      <dc:creator>dbhunia</dc:creator>
      <dc:date>2018-11-27T09:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple closed polygons in selected closed boundaries</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/8426743#M96148</link>
      <description>&lt;P&gt;Exact Solution I got from you.&lt;/P&gt;
&lt;P&gt;Very Nice. Thankin you So much. Perfectly suited to my task&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 09:45:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/8426743#M96148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-27T09:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple closed polygons in selected closed boundaries</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/8426755#M96149</link>
      <description>&lt;P&gt;Thank you Very much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it's not working with without text. If some rooms may not having text inside. So in that case also it should create Room boundaries.&lt;/P&gt;
&lt;P&gt;Thank you inadvance, Sir.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 09:50:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/8426755#M96149</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-27T09:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple closed polygons in selected closed boundaries</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/8426795#M96150</link>
      <description>&lt;P&gt;chek this..... created by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ssget-to-select-a-polyline-using-two-coordinates-as-filters/td-p/8408912" target="_blank"&gt;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/ssget-to-select-a-polyline-using-two-coordinates-as-filters/td-p/8408912&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And first give some clue how the problem can be solved.......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second post your workout.......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because its sure you are going to ask many questions 1 by 1.......&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 10:08:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/8426795#M96150</guid>
      <dc:creator>dbhunia</dc:creator>
      <dc:date>2018-11-27T10:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple closed polygons in selected closed boundaries</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/8426802#M96151</link>
      <description>&lt;P&gt;Try the attached lisp.&lt;/P&gt;
&lt;P&gt;Works with lines, arcs, circles and polylines, parallel to UCS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 10:12:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/8426802#M96151</guid>
      <dc:creator>phanaem</dc:creator>
      <dc:date>2018-11-27T10:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple closed polygons in selected closed boundaries</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/8426823#M96152</link>
      <description>&lt;P&gt;I used the below code from that link. But couldn't work.&lt;/P&gt;
&lt;PRE&gt;(defun c:testeclose ( / ss i obj pnt ptlst ptsum )

  (if (setq ss (ssget '((0 . "LWPOLYLINE") (-4 . "&amp;lt;NOT") (-4 . "&amp;amp;=") (70 . 1) (-4 . "NOT&amp;gt;") (-4 . "&amp;gt;") (90 . 2))))
    (repeat (setq i (sslength ss))
      (setq ptlst nil ptsum '(0 0)
	    ptlst (mapcar 'cdr (vl-remove-if-not '(lambda (x) (= (car x) 10))
				      (entget (ssname ss (setq i (1- i)))))))
      (foreach x ptlst (setq ptsum (mapcar '+ x ptsum)))
      (setq pnt (mapcar '/ ptsum (list (length ptlst) (length ptlst))))
      (if pnt (command "_.-boundary" "_non" pnt ""))))
  (princ)
)&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Nov 2018 10:18:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/8426823#M96152</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-27T10:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple closed polygons in selected closed boundaries</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/8426966#M96153</link>
      <description>&lt;P&gt;Thank you So much Sir. It's working fetatstic&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 11:32:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/8426966#M96153</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-27T11:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple closed polygons in selected closed boundaries</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/9334071#M96154</link>
      <description>&lt;P&gt;What's the command how can i execute it? will it work to create multiple boundaries for different "areas" as the image attached?&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-left" image-alt="create.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/732717i4E2F61AACECFA640/image-size/medium?v=v2&amp;amp;px=400" role="button" title="create.png" alt="create.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 18:02:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/9334071#M96154</guid>
      <dc:creator>alansanudo</dc:creator>
      <dc:date>2020-02-21T18:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple closed polygons in selected closed boundaries</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/9334210#M96155</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1266413"&gt;@alansanudo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;What's the command how can i execute it? will it work to create multiple boundaries for different "areas" as the image attached?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a way to do that.&amp;nbsp; It asks you to pick points [just on-screen -- nothing drawn] defining opposite corners of a rectangular area that completely encloses the drawn [I assume property-line] parcels, and asks for a spacing increment, starts a BOUNDARY command, and just picks every point in a grid at that spacing throughout the area.&amp;nbsp; If it picks outboard of it all, a message goes by that no enclosed area was found, and if it picks more than once within the same area, a message goes by that the area has already been picked, but in either case it doesn't bother anything -- it keeps going.&amp;nbsp; Give it a spacing increment small enough that it's bound to land inside every parcel somewhere at least once, maybe a little less than the smallest parcel edge expected.&amp;nbsp; You will want to turn off Layers other than those of your property lines, so that it won't find an enclosed area outside of them all.&amp;nbsp; And it depends on all the parcels really being closed.&amp;nbsp;&amp;nbsp;&lt;EM&gt;Minimally tested.&lt;/EM&gt;&lt;/P&gt;
&lt;PRE&gt;(defun C:MBound ; = Multiple Boundaries
  (/ cor1 cor2 UR rowleft pt)
  (setq
    cor1 (getpoint "\nOne corner of area-enclosing rectangle: ")
    cor2 (getcorner cor1 "\nOpposite corner: ")
    inc (getdist "\nPick-point spacing increment: ")
    UR (mapcar 'max cor1 cor2)
    rowleft (mapcar '+ (mapcar 'min cor1 cor2) (list inc inc))
    pt rowleft
  ); setq
  (command "_.boundary" "advanced" "object" "Polyline" "")
  (while (&amp;lt; (cadr pt) (cadr UR)); still below top edge
    (while (&amp;lt; (car pt) (car UR)); still to left of right edge
      (command pt)
      (setq pt (polar pt 0 inc))
    ); while
    (setq
      rowleft (polar rowleft (/ pi 2) inc)
      pt rowleft
    ); setq
  ); while
  (command "")
  (princ)
); defun&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Feb 2020 19:12:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/9334210#M96155</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-02-21T19:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple closed polygons in selected closed boundaries</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/9334258#M96156</link>
      <description>&lt;P&gt;Thanks for the explanation, but how do I execute the code? sorry for my ignorance.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 19:33:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/9334258#M96156</guid>
      <dc:creator>alansanudo</dc:creator>
      <dc:date>2020-02-21T19:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple closed polygons in selected closed boundaries</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/9334270#M96157</link>
      <description>&lt;P&gt;Copy the code into a plain-text editor such as Notepad.&amp;nbsp; Save it to a file with a .LSP filetype ending [call it anything you want].&amp;nbsp; In AutoCAD, APPLOAD that file.&amp;nbsp; The command name is &lt;STRONG&gt;&lt;FONT color="#000000"&gt;MBound&lt;/FONT&gt;&lt;/STRONG&gt; [the part immediately following &lt;FONT color="#000000"&gt;&lt;STRONG&gt;C:&lt;/STRONG&gt;&lt;/FONT&gt; -- not case-sensitive].&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 19:40:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/9334270#M96157</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-02-21T19:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple closed polygons in selected closed boundaries</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/12691384#M96158</link>
      <description>&lt;P&gt;"Enclosed polylines v1.03.lsp" this is perfect it's very good thank you&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2024 15:18:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/12691384#M96158</guid>
      <dc:creator>kareemelnady8</dc:creator>
      <dc:date>2024-04-06T15:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple closed polygons in selected closed boundaries</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/13384809#M96159</link>
      <description>&lt;P&gt;Hi, thanks for your work.&lt;/P&gt;&lt;P&gt;I'm trying to adapt it to get the result shown in the attachment (automatic separation of closed parts, with inclusion of objects inside the parts).&lt;/P&gt;&lt;P&gt;But already, when I use the LISP on my entire drawing, if I have multiple separate elements, the region detection gives me full regions instead of only the smallest ones... Do you know why?&lt;/P&gt;</description>
      <pubDate>Sat, 22 Mar 2025 11:32:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/creating-multiple-closed-polygons-in-selected-closed-boundaries/m-p/13384809#M96159</guid>
      <dc:creator>albinZ5N68</dc:creator>
      <dc:date>2025-03-22T11:32:40Z</dc:date>
    </item>
  </channel>
</rss>

