<?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: Lisp trim in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-trim/m-p/12589387#M17313</link>
    <description>&lt;P&gt;Fixed the ssget was looking for Lines only but you have Plines, breakall keeps object type for Plines, Circles get new arcs.&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="SeaHaven_0-1709162131769.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1331591iCB2A8BAAD6FF83F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1709162131769.png" alt="SeaHaven_0-1709162131769.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Updated code above. Increased max size may need a tweak once used on a few dwg's, added Arc's &amp;amp; Plines.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2024 23:29:41 GMT</pubDate>
    <dc:creator>Sea-Haven</dc:creator>
    <dc:date>2024-02-28T23:29:41Z</dc:date>
    <item>
      <title>Lisp trim</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-trim/m-p/12584493#M17305</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm looking for a lisp for auto trim&amp;nbsp;to trim small gaps between squares&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have attached an example for your understanding.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The distance between the gaps is 0.1mm, the same for all gaps. The distance between the gaps is 0.1 mm, the same for all gaps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 02:22:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-trim/m-p/12584493#M17305</guid>
      <dc:creator>manasi4532</dc:creator>
      <dc:date>2024-02-27T02:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp trim</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-trim/m-p/12584605#M17306</link>
      <description>&lt;P&gt;I think your before and after are the same, I take it the squares are full length horizontal and vertical lines drawn with 0.1 gap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So try this, written for some one else so meets their criteria, just edit to suit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;; Break all beams 
; Breakall by CAB much appreciated

(defun c:Breakbeams ( /  ss ent obj )

(if (not breakall)(load "Breakall"))

;(Break_all ss ss nil)
(c:breakall)
(princ "\n")
(prompt "Select short lengths ")
(setq ss (ssget (list (cons 0 "*LINE,ARC"))))
(repeat (setq x (sslength ss))
(setq obj (vlax-ename-&amp;gt;vla-object (ssname ss (setq x (- x 1)))))
(if (= (vlax-get obj 'Objectname) "AcDbArc")
(setq length (vlax-get obj 'ARCLENGTH))
(setq length (vlax-get obj 'LENGTH))
)
(if (&amp;lt; length 0.15)
(vla-delete obj)
)
)
(command "regen")
(princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks to CAB for break all.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 23:27:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-trim/m-p/12584605#M17306</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-02-28T23:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp trim</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-trim/m-p/12584615#M17307</link>
      <description>&lt;P&gt;Sry&amp;nbsp;I run in Autocad LT2024 the command mannotify it notifies error bad argunent type:lselsetp nil.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 04:14:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-trim/m-p/12584615#M17307</guid>
      <dc:creator>manasi4532</dc:creator>
      <dc:date>2024-02-27T04:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp trim</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-trim/m-p/12586527#M17308</link>
      <description>&lt;P&gt;Please try these steps, just type the code lines 1 at a time to the command line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(load "breakall")&lt;/P&gt;&lt;P&gt;Breakall&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then select all line work, let me know if it works. This should make little 0.1 lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Post a correct before dwg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 21:42:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-trim/m-p/12586527#M17308</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-02-27T21:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp trim</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-trim/m-p/12586547#M17309</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6254908"&gt;@Sea-Haven&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I think your before and after are the same,&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No, they're not:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1709070673000.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1331016i62F6DF8F95959019/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1709070673000.png" alt="Kent1Cooper_0-1709070673000.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The squares are not what they want Trimmed, but the white Polylines, between the closer edges of squares.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13881899"&gt;@manasi4532&lt;/a&gt;&amp;nbsp;, the thing I'm having a hard time imagining how to accomplish is to distinguish the details of the circumstances at all locations so that it gets the "after" result above, rather than this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kent1Cooper_0-1709070959186.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1331022iA4B4FED78FCB6BF2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kent1Cooper_0-1709070959186.png" alt="Kent1Cooper_0-1709070959186.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 21:56:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-trim/m-p/12586547#M17309</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-02-27T21:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp trim</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-trim/m-p/12586630#M17310</link>
      <description>&lt;P&gt;Was looking in wrong spot, thanks Kent. The breakall by CAB will do what is required it will break all lines, the issue is setting the gap length if shallow angles may be reasonably long compared to say 45 which is 1.414 * gap.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After breakall magenta line is created changed color for image, can then get all lines on that layer and delete those less than 0.101&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeaHaven_0-1709073124083.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1331035i6FAE597FA56B6E4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1709073124083.png" alt="SeaHaven_0-1709073124083.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In code above layer should be "0"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 22:33:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-trim/m-p/12586630#M17310</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-02-27T22:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp trim</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-trim/m-p/12586933#M17311</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1709083867535.jpg" style="width: 903px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1331118i3828F368E9921E48/image-size/large?v=v2&amp;amp;px=999" role="button" title="1709083867535.jpg" alt="1709083867535.jpg" /&gt;&lt;/span&gt;Thank you for this help. But it still has some problems.&amp;nbsp;&lt;SPAN&gt;I repeat the command again. It can solve the problem.&lt;/SPAN&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_heart_eyes:"&gt;😍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 03:25:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-trim/m-p/12586933#M17311</guid>
      <dc:creator>manasi4532</dc:creator>
      <dc:date>2024-02-28T03:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp trim</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-trim/m-p/12586938#M17312</link>
      <description>&lt;P&gt;Thank you for this help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 01:54:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-trim/m-p/12586938#M17312</guid>
      <dc:creator>manasi4532</dc:creator>
      <dc:date>2024-02-28T01:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp trim</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-trim/m-p/12589387#M17313</link>
      <description>&lt;P&gt;Fixed the ssget was looking for Lines only but you have Plines, breakall keeps object type for Plines, Circles get new arcs.&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="SeaHaven_0-1709162131769.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1331591iCB2A8BAAD6FF83F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1709162131769.png" alt="SeaHaven_0-1709162131769.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Updated code above. Increased max size may need a tweak once used on a few dwg's, added Arc's &amp;amp; Plines.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 23:29:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-trim/m-p/12589387#M17313</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-02-28T23:29:41Z</dc:date>
    </item>
  </channel>
</rss>

