<?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: Adding perpendicular lines to multiple polylines in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/adding-perpendicular-lines-to-multiple-polylines/m-p/7477260#M206007</link>
    <description>&lt;P&gt;It's done very (very) fast. That is why. And it is worldwide and I'm awake !&lt;/P&gt;
&lt;P&gt;By the way, I slightly modified it so it appears a bit more elegant.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Oct 2017 10:29:42 GMT</pubDate>
    <dc:creator>tramber</dc:creator>
    <dc:date>2017-10-20T10:29:42Z</dc:date>
    <item>
      <title>Adding perpendicular lines to multiple polylines</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/adding-perpendicular-lines-to-multiple-polylines/m-p/7477081#M206004</link>
      <description>&lt;P&gt;I have around 200 lines in my drawing that need&amp;nbsp;2 lines added perpendicular on either side of them. Screenshots attached to explain better what I need to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anyway to make this process faster than just draw line, rotate and copy over to the other side?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 09:24:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/adding-perpendicular-lines-to-multiple-polylines/m-p/7477081#M206004</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-20T09:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding perpendicular lines to multiple polylines</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/adding-perpendicular-lines-to-multiple-polylines/m-p/7477231#M206005</link>
      <description>&lt;P&gt;Done rapidely :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:func( / sel compt ent lg angle12 *osmode*)&lt;BR /&gt;&amp;nbsp;(setq sel(ssget '((0 . "LINE")))&lt;BR /&gt;&amp;nbsp; compt -1&lt;BR /&gt;&amp;nbsp; lg 10. ; Your length&lt;BR /&gt;&amp;nbsp; *osmode*(getvar"osmode"))&lt;BR /&gt;&amp;nbsp;(setvar"osmode"0)&lt;BR /&gt;&amp;nbsp;(repeat(sslength sel)&lt;BR /&gt;&amp;nbsp; (setq ent(ssname sel(setq compt(1+ compt)))&lt;BR /&gt;&amp;nbsp;&amp;nbsp; angle12(angle(cdr(assoc 10(entget ent)))(cdr(assoc 11(entget ent)))))&lt;BR /&gt;&amp;nbsp; (command "_line"&lt;BR /&gt;&amp;nbsp; (polar(cdr(assoc 10(entget ent)))&amp;nbsp;&amp;nbsp; (+(* pi 0.5)angle12)&amp;nbsp;&amp;nbsp; (/ lg 2.))&lt;BR /&gt;&amp;nbsp; (polar(cdr(assoc 10(entget ent)))&amp;nbsp;&amp;nbsp; (+(* pi 1.5)angle12)&amp;nbsp;&amp;nbsp; (/ lg 2.))"")&lt;BR /&gt;&amp;nbsp; (command "_line"&lt;BR /&gt;&amp;nbsp; (polar(cdr(assoc 11(entget ent)))&amp;nbsp;&amp;nbsp; (+(* pi 0.5)angle12)&amp;nbsp;&amp;nbsp; (/ lg 2.))&lt;BR /&gt;&amp;nbsp; (polar(cdr(assoc 11(entget ent)))&amp;nbsp;&amp;nbsp; (+(* pi 1.5)angle12)&amp;nbsp;&amp;nbsp; (/ lg 2.))"")&lt;BR /&gt;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;(setvar"osmode"*osmode*)&lt;BR /&gt;&amp;nbsp;(princ(strcat"\n"(itoa(1+ compt))" objects"))&lt;BR /&gt;&amp;nbsp;(princ)&lt;BR /&gt;&amp;nbsp;)&lt;/PRE&gt;
&lt;P&gt;Don't forget to put your length instead of 10.&lt;/P&gt;
&lt;P&gt;Laod it in a lisp file and enter FUNC to run it.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 10:22:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/adding-perpendicular-lines-to-multiple-polylines/m-p/7477231#M206005</guid>
      <dc:creator>tramber</dc:creator>
      <dc:date>2017-10-20T10:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding perpendicular lines to multiple polylines</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/adding-perpendicular-lines-to-multiple-polylines/m-p/7477244#M206006</link>
      <description>&lt;P&gt;Exactly what was looking for!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This community amazes me sometimes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 10:23:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/adding-perpendicular-lines-to-multiple-polylines/m-p/7477244#M206006</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-20T10:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Adding perpendicular lines to multiple polylines</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/adding-perpendicular-lines-to-multiple-polylines/m-p/7477260#M206007</link>
      <description>&lt;P&gt;It's done very (very) fast. That is why. And it is worldwide and I'm awake !&lt;/P&gt;
&lt;P&gt;By the way, I slightly modified it so it appears a bit more elegant.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 10:29:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/adding-perpendicular-lines-to-multiple-polylines/m-p/7477260#M206007</guid>
      <dc:creator>tramber</dc:creator>
      <dc:date>2017-10-20T10:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Adding perpendicular lines to multiple polylines</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/adding-perpendicular-lines-to-multiple-polylines/m-p/7477501#M206008</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/62037"&gt;@tramber&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;....&lt;BR /&gt;&amp;nbsp; (setq ent(ssname sel(setq compt(1+ compt)))&lt;BR /&gt;&amp;nbsp;&amp;nbsp; angle12(angle(cdr(assoc &lt;STRONG&gt;10&lt;/STRONG&gt;(entget ent)))(cdr(assoc &lt;STRONG&gt;11&lt;/STRONG&gt;(entget ent)))))&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That will work to put them on the ends of &lt;EM&gt;Lines&lt;/EM&gt;, but &lt;EM&gt;not&amp;nbsp;Polylines&lt;/EM&gt;&amp;nbsp; as in the Subject line.&amp;nbsp; If this is the solution, then the Subject line is mis-worded.&amp;nbsp; Whether or not&amp;nbsp;the OP really needs it only for Lines, I wouldn't want others looking for one to do it on Polylines to think that this is going to work.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 11:55:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/adding-perpendicular-lines-to-multiple-polylines/m-p/7477501#M206008</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2017-10-20T11:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adding perpendicular lines to multiple polylines</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/adding-perpendicular-lines-to-multiple-polylines/m-p/7478418#M206009</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; wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/62037"&gt;@tramber&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;....&lt;BR /&gt;&amp;nbsp;&amp;nbsp; angle12(angle(cdr(assoc &lt;STRONG&gt;10&lt;/STRONG&gt;(entget ent)))(cdr(assoc &lt;STRONG&gt;11&lt;/STRONG&gt;(entget ent)))))&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That will work to put them on the ends of &lt;EM&gt;Lines&lt;/EM&gt;, but &lt;EM&gt;not&amp;nbsp;Polylines&lt;/EM&gt;&amp;nbsp; as in the Subject line.&amp;nbsp; If this is the solution, then the Subject line is mis-worded.&amp;nbsp; Whether or not&amp;nbsp;the OP really needs it only for Lines, I wouldn't want others looking for one to do it on Polylines to think that this is going to work.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you want something that &lt;EM&gt;will&lt;/EM&gt;&amp;nbsp; work on Polylines, as well as Lines, Arcs, open-ended Splines or Ellipses, even &lt;EM&gt;closed&lt;/EM&gt;&amp;nbsp; Polylines/Splines/Ellipses &amp;amp; Circles [though in&amp;nbsp;such cases it will put&amp;nbsp;&lt;EM&gt;one&lt;/EM&gt;&amp;nbsp; marker at the location that is both "ends" of a closed object], you can use the &lt;STRONG&gt;DIV+&lt;/STRONG&gt; command in &lt;STRONG&gt;DivideMeasurePlus.lsp&lt;/STRONG&gt;, available &lt;A href="http://cadtips.cadalyst.com/2d-operations/divide-and-measure-plus" target="_blank"&gt;here&lt;/A&gt;.&amp;nbsp; It has an option to mark the division points with Lines [one of two options beyond just Points or Blocks as in regular DIVIDE], for which you specify the length.&amp;nbsp; When it asks how many segments to divide into, say &lt;STRONG&gt;1&lt;/STRONG&gt; [regular DIVIDE doesn't allow that], and when it asks whether to put them at the &lt;EM&gt;ends&lt;/EM&gt;&amp;nbsp; [regular DIVIDE doesn't have that option], say &lt;STRONG&gt;Yes&lt;/STRONG&gt;.&amp;nbsp; Accept the defaults for everything else except if you want to specify a Layer other than the default current one.&amp;nbsp; Then go around and pick things of any of those types, and it will mark their ends with Lines, centered on and perpendicular to the end points.&amp;nbsp; It remembers all your choices and offers them as defaults on subsequent use.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 15:57:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/adding-perpendicular-lines-to-multiple-polylines/m-p/7478418#M206009</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2017-10-20T15:57:31Z</dc:date>
    </item>
  </channel>
</rss>

