<?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: Extrim is not working properly! in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12473592#M19910</link>
    <description>&lt;P&gt;&lt;SPAN&gt;2-Always trims "Inside". (Doesn't ask for the second click)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try this for shapes where a centre point is inside note a "U" or "L" shape may not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(setq ptc (osnap (vlax-curve-getStartPoint obj) "gcen"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2024 07:24:27 GMT</pubDate>
    <dc:creator>Sea-Haven</dc:creator>
    <dc:date>2024-01-03T07:24:27Z</dc:date>
    <item>
      <title>Extrim is not working properly!</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12469967#M19902</link>
      <description>&lt;P&gt;I need to use EXTRIM alot but I've discovered that this command sets an imaginary offset for trimming so it doesn't work all the time. Most surprisingly it would work for some other polylines in the same drawing.&lt;/P&gt;&lt;P&gt;I'm confused !&lt;/P&gt;&lt;P&gt;Here I have attached an example. here it works for the green polylines and doesn't work for the red one!&lt;/P&gt;&lt;P&gt;How can I solve this problem? Is there a macro to replace EXTRIM?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just found out that there is a EXTRIM.lsp file in&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\Program Files\Autodesk\AutoCAD 2021\Express&lt;/P&gt;&lt;P&gt;Maybe editing this file can make that imaginary offset disappear or smaller! But I don't know anything about LISP!&lt;/P&gt;</description>
      <pubDate>Sun, 31 Dec 2023 20:24:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12469967#M19902</guid>
      <dc:creator>abbas.baghernezhad</dc:creator>
      <dc:date>2023-12-31T20:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Extrim is not working properly!</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12470134#M19903</link>
      <description>&lt;P&gt;I tried your example and I don't see any failure. Perhaps you can post a screenshot or better yet a video of how you are using EXTRIM. Use &lt;A href="https://www.screentogif.com/downloads" target="_blank" rel="noopener"&gt;ScreenToGif&lt;/A&gt; to create a video.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jan 2024 00:25:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12470134#M19903</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2024-01-01T00:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Extrim is not working properly!</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12470300#M19904</link>
      <description>&lt;P&gt;I also tested the file on my computer at work with the same version of AutoCAD. I got different results. My computer at home needed the polylines to be more overlapped.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abbasbaghernezhad_0-1704084236280.jpeg" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1309210i9BBC737700DA89A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abbasbaghernezhad_0-1704084236280.jpeg" alt="abbasbaghernezhad_0-1704084236280.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jan 2024 04:44:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12470300#M19904</guid>
      <dc:creator>abbas.baghernezhad</dc:creator>
      <dc:date>2024-01-01T04:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Extrim is not working properly!</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12471087#M19905</link>
      <description>&lt;P&gt;The jpg helped. I was able to reproduce the problem. If you move the red pline down towards the center of the green pline, then the trim operation works. I briefly examined extrim.lsp, and there might be a limitation with it. However, I haven't worked with lisp in many years and so it would take me longer to see what the limitation is and if there is a solution. I will move this to the lisp forum to see if someone over there can help you. Keep in mind that this is supplied by Autodesk. So if you make any modifications to extrim.lsp, then you have to be careful that updates to the program don't overwrite your changes. Keep a backup.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jan 2024 21:26:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12471087#M19905</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2024-01-01T21:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Extrim is not working properly!</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12471188#M19906</link>
      <description>&lt;P&gt;Inside Extrim.lsp is the function call (ETRIM you can use that directly rather than using the Extrim command, you just (load "Extrim") first have a look for it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This example uses a pline then the (getvar 'Extmax) to pick a point at extremes of the dwg. Ps plus a little bit more.&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;(load "Extrim")
(etrim (entlast) pmax)&lt;/LI-CODE&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>Mon, 01 Jan 2024 23:27:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12471188#M19906</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-01-01T23:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Extrim is not working properly!</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12471498#M19907</link>
      <description>&lt;P&gt;Thank You.&lt;/P&gt;&lt;P&gt;I opened the EXTRIM.lsp and I searched for &lt;SPAN&gt;ETRIM&amp;nbsp;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;I'm very new to lisp. SO as I realized I need to load EXTRIM first. (Isn't it already loaded? I don't understand how to do it.)&lt;/P&gt;&lt;P&gt;Then with&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(etrim (entlast) pmax)&lt;/LI-CODE&gt;&lt;P&gt;I make some modification to the EXTRIM command, right?&lt;BR /&gt;I don't know how to do this either.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please explain more ! I need it.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 05:35:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12471498#M19907</guid>
      <dc:creator>abbas.baghernezhad</dc:creator>
      <dc:date>2024-01-02T05:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Extrim is not working properly!</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12473120#M19908</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(If (not etrim)(load "Extrim"))
(setq ent (car (entsel "\nPick green pline ")))
(setq maxpt (getvar 'extmax))
(setq maxpt (mapcar '+ maxpt (list 1.0 1.0 0.0)))
(etrim ent maxpt)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 02 Jan 2024 22:36:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12473120#M19908</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-01-02T22:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Extrim is not working properly!</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12473431#M19909</link>
      <description>&lt;P&gt;Thank You.&lt;/P&gt;&lt;P&gt;The problem was with the The Red polyline!&amp;nbsp;I need to edit my extrim.lsp some how that:&lt;/P&gt;&lt;P&gt;1- it doesn't ask for selecting entities. (doing the job&amp;nbsp; in a VBA for-next&amp;nbsp; loop.)&lt;/P&gt;&lt;P&gt;2-Always trims "Inside". (Doesn't ask for the second click)&lt;/P&gt;&lt;P&gt;3-It contains the modification you wrote.&lt;/P&gt;&lt;P&gt;So I could use it in my macro and save a lot of time. That would be very nice!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 04:28:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12473431#M19909</guid>
      <dc:creator>abbas.baghernezhad</dc:creator>
      <dc:date>2024-01-03T04:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Extrim is not working properly!</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12473592#M19910</link>
      <description>&lt;P&gt;&lt;SPAN&gt;2-Always trims "Inside". (Doesn't ask for the second click)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try this for shapes where a centre point is inside note a "U" or "L" shape may not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(setq ptc (osnap (vlax-curve-getStartPoint obj) "gcen"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 07:24:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12473592#M19910</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-01-03T07:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Extrim is not working properly!</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12473848#M19911</link>
      <description>&lt;P&gt;We can offset inside the polyline and pick a Vertex. This works! no matter the polyline is convex or not. But I can't use this in VBA because we are using SendCommand and this way we can't use variables for vertex coordinates.&lt;/P&gt;&lt;P&gt;Can we do this in LISP?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 10:35:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12473848#M19911</guid>
      <dc:creator>abbas.baghernezhad</dc:creator>
      <dc:date>2024-01-03T10:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Extrim is not working properly!</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12475493#M19912</link>
      <description>&lt;P&gt;VBA can call a lisp and likewise a lisp can call a VBA. So use the Etrim as above.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 00:19:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12475493#M19912</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-01-04T00:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Extrim is not working properly!</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12553352#M19913</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;It took me a while to learn more about lisp commands... still learning.&lt;/P&gt;&lt;P&gt;I hope these line can solve my problem but i need to use extrim in reverse. I want to remove everything that is "Inside" my polylines!&lt;/P&gt;&lt;P&gt;The strange thing is that "extrim" works fine for green polyline but it does not for the red one. I can't trim everything inside the red one!&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2024 08:18:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/extrim-is-not-working-properly/m-p/12553352#M19913</guid>
      <dc:creator>abbas.baghernezhad</dc:creator>
      <dc:date>2024-02-11T08:18:25Z</dc:date>
    </item>
  </channel>
</rss>

