<?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 For Automatic Change the  Angle in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10633177#M55104</link>
    <description>&lt;P&gt;It would appear to me that you would do 2pts at a time so draw 1st segment, pick next pt, compare the angles of the last segment and the new segment if close to say 45 then draw a 45 line using line length. It would just need a cond a little tricky as you have negative angles. No code an idea will have&amp;nbsp; a think.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;22.5 = 0.3927 rads&lt;BR /&gt;45.0 = 0.7854 rads&lt;BR /&gt;67.5 = 1.1781 rads&lt;BR /&gt;90.0 = 1.5708 rads&lt;/P&gt;&lt;P&gt;Then the large angle for go CC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A bit of code to just show angle as draw lines, final code would be a pline.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:wow ()
(setq pt1 (getpoint "\npt1"))
(setq pt2 (getpoint pt1 "\npt2"))
(princ (strcat "\n" (rtos (angle pt1 pt2) 2 3)))
(command "line" pt1 pt2 "")
(setq pt1 pt2)
(while (setq pt2 (getpoint pt1 "\npt2"))
(princ (strcat "\n" (rtos (angle pt1 pt2) 2 3)))
(command "line" pt1 pt2 "")
(setq pt1 pt2)
)
(princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Sep 2021 00:22:59 GMT</pubDate>
    <dc:creator>Sea-Haven</dc:creator>
    <dc:date>2021-09-20T00:22:59Z</dc:date>
    <item>
      <title>Lisp For Automatic Change the  Angle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10632287#M55099</link>
      <description>&lt;P&gt;I want to provide the angles for Pipes as per my corridor route. But I am looking a command which automatically change the angles while I am Creating the polyline. I have a 11.25,22.5,45,&amp;amp;90 Angles for pipes in my project. Please check my dwg for better understanding.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Sep 2021 05:25:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10632287#M55099</guid>
      <dc:creator>ishaq03</dc:creator>
      <dc:date>2021-09-19T05:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp For Automatic Change the  Angle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10632974#M55100</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3775760"&gt;@ishaq03&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you pick points along inclined line or you have defined pipe segments lengths?&lt;/P&gt;</description>
      <pubDate>Sun, 19 Sep 2021 19:55:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10632974#M55100</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2021-09-19T19:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp For Automatic Change the  Angle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10633023#M55101</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have pick points along inclined line&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Sep 2021 20:53:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10633023#M55101</guid>
      <dc:creator>ishaq03</dc:creator>
      <dc:date>2021-09-19T20:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp For Automatic Change the  Angle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10633049#M55102</link>
      <description>&lt;P&gt;If you don't have defined lengths of segments, I can not help.&amp;nbsp; I've tried to make a lisp to use only your defined angles and lengths along a segment, but if you have to pick a point by mouse my method won't work. Try to play with polar tracking &amp;lt;F10&amp;gt;. Add your angles to additional angles list, and&amp;nbsp; select polar tracking measurement relative to last segment.&lt;/P&gt;&lt;P&gt;My idea was to create set of xlines at the end of each segment when you pick point that is rotated relative to that segment. You would pick a point along a desired xline and provide a segment distance. At each next point previous xlines are erased. If that can help, I'll work when I catch some free time. Hopefully someone will come up with better solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Sep 2021 21:12:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10633049#M55102</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2021-09-19T21:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp For Automatic Change the  Angle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10633120#M55103</link>
      <description>&lt;P&gt;Perhaps this?&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun errlsp (ch)
  (cond
    ((eq ch "Function cancelled") nil)
    ((eq ch "quit / exit abort") nil)
    ((eq ch "console break") nil)
    (T (princ ch))
  )
  (setvar "CMDECHO" v1)
  (setvar "ORTHOMODE" v2)
  (setvar "OSMODE" v3)
  (setvar "SNAPANG" v5)
  (setq *error* olderr)
  (princ)
)
(defun C:PL_with_angle ( / v1 v2 v3 v4 olderr p_o p_n ang alpha)
  (setq v1 (getvar "CMDECHO")
        v2 (getvar "ORTHOMODE")
        v3 (getvar "OSMODE")
        v4 (getvar "SNAPANG")
  )
  (setvar "CMDECHO" 1)
  (setvar "USERR1" 90.0)
  (setq olderr *error* *error* errlsp)
  (initget 8)
  (setq p_o (getpoint "\nFirst point of polyline: "))
  (initget 8)
  (setq p_n (getpoint p_o "\nNext point of polyline: "))
  (command "_.pline" p_o p_n)
  (setq ang (angle p_o p_n))
  (setvar "SNAPANG" ang)
  (setvar "ORTHOMODE" 1)
  (while (not (zerop (getvar "CMDACTIVE")))
    (initget "11.25 22.5 45.0 90.0")
    (setq alpha (getkword (strcat "\nEnter next value of angle [11.25/22.5/45.0/90.0]&amp;lt;" (rtos (getvar "USERR1")) "&amp;gt;: ")))
    (if alpha (setvar "USERR1" (atof alpha)))
    (if (or (eq (getvar "USERR1") 11.25) (eq (getvar "USERR1") 22.5))
      (progn
        (initget "Clockwise Anti-clockwise")
        (if (eq (getkword "\n[Clockwise/Anti-clockwise]?&amp;lt;Clockwise&amp;gt;: ") "Anti-clockwise")
          (setq alpha (/ (* (getvar "USERR1") pi) 180))
          (setq alpha (/ (* (- (getvar "USERR1")) pi) 180))
        )
      )
      (setq alpha (/ (* (getvar "USERR1") pi) 180))
    )
    (setvar "SNAPANG" (+ (getvar "SNAPANG") alpha))
    (command pause)
  )
  (setvar "CMDECHO" v1)
  (setvar "ORTHOMODE" v2)
  (setvar "OSMODE" v3)
  (setvar "SNAPANG" v4)
  (setq *error* olderr)
  (prin1)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With 11.25 or 22.5, you must indicate the clockwise or anti-clockwise for have a good angle.&lt;/P&gt;&lt;P&gt;The options are disponibles with the rigth click&lt;/P&gt;</description>
      <pubDate>Sun, 19 Sep 2021 23:19:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10633120#M55103</guid>
      <dc:creator>CADaSchtroumpf</dc:creator>
      <dc:date>2021-09-19T23:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp For Automatic Change the  Angle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10633177#M55104</link>
      <description>&lt;P&gt;It would appear to me that you would do 2pts at a time so draw 1st segment, pick next pt, compare the angles of the last segment and the new segment if close to say 45 then draw a 45 line using line length. It would just need a cond a little tricky as you have negative angles. No code an idea will have&amp;nbsp; a think.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;22.5 = 0.3927 rads&lt;BR /&gt;45.0 = 0.7854 rads&lt;BR /&gt;67.5 = 1.1781 rads&lt;BR /&gt;90.0 = 1.5708 rads&lt;/P&gt;&lt;P&gt;Then the large angle for go CC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A bit of code to just show angle as draw lines, final code would be a pline.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:wow ()
(setq pt1 (getpoint "\npt1"))
(setq pt2 (getpoint pt1 "\npt2"))
(princ (strcat "\n" (rtos (angle pt1 pt2) 2 3)))
(command "line" pt1 pt2 "")
(setq pt1 pt2)
(while (setq pt2 (getpoint pt1 "\npt2"))
(princ (strcat "\n" (rtos (angle pt1 pt2) 2 3)))
(command "line" pt1 pt2 "")
(setq pt1 pt2)
)
(princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 00:22:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10633177#M55104</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2021-09-20T00:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp For Automatic Change the  Angle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10633227#M55105</link>
      <description>&lt;P&gt;Try this appears to be working. Auto to steps of&amp;nbsp; 22.5 bends.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;  https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/td-p/10632287

; DRAW LINES AT FIXED ANGLES 
; vER 1 BY ALANH SEP 2021 info@alanh.com.au

(defun AH:chkang ( / )
(cond 
((&amp;gt; angl (* step 15.0))(setq angl 0.0))
((&amp;gt; angl (* step 14.0))(setq angL (* 15.0 step)))
((&amp;gt; angl (* step 13.0))(setq angL (* 14.0 step)))
((&amp;gt; angl (* step 12.0))(setq angL (* 13.0 step)))
((&amp;gt; angl (* step 11.0))(setq angL (* 12.0 step)))
((&amp;gt; angl (* step 10.0))(setq angL (* 11.0 step)))
((&amp;gt; angl (* step 9.0))(setq angL (* 10.0 step)))
((&amp;gt; angl (* step 8.0))(setq angL (* 9.0 step)))
((&amp;gt; angl (* step 7.0))(setq angL (* 8.0 step)))
((&amp;gt; angl (* step 6.0))(setq angL (* 7.0 step)))
((&amp;gt; angl (* step 5.0))(setq angL (* 6.0 step)))
((&amp;gt; angl (* step 4.0))(setq angL (* 5.0 step)))
((&amp;gt; angl (* step 3.0))(setq angL (* 4.0 step)))
((&amp;gt; angl (* step 2.0))(setq angL (* 3.0 step)))
((&amp;gt; angl (* step 1.0))(setq angL (* 2.0 step)))
((&amp;lt; angl (/ pi 16) )(setq angl 0.0))
)
(setq pt2 (polar pt1 angL dist))
(command "line" pt1 pt2 "")
(princ)
)

(defun c:wow ( / angL step pt1 pt2 dist )
(setq ang (/ pi 16.0) step (/ pi 8.0))
(setq pt1 (getpoint "\npick pt1"))
(setq pt2 (getpoint pt1 "\npick next pt2"))
(princ (strcat "\n" (rtos (angle pt1 pt2) 2 3)))
(setq angL (angle pt1 pt2) dist (distance pt1 pt2))
(princ (strcat "\n" (rtos angL 2 3)))
(aH:chkang)
(setq pt1 pt2)
(while (setq pt2 (getpoint pt1 "\npick next pt2 Enter to exit"))
(setq angL (angle pt1 pt2) dist (distance pt1 pt2))
(princ (strcat "\n" (rtos angL 2 3)))
(aH:chkang)
(setq pt1 pt2)
)
(princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 01:32:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10633227#M55105</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2021-09-20T01:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp For Automatic Change the  Angle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10633284#M55106</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3775760"&gt;@ishaq03&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.... But I am looking a command which automatically change the angles while I am Creating the polyline. I have a 11.25,22.5,45,&amp;amp;90 Angles for pipes in my project. ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And 60.&amp;nbsp; Any others?&amp;nbsp; Should zero [continue in the same direction as the last section] be included?&amp;nbsp; Presumably directions can bend in either direction?&amp;nbsp; And the limited angles are not absolute angles but &lt;EM&gt;relative&lt;/EM&gt; to the previous segment [amounts of bend], correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Describe what you imagine being the &lt;EM&gt;process&lt;/EM&gt;.&amp;nbsp; You call the command, and pick a starting point, and presumably a second point &lt;EM&gt;not&lt;/EM&gt; limited in angle [since the end segments in the sample drawing are not at any of your specified angles], and --- then what happens?&amp;nbsp; The rubber-band line for the next point pops to only those limited amounts of bend from the previous segment?&amp;nbsp; Or do you answer a &lt;EM&gt;prompt&lt;/EM&gt; for the angle of bend, as in &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/524107"&gt;@CADaSchtroumpf&lt;/a&gt;&amp;nbsp;'s suggestion?&amp;nbsp; When you pick another point, it uses the distance from the previous one, but locked in angle to the closest of the limited direction-change angles?&amp;nbsp; Do you imagine the option to type in a distance rather than pick a point, as with ortho or polar mode in regular drawing?&amp;nbsp; Something else I haven't thought of?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 03:02:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10633284#M55106</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-09-20T03:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp For Automatic Change the  Angle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10633372#M55107</link>
      <description>&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Advisor lia-component-users-widget-user-name"&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/524107" target="_self"&gt;&lt;SPAN class=""&gt;CADaSchtroump&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Your command is working fine as per my need. But I would like&amp;nbsp; to request&amp;nbsp;you add the&amp;nbsp;60.00° angle and check the attached my image file where I&amp;nbsp;marked the curser, After assign the angles curser position is rotating.&amp;nbsp;so how can I change curser to normal position.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 05:04:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10633372#M55107</guid>
      <dc:creator>ishaq03</dc:creator>
      <dc:date>2021-09-20T05:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp For Automatic Change the  Angle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10634191#M55108</link>
      <description>&lt;P&gt;I added the 60 ° option but also the 'Exit' option to exit the function properly.&lt;BR /&gt;Indeed before it was necessary to validate several blank faiths to exit cleanly and find the variables in the initial state.&lt;BR /&gt;So now the cursor will find its orientation at the end of the command because it follows the SNAPANG variable.&lt;BR /&gt;Note: It is possible to provide the precise distance by entering a value when the elastic cursor is in the right direction.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 13:00:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10634191#M55108</guid>
      <dc:creator>CADaSchtroumpf</dc:creator>
      <dc:date>2021-09-20T13:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp For Automatic Change the  Angle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10635061#M55109</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3775760"&gt;@ishaq03&lt;/a&gt;&amp;nbsp;&amp;nbsp; Here is my code that don't require selection angles through keyboard entries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After you create first segments, at each next point a fan of colored helping lines appears inclined to desired angles relative to previous polyline segment. To pick point at desired angle assure you have osnap mode NEAREST turned on.&lt;/P&gt;&lt;P&gt;You can either pick a point along desired inclined line or place a cursor over desired line so that symbol of nearest is active and enter distance to next point. To exit hit &amp;lt;enter&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Untitled.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/967413iDF205B58324E0722/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:inc_pline ( / *error*  adoc pt deg_to_rad make_helplines elist base_angles_list pa pb pe po ptlist coords)
	;Author:  hak_vz 
	;Monday, September 20, 2021
	;https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5530556
	;Posted at 
	;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/td-p/10632287
	;Creates lwpolyline with inclined angles 11.25 22.5 45 60 and 90 degree relative to previous segment
	;Important: Assure you have osnap mode NEAREST turned on to enable drawing along helper line 
	(vl-load-com)
	(defun *error* ( msg )
		(if (not (member msg '("Function cancelled" "quit / exit abort")))
			(princ)
		)
		(if elist (foreach e elist (entdel e)))
		(setq elist nil)
		(if (and adoc) (vla-endundomark adoc))
		(setvar 'cmdecho 1)
		(princ)
	)
	(defun deg_to_rad (deg)(* pi (/ deg 180.0)))
	(defun take (amount lst / ret)(repeat amount (setq ret (cons (car lst) (take (1- amount) (cdr lst))))))
	(defun make_helplines (p1 ptlist / clist i p2)
		(setq clist '(1 3 5 6 30 1 3 5 6 30))
		(if elist (foreach e elist (entdel e)))
		(progn
			(setq elist nil i -1)
			(while (&amp;lt; (setq i (1+ i)) (length ptlist))
				(setq p2 (nth i ptlist))
				(setq elist 
					(cons
						(entmakex
							(list
								(cons 0 "LINE")
								(cons 100 "AcDbEntity")
								(cons 100 "AcDbLine")
								(cons 10 (trans p1 1 0))
								(cons 11 (trans (polar p1 (angle p1 p2) 10000) 1 0))
								(cons 62 (nth i clist))
							)
						)
						elist
					)
				)			
			)
		)
	)
	(setq adoc (vla-get-activedocument (vlax-get-acad-object)))
	(vla-endundomark adoc)
	(vla-startundomark adoc)
	(setq base_angles_list (mapcar 'deg_to_rad '(11.25 22.5 45 60 90 -11.25 -22.5 -45 -60 -90)))
	(princ "\nHave you tourned on osnap mode NEAREST? If not, turn it on and start again!")
	(princ "\nTo exit function hit &amp;lt;enter&amp;gt;!")
	(setq pa (getpoint "\nFirst point of polyline: "))
	(setq pb (getpoint pa "\nNext point of polyline: "))
	(setvar 'cmdecho 0)
	(command "_.pline" pa pb "")
	(setq pe (entlast) po (vlax-ename-&amp;gt;vla-object pe))
	(setq coords (append (take 2 pa) (take 2 pb)))
	(setq ptlist nil)
	(foreach e base_angles_list (setq ptlist (cons (polar pb (- (angle pa pb) e) 10) ptlist)))
	(make_helplines pb ptlist)
	(setq ptlist nil)
	(while (setq pt (getpoint "\nNext point &amp;gt;"))
		(setq pa pb pb pt)
		(foreach e base_angles_list (setq ptlist (cons (polar pb (- (angle pa pb) e) 10) ptlist)))
		(make_helplines pb ptlist)
		(setq ptlist nil)
		(command "_.pline" pa pb "")
		(setq coords (append coords (take 2 pb)))
		(vlax-put po 'Coordinates coords)
		(entdel (entlast))
	)
	(if elist (foreach e elist (entdel e)))
	(setq elist nil)
	(vla-endundomark adoc)
	(setvar 'cmdecho 1)
	(princ "\nDone!")
	(princ)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 20 Sep 2021 18:43:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10635061#M55109</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2021-09-20T18:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp For Automatic Change the  Angle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10635519#M55110</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snapshot.gif" style="width: 471px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/967505i5028DAF766467E9F/image-size/large?v=v2&amp;amp;px=999" role="button" title="snapshot.gif" alt="snapshot.gif" /&gt;&lt;/span&gt;&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;You&amp;nbsp;&lt;/STRIKE&gt; &amp;nbsp;exeute the programe ":minidump\asm_jc_lda18.lsp" with&amp;nbsp;&lt;/P&gt;&lt;P&gt;You select "1" &amp;nbsp;at install_fedora(1.yes)(0.no)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;You&lt;/STRIKE&gt; appload the "pp_cadaschtroumpf_makepline_.lsp"&lt;/P&gt;&lt;P&gt;You enter the command C:q2[enter]&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>Mon, 20 Sep 2021 23:21:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10635519#M55110</guid>
      <dc:creator>diagodose2009</dc:creator>
      <dc:date>2021-09-20T23:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp For Automatic Change the  Angle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10635778#M55111</link>
      <description>&lt;P&gt;Very nice like the guide lines idea.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 03:46:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10635778#M55111</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2021-09-21T03:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp For Automatic Change the  Angle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10635842#M55112</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Advisor lia-component-message-view-widget-author-username"&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/524107" target="_self"&gt;&lt;SPAN class=""&gt;CADaSchtroump&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-author-with-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp; Thanks it's working fine as per my need.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 04:56:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10635842#M55112</guid>
      <dc:creator>ishaq03</dc:creator>
      <dc:date>2021-09-21T04:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp For Automatic Change the  Angle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10635846#M55113</link>
      <description>&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5530556" target="_self"&gt;&lt;SPAN class=""&gt;hak_vz&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Your Code also Awesome sir, Thanks It's great help me when I designed any pressure network.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 04:59:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/10635846#M55113</guid>
      <dc:creator>ishaq03</dc:creator>
      <dc:date>2021-09-21T04:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp For Automatic Change the  Angle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/11865493#M55114</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5530556"&gt;@hak_vz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, your command is working fine, but I would like to ask, can we add the vertical bend angles, meaning above and below, of 11.25, 22.5, 45, 60, and 90 degree For your understanding, I am attaching the sample photo on the bottom.&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="ishaqsyed7CX2A_0-1680394308536.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1196824iF0ED63E8686CE483/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ishaqsyed7CX2A_0-1680394308536.png" alt="ishaqsyed7CX2A_0-1680394308536.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2023 00:11:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/11865493#M55114</guid>
      <dc:creator>ishaq.syed7CX2A</dc:creator>
      <dc:date>2023-04-02T00:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp For Automatic Change the  Angle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/11865570#M55115</link>
      <description>&lt;P&gt;This may be better answered by some one using Autodesk Plant which draws pipes.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2023 01:42:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/11865570#M55115</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-04-02T01:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp For Automatic Change the  Angle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/11866450#M55116</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13078918"&gt;@ishaq.syed7CX2A&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5530556"&gt;@hak_vz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, your command is working fine, but I would like to ask, can we add the vertical bend angles, meaning above and below, of 11.25, 22.5, 45, 60, and 90 degree.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can add any angle you want by simply changing angles in list:&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;(setq base_angles_list (mapcar 'deg_to_rad '(11.25 22.5 45 60 90 -11.25 -22.5 -45 -60 -90)))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2023 18:27:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/11866450#M55116</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2023-04-02T18:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp For Automatic Change the  Angle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/12161726#M55117</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5530556"&gt;@hak_vz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sorry, but I don't understand what you're trying to communicate. Could we include this code in the list you've supplied here? Prior to that, if that's the case, kindly add this code and send here.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 09:09:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/12161726#M55117</guid>
      <dc:creator>ishaq.syed7CX2A</dc:creator>
      <dc:date>2023-08-10T09:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp For Automatic Change the  Angle</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/13770879#M165944</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2373809"&gt;@hi&lt;/a&gt;everyone, &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14165728"&gt;@hak&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":backhand_index_pointing_right:"&gt;👉&lt;/span&gt;Is it possible to update or enhance this command so that it supports different horizontal and vertical scales?&lt;BR /&gt;For example, as shown in the attached screenshot, I want the horizontal scale to remain 1:1000 and the vertical scale to be 1:10. This would allow vertical exaggeration to be applied directly while drafting, similar to how we view profiles in Civil 3D.&lt;/P&gt;&lt;P&gt;This adjustment would make the command more practical for profile drafting and design workflows.&lt;/P&gt;&lt;P&gt;Thank you in advance for your guidance! I attached the lisp previously provided by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5530556"&gt;@hak_vz&lt;/a&gt;&amp;nbsp;.&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;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ishaq03_0-1755447548685.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1561869iE0A784AF590CEB99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ishaq03_0-1755447548685.png" alt="ishaq03_0-1755447548685.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Aug 2025 16:43:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-automatic-change-the-angle/m-p/13770879#M165944</guid>
      <dc:creator>ishaq03</dc:creator>
      <dc:date>2025-08-17T16:43:36Z</dc:date>
    </item>
  </channel>
</rss>

