<?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: Need routine to clean drawings in Civil 3D Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7488520#M166529</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5248939"&gt;@loftpc&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see that you are visiting as a new member to the AutoCAD Civil 3D forum.&amp;nbsp;&lt;SPAN style="color: #008000;"&gt;&lt;STRONG&gt;Welcome to the Autodesk Community!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wendell&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2017 22:50:40 GMT</pubDate>
    <dc:creator>BushW</dc:creator>
    <dc:date>2017-10-24T22:50:40Z</dc:date>
    <item>
      <title>Need routine to clean drawings</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7487101#M166524</link>
      <description>&lt;P&gt;I am looking for some help in creating a lisp routine to clean up a large number of individual drawings. I am trying to create a circle "c" of 30 from a specific point, then trim "tr" any tangent/arc if it is outside of the circle (select line or arc if it is outside) , then erase the circle when done. This would save a number keystrokes over the hundreds of drawings to be cleaned up. Thanks in advance for the help!&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/4915237"&gt;@BushW&lt;/a&gt;&amp;nbsp;has edited your subject line for clarity:&amp;nbsp;circle/trim lisp routine&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 22:45:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7487101#M166524</guid>
      <dc:creator>loftpc</dc:creator>
      <dc:date>2017-10-24T22:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need routine to clean drawings</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7487828#M166525</link>
      <description>&lt;P&gt;I'd imagine that the LISP routine would be pretty easy. But I dunno how to do that. I wanted to say, though, that 1.) I've had good luck with posting things like this on the LISP forum: &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130" target="_blank"&gt;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...And 2.) This may not be a viable option for you, but if I had to do something like this, I'd make a block with a hatched circle or donut of a color that the plot style is at 0 screening and place that circle/donut where you want it, effectively masking the linework.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 22:47:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7487828#M166525</guid>
      <dc:creator>jmartt</dc:creator>
      <dc:date>2017-10-24T22:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need routine to clean drawings</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7487866#M166526</link>
      <description>&lt;P&gt;Sounds like a modified version of EXTRIM (?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wrote an app that did something similar in .NET, but I think stringing a CIRCLE command, pickpoint, and EXTRIM command together might be simpler in LISP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 22:47:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7487866#M166526</guid>
      <dc:creator>odoshi</dc:creator>
      <dc:date>2017-10-24T22:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need routine to clean drawings</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7487962#M166527</link>
      <description>&lt;P&gt;(DEFUN C:COOKIE()&lt;/P&gt;
&lt;P&gt;(SETQ PTCENTER (GETPOINT "CIRCLE CENTER POINT: "))&lt;BR /&gt; (COMMAND "CIRCLE" PTCENTER 30)&lt;BR /&gt; (SETQ CIRC (ENTLAST))&lt;BR /&gt; (if&lt;BR /&gt; (COND&lt;BR /&gt; (ETRIM)&lt;BR /&gt; (T (LOAD "extrim.lsp" "") ETRIM)&lt;BR /&gt; )&lt;BR /&gt; (ETRIM CIRC PTCENTER)&lt;BR /&gt; )&lt;BR /&gt; &lt;BR /&gt; (PRINC)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 22:47:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7487962#M166527</guid>
      <dc:creator>odoshi</dc:creator>
      <dc:date>2017-10-24T22:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need routine to clean drawings</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7488095#M166528</link>
      <description>&lt;P&gt;Extrim not a good routine for this as it goes around the circle looking for lines/arcs to trim .. takes forever. I am a novice and do not know the programming procedures but I believe if I could load the circle "c" command, ask for a pt to draw a 30' radius from, then load the trim "tr" command and be able to trim to the circle it would give me what I'm looking for. Being able to erase the circle after selecting the last line/arc to trim would also be quite useful.&amp;nbsp; Thanks, Chip&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 22:48:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7488095#M166528</guid>
      <dc:creator>loftpc</dc:creator>
      <dc:date>2017-10-24T22:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need routine to clean drawings</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7488520#M166529</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5248939"&gt;@loftpc&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see that you are visiting as a new member to the AutoCAD Civil 3D forum.&amp;nbsp;&lt;SPAN style="color: #008000;"&gt;&lt;STRONG&gt;Welcome to the Autodesk Community!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wendell&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 22:50:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7488520#M166529</guid>
      <dc:creator>BushW</dc:creator>
      <dc:date>2017-10-24T22:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need routine to clean drawings</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7488570#M166530</link>
      <description>&lt;P&gt;I found this a while ago. Won't work with your circle (asks for a polyline). But should get you most of the way there.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;;Required Express tools
;OutSide Contour Delete with Extrim
(defun C:OCD (  / en ss lst ssall bbox)
(vl-load-com)
  (if (and (setq en (car(entsel "\nSelect contour (polyline): ")))
           (wcmatch (cdr(assoc 0 (entget en))) "*POLYLINE"))
    (progn
      (setq bbox (ACET-ENT-GEOMEXTENTS en))
      (setq bbox (mapcar '(lambda(x)(trans x 0 1)) bbox))
      (setq lst (ACET-GEOM-OBJECT-POINT-LIST en 1e-3))
      (ACET-SS-ZOOM-EXTENTS (ACET-LIST-TO-SS (list en)))
      (command "_.Zoom" "0.95x")
      (if (null etrim)(load "extrim.lsp"))
      (etrim en (polar
                  (car bbox)
                  (angle (car bbox)(cadr bbox))
                  (* (distance (car bbox)(cadr bbox)) 1.1)))
      (if (and
            (setq ss (ssget "_CP" lst))
            (setq ssall (ssget "_X" (list (assoc 410 (entget en)))))
           )
        (progn
          (setq lst (vl-remove-if 'listp (mapcar 'cadr (ssnamex ss))))
          (foreach e1 lst (ssdel e1 ssall))
          (ACET-SS-ENTDEL ssall)
          )
        )
      )
    )
  )
(princ "\nType OCD")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~Andy&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 23:25:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7488570#M166530</guid>
      <dc:creator>awkeller88</dc:creator>
      <dc:date>2017-10-24T23:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need routine to clean drawings</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7489823#M166531</link>
      <description>&lt;P&gt;If you need a polyline. Draw a Donut instead of a Circle.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 11:55:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7489823#M166531</guid>
      <dc:creator>AllenJessup</dc:creator>
      <dc:date>2017-10-25T11:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need routine to clean drawings</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7490207#M166532</link>
      <description>&lt;P&gt;Thanks for the suggestions but I'm really just looking to combine circle (with a radius), trim and erase commands into one lsp routine. Drawing a polyline, donut or using extrim is not giving me the solutions I need. Again, thanks for the advice though.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 19:36:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7490207#M166532</guid>
      <dc:creator>loftpc</dc:creator>
      <dc:date>2017-10-26T19:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need routine to clean drawings</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7490290#M166533</link>
      <description>&lt;P&gt;Just curiosity. But. Why wouldn't a Donut work?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 19:36:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7490290#M166533</guid>
      <dc:creator>AllenJessup</dc:creator>
      <dc:date>2017-10-26T19:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need routine to clean drawings</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7490405#M166534</link>
      <description>&lt;P&gt;OK. You asked for help in writing a lisp. Do you need help or do you need someone to write it for you?&lt;/P&gt;
&lt;P&gt;When you say "&lt;SPAN&gt;&amp;nbsp;trim "tr" any tangent/arc if it is outside of the circle" do you mean you want to trim anything that crosses the circle&amp;nbsp;and leave what remains inside the circle? Do you only want to trim lines and arcs or anything that crosses the circle? Do you want to erase anything that is outside the circle but does not cross it?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Basically you're&amp;nbsp;dealing with 2 commands. The Circle command and the Trim command. Bearing in mind that you can erase from within the trim command.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For the Circle command you'll need the center point&amp;nbsp;and radius, which you have already determined.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For the trim command I would select the circle by using Last. I would determine coordinates for a close fence just outside the circle to trim with and then use the eRase option in the Trim command to delete the circle. The easiest way to get coordinates for the fence is to draw it with a polyline and get the coordinates&amp;nbsp;from the verticis.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 19:36:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7490405#M166534</guid>
      <dc:creator>AllenJessup</dc:creator>
      <dc:date>2017-10-26T19:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need routine to clean drawings</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7490473#M166535</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1685"&gt;@AllenJessup&lt;/a&gt;&amp;nbsp;Right on. Just use a 100 sided polygon. Plenty of vertices to pass to a fence list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyways, the&amp;nbsp;Honda Fit is free...the Lam is gonna cost $$.&amp;nbsp;&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://forums.autodesk.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 19:37:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7490473#M166535</guid>
      <dc:creator>odoshi</dc:creator>
      <dc:date>2017-10-26T19:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need routine to clean drawings</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7494151#M166536</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5248939"&gt;@loftpc&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was following up to see if &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/112221"&gt;@odoshi&lt;/a&gt;,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4879213"&gt;@awkeller88&lt;/a&gt;&amp;nbsp;and &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1685"&gt;@AllenJessup&lt;/a&gt;&amp;nbsp;resolve your issue with the great suggestions? If so, please reward the post that worked with an&amp;nbsp;&lt;SPAN style="color: #008000;"&gt;&lt;STRONG&gt;‘Accepted as Solution’&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp;and also mark a post or posts as&amp;nbsp;&lt;STRONG&gt;Accepted Solution&lt;/STRONG&gt;(s) that resolved the issue or answered&amp;nbsp;your&amp;nbsp;question so, other Community members may benefit and thank you for doing so, and I’m here to help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wendell&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 16:31:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7494151#M166536</guid>
      <dc:creator>BushW</dc:creator>
      <dc:date>2017-10-26T16:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need routine to clean drawings</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7494722#M166537</link>
      <description>&lt;P&gt;Reposted a request on the AutoLisp forum and got a solution that worked as needed. Thanks to those that helped! Chip&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>Thu, 26 Oct 2017 19:27:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7494722#M166537</guid>
      <dc:creator>loftpc</dc:creator>
      <dc:date>2017-10-26T19:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need routine to clean drawings</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7494747#M166538</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5248939"&gt;@loftpc&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's great! Can you provide the link that solved your post from the other forum? Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wendell&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 20:17:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7494747#M166538</guid>
      <dc:creator>BushW</dc:creator>
      <dc:date>2017-10-26T20:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need routine to clean drawings</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7494865#M166539</link>
      <description>&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/new-lisp-routine-help/m-p/7491833#M360708" target="_blank"&gt;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/new-lisp-routine-help/m-p/7491833#M360708&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 20:11:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7494865#M166539</guid>
      <dc:creator>AllenJessup</dc:creator>
      <dc:date>2017-10-26T20:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need routine to clean drawings</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7494888#M166540</link>
      <description>&lt;P&gt;Thanks Allen&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 20:18:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/need-routine-to-clean-drawings/m-p/7494888#M166540</guid>
      <dc:creator>BushW</dc:creator>
      <dc:date>2017-10-26T20:18:20Z</dc:date>
    </item>
  </channel>
</rss>

