<?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: i need some help with trimming unwanted line autolisp in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13645130#M279</link>
    <description>&lt;P&gt;thank for your reply. yeah, i think the lisp should ask user to choose the first arc/line to remove/keep, then the rest should be exercuted automatically clockwise/counter clockwise. in the rare case, the corner of the shape sit right on the arc (actually i haven't met this situtation before) then the lisp might not working as expected but i will fix it in the easy way: auto-trim 2 half of the drawing (first one with red line removed, second one with red line kept), join all line to make closed polyline then replace all open polyline with closed polyline from the other half&lt;/P&gt;</description>
    <pubDate>Thu, 22 May 2025 17:45:52 GMT</pubDate>
    <dc:creator>chelseabun</dc:creator>
    <dc:date>2025-05-22T17:45:52Z</dc:date>
    <item>
      <title>i need some help with trimming unwanted line autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13636320#M265</link>
      <description>&lt;P&gt;hi. i'm a beginner in autocad. i usually need to trim object as in my gif. after using EXTRIM, i have to trim excess line which is in between my wanted line. so i want to find an autolisp can do it for me automatically but can't find it. any help is appreciated. thank you&lt;/P&gt;</description>
      <pubDate>Sun, 18 May 2025 19:53:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13636320#M265</guid>
      <dc:creator>chelseabun</dc:creator>
      <dc:date>2025-05-18T19:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: i need some help with trimming unwanted line autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13636350#M266</link>
      <description>&lt;P&gt;After using EXTRIM, use the following Trim Every Other code found here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.theswamp.org/index.php?topic=42350.msg475290#msg475290" target="_blank"&gt;https://www.theswamp.org/index.php?topic=42350.msg475290#msg475290&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 May 2025 20:58:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13636350#M266</guid>
      <dc:creator>gbattinPH5TG</dc:creator>
      <dc:date>2025-05-18T20:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: i need some help with trimming unwanted line autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13636670#M267</link>
      <description>&lt;P&gt;thanks for your answer. i tested the code but it only keep the line which i clicked on, so it seem not work for me. this gif show my real work. please give me an advise&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 04:17:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13636670#M267</guid>
      <dc:creator>chelseabun</dc:creator>
      <dc:date>2025-05-19T04:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: i need some help with trimming unwanted line autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13637483#M268</link>
      <description>&lt;P&gt;Try CookieCutter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok one way around problem is change the objects inside the circle to a dummy layer and turn off, erase all other objects left behind, turn on and change layer of objects inside circle back to old layer. Yes for a circle need an approximation of the circle as facets. Done via a lisp limited user interaction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 09:28:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13637483#M268</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-05-19T09:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: i need some help with trimming unwanted line autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13638646#M269</link>
      <description>&lt;P&gt;thanks for your answer but this lisp delete everything except the one i'm working with. i want to keep wanted line in between deleted line like this gif show&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 17:10:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13638646#M269</guid>
      <dc:creator>chelseabun</dc:creator>
      <dc:date>2025-05-19T17:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: i need some help with trimming unwanted line autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13639260#M270</link>
      <description>&lt;P&gt;Ok understand I don't know if it can be automated as the length of the removed objects varies, I have used a CAB Breakall.lsp and it finds all the short segments, and you can erase them, but this task has all sorts of varying lengths.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need a dwg to even start thinking about it. Some one else may also jump in.&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 02:39:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13639260#M270</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-05-20T02:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: i need some help with trimming unwanted line autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13641053#M271</link>
      <description>&lt;P&gt;i have tested the break lisp and it give me an idea: convert the circle to arc then use break.lsp, then join arc to polyline but not arc to arc, then filter all arc to delete them. do you know how to join arc to polyline but not arc to arc?&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 18:44:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13641053#M271</guid>
      <dc:creator>chelseabun</dc:creator>
      <dc:date>2025-05-20T18:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: i need some help with trimming unwanted line autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13641451#M272</link>
      <description>&lt;P&gt;For any one to comment need a dwg.&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 01:28:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13641451#M272</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-05-21T01:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: i need some help with trimming unwanted line autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13643068#M273</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17411910"&gt;@chelseabun&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.... join arc to polyline but not arc to arc, then filter all arc to delete them. do you know how to join arc to polyline but not arc to arc?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I can imagine a way to do that much, using the ends of an Arc as a Fence in&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt; (ssget)&lt;/STRONG&gt; &lt;/FONT&gt;filtering to find &lt;STRONG&gt;&lt;EM&gt;only open Polylines&lt;/EM&gt;&lt;/STRONG&gt;.&amp;nbsp; But all kinds of complications are possible:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1747848298013.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1535930i14E14C16267E62F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1747848298013.png" alt="Kent1Cooper_0-1747848298013.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Suppose the red Arc is the one under consideration.&amp;nbsp; The method I imagine would be able to find the cyan Polyline [ignoring the white and yellow Arcs to either side] to join the Arc to.&amp;nbsp; But then, say it moves on to consider the yellow Arc next.&amp;nbsp; It would find the magenta Polyline, but you don't want those to be joined.&amp;nbsp; I'm not picturing how a routine could know that it should be considering the green Arc next [to join to the magenta Polyline], instead of the yellow one, so that the yellow one remains as an Arc to be deleted later.&amp;nbsp; It would need to start with some Arc that resulted from the Breaking routine, but which one?&amp;nbsp; If it starts with the yellow one, it would presumably join that to &lt;EM&gt;both&lt;/EM&gt; the cyan and magenta Polylines, which you may not want.&amp;nbsp; But you might, if the red and green should be the ones later deleted.&lt;/P&gt;
&lt;P&gt;Even with the every-other approach, I think any configuration could have either of the two possible sets of every-other-Arc be kept and the other set deleted.&amp;nbsp; Maybe something could be done involving asking the User to pick one of them, either one of those to keep or one to delete.&lt;/P&gt;
&lt;P&gt;But then, what should happen if a vertex lands &lt;EM&gt;right on&lt;/EM&gt; an Arc, such as the white parts at the upper right?&amp;nbsp; Assuming the Breaking routine breaks that white Arc at that corner, then I assume you would want &lt;EM&gt;both&lt;/EM&gt; resulting white Arcs eliminated -- not an every-other approach.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 17:42:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13643068#M273</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2025-05-21T17:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: i need some help with trimming unwanted line autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13643080#M274</link>
      <description>&lt;P&gt;this is my example file&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 17:44:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13643080#M274</guid>
      <dc:creator>chelseabun</dc:creator>
      <dc:date>2025-05-21T17:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: i need some help with trimming unwanted line autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13643096#M276</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/17411910"&gt;@chelseabun&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;this is my example file&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The situation would not always be appropriate for this, but in the rectangular-area part of your sample drawing, since it's all line-segment closures, you can just eliminate the white rectangle from you "extrim" portion, grab all the Polylines that were in it, in a collective window, and in the Properties palette, &lt;STRONG&gt;Misc&lt;/STRONG&gt; category, change the &lt;STRONG&gt;Closed&lt;/STRONG&gt; line from &lt;STRONG&gt;*VARIES*&lt;/STRONG&gt; to &lt;STRONG&gt;Yes&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;But that won't do what you want if the Extrim boundary is a Circle [or other thing that includes curves] as in your earlier examples and part of your sample drawing, because it will close all the broken Polylines &lt;EM&gt;with line segments&lt;/EM&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 17:57:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13643096#M276</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2025-05-21T17:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: i need some help with trimming unwanted line autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13644725#M277</link>
      <description>&lt;P&gt;&lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;thanks&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 14:05:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13644725#M277</guid>
      <dc:creator>hamidusman230</dc:creator>
      <dc:date>2025-05-22T14:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: i need some help with trimming unwanted line autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13645130#M279</link>
      <description>&lt;P&gt;thank for your reply. yeah, i think the lisp should ask user to choose the first arc/line to remove/keep, then the rest should be exercuted automatically clockwise/counter clockwise. in the rare case, the corner of the shape sit right on the arc (actually i haven't met this situtation before) then the lisp might not working as expected but i will fix it in the easy way: auto-trim 2 half of the drawing (first one with red line removed, second one with red line kept), join all line to make closed polyline then replace all open polyline with closed polyline from the other half&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 17:45:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13645130#M279</guid>
      <dc:creator>chelseabun</dc:creator>
      <dc:date>2025-05-22T17:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: i need some help with trimming unwanted line autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13645163#M280</link>
      <description>&lt;P&gt;i did as you said and the result is really good althought it still needed to fix manually&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chelseabun_2-1747936880122.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1536279i46B730857521B8BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chelseabun_2-1747936880122.png" alt="chelseabun_2-1747936880122.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>Thu, 22 May 2025 18:02:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13645163#M280</guid>
      <dc:creator>chelseabun</dc:creator>
      <dc:date>2025-05-22T18:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: i need some help with trimming unwanted line autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13645627#M281</link>
      <description>&lt;P&gt;Closing the plines for the rectang shape seems to work but the circle shape causes problems. Run the code and have a look pretty obvious where it goes wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:clpl ( / ss x obj)
(setq ss (ssget '((0 . "LWPOLYLINE"))))
(repeat (setq x (sslength ss))
(setq obj (vlax-ename-&amp;gt;vla-object (ssname ss (setq x (1- x)))))
(if (= (vlax-get obj 'closed) 0)
(vlax-put obj 'closed 1)
)
)
(princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 01:38:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13645627#M281</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-05-23T01:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: i need some help with trimming unwanted line autolisp</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13648591#M282</link>
      <description>&lt;P&gt;thank you for the lisp. this lisp works like a charm &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 May 2025 18:33:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-need-some-help-with-trimming-unwanted-line-autolisp/m-p/13648591#M282</guid>
      <dc:creator>chelseabun</dc:creator>
      <dc:date>2025-05-25T18:33:42Z</dc:date>
    </item>
  </channel>
</rss>

