<?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: using fence as selection in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8064106#M103709</link>
    <description>&lt;P&gt;What, there are no bulged segments in the CZ?&lt;/P&gt;&lt;P&gt;Either that or I missed something, as usual.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jun 2018 23:31:28 GMT</pubDate>
    <dc:creator>john.uhden</dc:creator>
    <dc:date>2018-06-12T23:31:28Z</dc:date>
    <item>
      <title>using fence as selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8062615#M103699</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;Can anyone help me with a lisp that when I click on it it will let me FENCE the lines or objects that I want and select them ,so I can deside what to do with them delete or do something else with them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exactly like hiting the select-fence, but I want with one click on the lisp (I will turn it into an icon) , it will ask for fence and I can use it like the select tool.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 12:53:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8062615#M103699</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-12T12:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: using fence as selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8062697#M103700</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;Can anyone help me with a lisp that when I click on it it will let me FENCE the lines or objects that I want and select them ,so I can deside what to do with them delete or do something else with them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exactly like hiting the select-fence, &lt;STRIKE&gt;but I want with one click on the lisp&lt;/STRIKE&gt; &lt;STRONG&gt;(I will turn it into an icon&lt;/STRONG&gt;) , it will ask for fence and I can use it like the select tool.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Simple macro like this does that.&lt;/P&gt;&lt;PRE&gt;^C^C_.PSELECT;_F&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jun 2018 13:20:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8062697#M103700</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2018-06-12T13:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: using fence as selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8062755#M103701</link>
      <description>&lt;P&gt;I'm sure you will find some usefull code &lt;A href="http://www.cadtutor.net/forum/showthread.php?92362-Polyline-as-a-selection-fence" target="_blank"&gt;here.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;At least 3 different functions to choose from (even 1 by Lee Mac!), and what the user/requester used&amp;nbsp;in this case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 13:36:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8062755#M103701</guid>
      <dc:creator>roland.r71</dc:creator>
      <dc:date>2018-06-12T13:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: using fence as selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8062798#M103702</link>
      <description>&lt;P&gt;I never heard of PSELECT, so i just gave it a try, but this only seems to select objects &lt;EM&gt;crossing&lt;/EM&gt; the fence, not what's &lt;EM&gt;inside&lt;/EM&gt; the fence...&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 13:48:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8062798#M103702</guid>
      <dc:creator>roland.r71</dc:creator>
      <dc:date>2018-06-12T13:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: using fence as selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8062845#M103703</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4682962"&gt;@roland.r71&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I never heard of PSELECT, so i just gave it a try, but this only seems to select objects &lt;EM&gt;crossing&lt;/EM&gt; the fence, not what's &lt;EM&gt;inside&lt;/EM&gt; the fence...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hmm, not sure what the OP is asking for...&amp;nbsp;&lt;/P&gt;&lt;P&gt;My suggestion just uses the Fence method of the SELECT command and keeps selected objects highlighted (PSELECT is basically (sssetfirst)).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the OP meant to select all objects inside selected polyline as a boundary... then I use this...&lt;/P&gt;&lt;PRE&gt;(defun c:SI (/ en ss lst ssall tmp head) 	;;Select Inside of contour
  						;;!!!! REQUIRED EXPRESS TOOLS

  (if (and (setq en (car (entsel "\nSelect contour: ")))
           (wcmatch (cdr (assoc 0 (entget en))) "*POLYLINE")
      )
    (progn
      (setq lst (ACET-GEOM-OBJECT-POINT-LIST en 1e-3)
            lst (mapcar '(lambda (x) (list (car x) (cadr x))) lst))
      (while lst
        (setq head (car lst)
              tmp  (cons head tmp)
              lst  (vl-remove-if
                     '(lambda (pt) (equal pt head 1e-6))
                     (cdr lst))))
      (setq lst (reverse tmp))
      (ACET-SS-ZOOM-EXTENTS (ACET-LIST-TO-SS (list en)))
      (command "_.Zoom" "0.95x")
      (if (setq ss (ssget &lt;STRONG&gt;"_CP"&lt;/STRONG&gt; lst))   &lt;STRONG&gt;;or WP vs CP&lt;/STRONG&gt;
        (sssetfirst ss ss))))
  (princ)
)&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 14:04:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8062845#M103703</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2018-06-12T14:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: using fence as selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8063143#M103704</link>
      <description>&lt;P&gt;Yes,&lt;/P&gt;
&lt;P&gt;pselect is "equal" (sssetfirst nil (ssget))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and not in automation it is the same like PickAdd=2 and Select&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;and the command isn't alltime available, it loads with the first time properties palette (or only acopm.arx),&lt;/P&gt;
&lt;P&gt;but not in LT versions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 15:54:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8063143#M103704</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2018-06-12T15:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: using fence as selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8063438#M103705</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4682962"&gt;@roland.r71&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I never heard of PSELECT, so i just gave it a try, but this only seems to select objects &lt;EM&gt;crossing&lt;/EM&gt; the fence, not what's &lt;EM&gt;inside&lt;/EM&gt; the fence...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's how Fence selection works.&amp;nbsp; It sounds like you want CP [Crossing-Polygon] selection instead.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 17:57:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8063438#M103705</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2018-06-12T17:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: using fence as selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8063501#M103706</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4682962"&gt;@roland.r71&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I never heard of PSELECT, so i just gave it a try, but this only seems to select objects &lt;EM&gt;crossing&lt;/EM&gt; the fence, not what's &lt;EM&gt;inside&lt;/EM&gt; the fence...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That's how Fence selection works.&amp;nbsp; It sounds like you want CP [Crossing-Polygon] selection instead.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No not what i want, i &lt;EM&gt;expected&lt;/EM&gt; a more 'window' like behaviour, which is clearly not the case.&lt;/P&gt;&lt;P&gt;I'll leave the 'wanting' to the OP &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://forums.autodesk.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 18:19:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8063501#M103706</guid>
      <dc:creator>roland.r71</dc:creator>
      <dc:date>2018-06-12T18:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: using fence as selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8063569#M103707</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4682962"&gt;@roland.r71&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;No not what i want, i &lt;EM&gt;expected&lt;/EM&gt; a more 'window' like behaviour, which is clearly not the case. ....&lt;/BLOCKQUOTE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Fence selection doesn't work that way because there &lt;EM&gt;are&lt;/EM&gt;&amp;nbsp; more window-like behaviors already available, with irregular paths such as one can use in Fence selection,&amp;nbsp;using either &lt;FONT color="#000000"&gt;CP&lt;/FONT&gt; or &lt;FONT color="#000000"&gt;WP&lt;/FONT&gt; modes.&amp;nbsp;&amp;nbsp;Which one to use&amp;nbsp;depends on whether you want anything &lt;EM&gt;inside or crossing&lt;/EM&gt;&amp;nbsp; the&amp;nbsp;outline [&lt;FONT color="#000000"&gt;CP&lt;/FONT&gt;] or only things &lt;EM&gt;fully within&lt;/EM&gt;&amp;nbsp; it [&lt;FONT color="#000000"&gt;WP&lt;/FONT&gt;] -- the same distinction as between &lt;FONT color="#000000"&gt;C&lt;/FONT&gt; and &lt;FONT color="#000000"&gt;W&lt;/FONT&gt; modes, but without the limitation to rectangular outlines.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 18:43:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8063569#M103707</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2018-06-12T18:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: using fence as selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8063607#M103708</link>
      <description>&lt;P&gt;WP is what i meant with "more window like".&amp;nbsp; = select all within, not crossing.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 18:55:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8063607#M103708</guid>
      <dc:creator>roland.r71</dc:creator>
      <dc:date>2018-06-12T18:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: using fence as selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8064106#M103709</link>
      <description>&lt;P&gt;What, there are no bulged segments in the CZ?&lt;/P&gt;&lt;P&gt;Either that or I missed something, as usual.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 23:31:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8064106#M103709</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2018-06-12T23:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: using fence as selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8064783#M103710</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3930636"&gt;@john.uhden&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;What, there are no bulged segments in the CZ?&lt;/P&gt;&lt;P&gt;Either that or I missed something, as usual.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Ohh yeah, there are. Sometimes, but mostly not or&amp;nbsp;negligible. Sometimes the boundary has so so many vertices....&lt;/P&gt;&lt;P&gt;Well, thinking of that, it would be so nice if I once fixed all the routines I have. In this case it could test the selected boundary for bulges, and then use the nice simple and quick algorithm&amp;nbsp;if there are none,&amp;nbsp;or some comprehensive but slow if there are. For now I just know, that I need to search for different routine that can handle bulges. I guess I can live with that... The question is if the OP can either.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 09:03:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8064783#M103710</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2018-06-13T09:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: using fence as selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8064971#M103711</link>
      <description>&lt;P&gt;Try this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun c:wp ( / pt1 pt2)
(setq pt1 (getpoint "pick 1st point"))
(setq pt2 (getpoint pt1 "pick 2nd point"))
(setq ss (ssget "wp" (list pt1 pt2))
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;'ss&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 10:35:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8064971#M103711</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-13T10:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: using fence as selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8065007#M103712</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Try this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun c:wp ( / pt1 pt2)
(setq pt1 (getpoint "pick 1st point"))
(setq pt2 (getpoint pt1 "pick 2nd point"))
(setq ss (ssget "wp" (list pt1 pt2))
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;'ss&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thnx.&lt;/P&gt;&lt;P&gt;...but all i mean to say is i expected the "fence" to be similar to the window selection, in that it selects everything inside. BUT with a polygon made up out of as many points as one wishes. aka "WP".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's what the functions do i posted in my first reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After trying the PSELECT _F option as posted by &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt; i noticed this was not the case. Instead it selects &lt;STRONG&gt;only&lt;/STRONG&gt; the lines crossing the fence. aka "CP".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i learned something new here &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://forums.autodesk.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;&lt;P&gt;...but i'm not looking for any code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The OP is, but as he's not been back yet, it's not completely clear what behaviour HE (or she?) is looking for. Probably the macro will do.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 10:58:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8065007#M103712</guid>
      <dc:creator>roland.r71</dc:creator>
      <dc:date>2018-06-13T10:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: using fence as selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8068502#M103713</link>
      <description>I've been working on (actually just thinking of) a new and improved @Anonymous&lt;BR /&gt;function for years. When I get it working I will share it with you.</description>
      <pubDate>Thu, 14 Jun 2018 14:44:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8068502#M103713</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2018-06-14T14:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: using fence as selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8068707#M103714</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Thank you all , but I think I miss explained myself , I found exactly what I wanted, I didn't know that there is a default command in Autocad already, it called: SELECT FENCE , after I click on erase,or copy or move I click on SELECT FENCE icon and it allow me to fence by line the entities that I want to do the manipulation on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again,&lt;/P&gt;&lt;P&gt;Eyal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 16:03:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/8068707#M103714</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-14T16:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: using fence as selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/12705649#M103715</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;While digging around for (ssget "_F" pts filter) examples, I ran across this not-too-old thread.&lt;/P&gt;&lt;P&gt;I created that function we wanted to convert a polyline with bulged segments into a non-bulged list of points (see below).&amp;nbsp; I use it like (setq pts (@fencepts plineobj 1.0))&lt;/P&gt;&lt;P&gt;I can .PLINE (mapcar 'command pts) "" and it checks out just fine.&lt;/P&gt;&lt;P&gt;But (ssget "_F" pts filter) gets nothing most of the time.&amp;nbsp; The filter just restricts the selection to curve objects.&lt;BR /&gt;Might there be a limit to the number of pts you can supply?&amp;nbsp; Or is there any other caveat when using the fence option?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;  ;;--------------------------------------------------------------
  ;; This function adds fence points along bulged segments, if any.
  (defun @fencepts (fence M / start end param bulge d1 d2 incs d dd p plist L)
    ;; where:
    ;;  fence is the polyline fence vla-object or ename
    ;;  M is the mid-ordinate for calculating additional points along an arced segment
    (or (= (type fence) 'vla-object)(setq fence (vlax-ename-&amp;gt;vla-object fence)))
    (setq start (vlax-curve-getstartparam fence))
    (setq end (vlax-curve-getendparam fence))
    (setq param start)
    (while (&amp;lt; param end)
      (setq plist (cons (@2d (vlax-curve-getpointatparam fence param)) plist))
      (and
        (not (zerop (setq bulge (vla-getbulge fence param))))
        (setq delta (* 4 (atan (abs bulge))))
        (setq chord (distance (vlax-curve-getpointatparam fence param)(vlax-curve-getpointatparam fence (1+ param))))
        (setq R (/ chord (sin (/ delta 2))))
        (setq x (- 1 (/ M R)))
        (setq L (* 2 R (@acos x)))
        (setq d1 (vlax-curve-getdistatparam fence param)
              d d1
              d2 (vlax-curve-getdistatparam fence (1+ param))
              incs (max 5 (fix (/ (- d2 d1) L)))
              dd (/ (- d2 d1) incs)
        )
        (while (&amp;lt; (setq d (+ d dd)) d2)
          (setq p (@2d (vlax-curve-getpointatdist fence d)))
          (setq plist (cons p plist))
        )
      )
      (setq param (1+ param))
    )
    (reverse (cons (@2d (vlax-curve-getpointatparam fence end)) plist))
  )
  ;;;;;;; OOPS.  Almost forget 2 supporting functions...
  (defun @2d (p)(mapcar '* p '(1 1)))
  (defun @acos (x) (atan (sqrt (- 1 (* x x))) x))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 22:18:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/12705649#M103715</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-04-12T22:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: using fence as selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/12705669#M103716</link>
      <description>&lt;P&gt;“Might there be a limit to the number of pts you can supply?”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wondered about that, I was playing with curve.getSamplePoints to generate a fence.&lt;/P&gt;&lt;P&gt;If there is a limit, it’s a lot!&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.theswamp.org/index.php?topic=59425.msg620237#msg620237" target="_blank"&gt;https://www.theswamp.org/index.php?topic=59425.msg620237#msg620237&lt;/A&gt;&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-inline" image-alt="samplepts.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1349214iDC9AACC41B28DC53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="samplepts.png" alt="samplepts.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 22:27:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/12705669#M103716</guid>
      <dc:creator>daniel_cadext</dc:creator>
      <dc:date>2024-04-12T22:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: using fence as selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/12705687#M103717</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8575899"&gt;@daniel_cadext&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Many thanks, but I got nothing out of that.&amp;nbsp; I am ignorant of programming languages other than AutoLisp and Excel DIY functions.&amp;nbsp; Anyway, a lot of your circles seemed to be way off the mark.&lt;/P&gt;&lt;P&gt;Another anyway, my&amp;nbsp;@fencepts function appears to work as wanted; it's the ssget that's not working.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 22:39:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/12705687#M103717</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-04-12T22:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: using fence as selection</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/12705720#M103718</link>
      <description>&lt;P&gt;Ah, the goal was to select only the circles that the fence crossed through&lt;/P&gt;&lt;P&gt;Just like fencepts divides the polyline. The API has a function to do this for you (getSamplePoints)&lt;/P&gt;&lt;P&gt;getSamplePoints excepts a value of how many point you want, ssget "_F" pts seems to take 1000s&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 23:04:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/using-fence-as-selection/m-p/12705720#M103718</guid>
      <dc:creator>daniel_cadext</dc:creator>
      <dc:date>2024-04-12T23:04:23Z</dc:date>
    </item>
  </channel>
</rss>

