<?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: Preview for Polyline root. in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12395061#M21471</link>
    <description>&lt;P&gt;My mistake, The Screen short re attached with the corrected options&lt;/P&gt;&lt;P&gt;Yes, 9 is just a line but&lt;SPAN&gt;&amp;nbsp;adding in the options loop is useful in this case to continue the loop key coded options as you explained.&lt;/SPAN&gt;&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="smallish_2-1700687127782.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1296318iC89C7A431BBA17EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smallish_2-1700687127782.png" alt="smallish_2-1700687127782.png" /&gt;&lt;/span&gt;&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="smallish_1-1700686909599.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1296317i87486DA11447F135/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smallish_1-1700686909599.png" alt="smallish_1-1700686909599.png" /&gt;&lt;/span&gt;&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>Wed, 22 Nov 2023 21:05:33 GMT</pubDate>
    <dc:creator>smallƑish</dc:creator>
    <dc:date>2023-11-22T21:05:33Z</dc:date>
    <item>
      <title>Preview for Polyline root.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12390578#M21453</link>
      <description>&lt;P&gt;For example, User picks 2 Points, we have 2 options to connect the 2 points with the orthogonal root.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;lisp is here;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun c:1 ( / Z1 z2 z5 z6 z3 z4)
  
  (if (and (setq Z1 (getpoint "\n Top of L shape : "))
	   (setq z2 (getpoint Z1 "\n Bot of L shape : "))
	   (setq z3 (list (car Z1) (cadr z2) 0.))
	   (setq z6 (list (car z2) (cadr Z1) 0.))
	   (setq z4 (inters Z1 (polar Z1 (* 1.75 pi) 1.)
			    z3 z2 nil))
	   (setq z5 (inters z2 (polar z2 (* 1.75 pi) 1.)
			    Z1 z6 nil))
	   )
    (command "_.line" "_non" Z1 "_non" z3 "_non" z2 ""))
  (princ)
  )


(defun c:2 ( / Z1 z2 z5 z6 z3 z4)
  
  (if (and (setq Z1 (getpoint "\nTop of 7 shape: "))
	   (setq z2 (getpoint Z1 "\n Bot of 7 shape: "))
	   (setq z3 (list (car Z1) (cadr z2) 0.))
	   (setq z6 (list (car z2) (cadr Z1) 0.))
	   (setq z4 (inters Z1 (polar Z1 (* 1.75 pi) 1.)
			    z3 z2 nil))
	   (setq z5 (inters z2 (polar z2 (* 1.75 pi) 1.)
			    Z1 z6 nil))
	   )
    (command "_.line" "_non" Z1 "_non" z6 "_non" z2 ""))
  (princ)
  )&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;&lt;P&gt;Any chance to preview option 1 and option 2 Before making the polyline ?&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="smallish_0-1700553442021.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1295324i8F0C2BE202E721E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smallish_0-1700553442021.png" alt="smallish_0-1700553442021.png" /&gt;&lt;/span&gt;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 07:58:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12390578#M21453</guid>
      <dc:creator>smallƑish</dc:creator>
      <dc:date>2023-11-21T07:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Preview for Polyline root.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12390852#M21454</link>
      <description>&lt;P&gt;check L7 custom command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;;*************************************************************************************************************************

;	komondormrex, nov 2023

;*************************************************************************************************************************

(defun c:l7 (/ side_selected diagonal_point_1 diagonal_point_2 point_3_distance point_3 mid_point_1_2
			   point_3_angle_org point_3_angle error_occurred
			)
	(setq diagonal_point_1 (getpoint "\nPick 1st diagonal point: ")
		  diagonal_point_2 (getpoint diagonal_point_1 "\nPick 2nd diagonal point: ")
		  point_3_distance (distance (setq point_3 (inters diagonal_point_1 (polar diagonal_point_1 0 1) 
											 			   diagonal_point_2 (polar diagonal_point_2 (* 0.5 pi) 1) 
											 			   nil
									 			   )
									 )
									 (setq mid_point_1_2 (polar diagonal_point_1
																(angle diagonal_point_1 diagonal_point_2)
																(* 0.5 (distance diagonal_point_1 diagonal_point_2))
													     )
									 )
						   )
		  point_3_angle_org (angle mid_point_1_2 point_3) 
	)
	(while (not side_selected)
			(princ "\rMove to select side, &amp;lt;LMB&amp;gt; to confirm")
			(setq error_occurred (if (vl-catch-all-error-p (setq grread_data (vl-catch-all-apply 'grread (list t 12 0)))) t nil))
	    	(cond
				(
					error_occurred
						(redraw)
						(setq side_selected t)
				)
				(
					(or
				 		(equal grread_data '(2 13))															;	Enter
				 		(equal grread_data '(2 32))															;	Space
						(= 25 (car grread_data))                                                            ;	RMB
						(= 11 (car grread_data))                                                            ;	RMB
						(= 3 (car grread_data))                                                             ;	LMB
					)
						(vla-addlightweightpolyline (vla-get-block (vla-get-activelayout (vla-get-activedocument (vlax-get-acad-object))))
													(vlax-safearray-fill (vlax-make-safearray vlax-vbdouble '(0 . 5))
														(apply 'append (mapcar '(lambda (vertex) 
																					(mapcar '+ '(0 0) vertex)
																	   			) 
																	   			(list diagonal_point_1 point_3 diagonal_point_2)
																	   )
														)
													)
		    			)
						(redraw)
						(setq side_selected t)
				)
				(
					(= 5 (car grread_data))                                                             	;	moving
						(if (equal diagonal_point_2 (cadr grread_data))
							(setq grread_data (list 5 (polar diagonal_point_2 
															(+ (* 0.5 pi) (angle diagonal_point_1 diagonal_point_2))
															1
													  )
											  )
							)
						)
						(setq point_3_angle (angle (inters diagonal_point_1 diagonal_point_2
														   (cadr grread_data)
														   (polar (cadr grread_data) point_3_angle_org 1)
														   nil
												   )
												   (cadr grread_data)
											)
							  point_3 (polar mid_point_1_2 point_3_angle point_3_distance) 
						)
						(redraw)
						(grdraw diagonal_point_1 point_3 1)
						(grdraw diagonal_point_2 point_3 1)
				)
				(
				 	t
				)
			)
	)
	(princ)
)

;*************************************************************************************************************************&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 18:21:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12390852#M21454</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2023-11-21T18:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Preview for Polyline root.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12390861#M21455</link>
      <description>&lt;P&gt;As always your&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13423916"&gt;@komondormrex&lt;/a&gt;&amp;nbsp; reply is perfect. Thank you so much.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 10:27:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12390861#M21455</guid>
      <dc:creator>smallƑish</dc:creator>
      <dc:date>2023-11-21T10:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Preview for Polyline root.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12392026#M21456</link>
      <description>&lt;P&gt;Here's another [shorter] way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun C:LCORNERS ; = Orthogonal L between user-specified Corners [with to-which-side pick]
  (/ toward p1 p3 p2 p4 done cur L)
  (defun toward (pt); distance from cursor to line through pt parallel to diagonal
    (distance
      (cadr cur)
      (inters pt (polar pt (angle p1 p3) 1) (cadr cur) (polar (cadr cur) (+ (angle p1 p3) (/ pi 2)) 1) nil)
    ); distance
  ); defun
  (setq
    p1 (reverse (cdr (reverse (getpoint "\nOne corner/end of L: ")))); [XY only]
    p3 (reverse (cdr (reverse (getcorner p1 "\nOpposite corner/end, then pick to which side: "))))
    p2 (list (car p3) (cadr p1)); horizontal from p1
    p4 (list (car p1) (cadr p3)); horizontal from p3
  ); setq
  (while
    (and (not done) (setq cur (grread T 12 0)))
    (cond
      ((= (car cur) 5); moved cursor
        (if L (entdel L))
        (setq L
          (entmakex
            (list
              '(0 . "LWPOLYLINE") '(100 . "AcDbEntity") '(100 . "AcDbPolyline")
              '(90 . 3); vertices
              (cons 70 (* (getvar 'plinegen) 128)); open; 128=generation on; PLINEGEN = 0 or 1
              (cons 10 p1)
              (cons 10 (if (&amp;lt; (toward p2) (toward p4)) p2 p4)); which other corner
              (cons 10 p3)
            ); list
          ); entmakex
        ); setq
      ); 5 condition
      ((= (car cur) 3) (setq done T)); picked - leave drawn Polyline, end (while) loop
    ); cond - grread possibilities
  ); while
  (prin1)
); defun - C:LCORNERS&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 19:56:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12392026#M21456</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-11-21T19:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Preview for Polyline root.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12392906#M21457</link>
      <description>&lt;P&gt;Could use a 2x2 custom dcl don't have example with "L's" but like this choose direction, then pick points.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeaHaven_0-1700618521183.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1295863i03033BBBCE219749/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1700618521183.png" alt="SeaHaven_0-1700618521183.png" /&gt;&lt;/span&gt;&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>Wed, 22 Nov 2023 02:02:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12392906#M21457</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-11-22T02:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Preview for Polyline root.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12393270#M21458</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13423916"&gt;@komondormrex&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question, If I m adding more options, example 45Drg Intersection points, Any possible options to make a loop of&amp;nbsp; grread possibilities by pressing any key (TAB KEY) on keyboard?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 06:11:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12393270#M21458</guid>
      <dc:creator>smallƑish</dc:creator>
      <dc:date>2023-11-22T06:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Preview for Polyline root.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12393290#M21459</link>
      <description>&lt;P&gt;very likely) show what options you want to add.&lt;/P&gt;&lt;P&gt;this one utilizes &amp;lt;Tab&amp;gt; for switching between directions.&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun c:l7 (/ side_selected diagonal_point_1 diagonal_point_2 point_3_distance point_3 mid_point_1_2
			   point_3_angle_org point_3_angle error_occurred
			)
	(setq diagonal_point_1 (getpoint "\nPick 1st diagonal point: ")
		  diagonal_point_2 (getpoint diagonal_point_1 "\nPick 2nd diagonal point: ")
		  point_3_distance (distance (setq point_3 (inters diagonal_point_1 (polar diagonal_point_1 0 1) 
											 			   diagonal_point_2 (polar diagonal_point_2 (* 0.5 pi) 1) 
											 			   nil
									 			   )
									 )
									 (setq mid_point_1_2 (polar diagonal_point_1
																(angle diagonal_point_1 diagonal_point_2)
																(* 0.5 (distance diagonal_point_1 diagonal_point_2))
													     )
									 )
						   )
		  point_3_angle (angle mid_point_1_2 point_3) 
	)
	(grdraw diagonal_point_1 point_3 1)
	(grdraw diagonal_point_2 point_3 1)
	(while (not side_selected)
			(princ "\rPress &amp;lt;Tab&amp;gt; to change position, &amp;lt;Space&amp;gt; to confirm")
			(setq error_occurred (if (vl-catch-all-error-p (setq grread_data (vl-catch-all-apply 'grread (list t 12 0)))) t nil))
	    	(cond
				(
					error_occurred
						(redraw)
						(setq side_selected t)
				)
				(
					(or
				 		(equal grread_data '(2 13))															;	Enter
				 		(equal grread_data '(2 32))															;	Space
						(= 25 (car grread_data))                                                            ;	RMB
						(= 11 (car grread_data))                                                            ;	RMB
						(= 3 (car grread_data))                                                             ;	LMB
					)
						(vla-addlightweightpolyline (vla-get-block (vla-get-activelayout (vla-get-activedocument (vlax-get-acad-object))))
													(vlax-safearray-fill (vlax-make-safearray vlax-vbdouble '(0 . 5))
														(apply 'append (mapcar '(lambda (vertex) 
																					(mapcar '+ '(0 0) vertex)
																	   			) 
																	   			(list diagonal_point_1 point_3 diagonal_point_2)
																	   )
														)
													)
		    			)
						(redraw)
						(setq side_selected t)
				)
				(
					(equal grread_data '(2 9))                      ;	tab
						(redraw)
						(setq point_3_angle (+ point_3_angle pi)
							  point_3 (polar mid_point_1_2 point_3_angle point_3_distance)
						)
						(grdraw diagonal_point_1 point_3 1)
						(grdraw diagonal_point_2 point_3 1)
				)
				(
				 	t
				)
			)
	)
	(princ)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 22 Nov 2023 06:27:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12393290#M21459</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2023-11-22T06:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Preview for Polyline root.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12393327#M21460</link>
      <description>&lt;P&gt;The options that I wish to add, look very complicated. Still attached dwg&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 06:57:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12393327#M21460</guid>
      <dc:creator>smallƑish</dc:creator>
      <dc:date>2023-11-22T06:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Preview for Polyline root.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12393378#M21461</link>
      <description>&lt;P&gt;indeed they look so.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 07:28:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12393378#M21461</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2023-11-22T07:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Preview for Polyline root.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12393889#M21462</link>
      <description>&lt;P&gt;Those could probably be done.&amp;nbsp; For an example of something similar, see the &lt;STRONG&gt;RMP&lt;/STRONG&gt; command in&amp;nbsp;&lt;STRONG&gt;RectMidPoint.lsp&lt;/STRONG&gt; &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-rectangles-to-change-their-lenths-and-widths-at-once/m-p/5481081/highlight/true#M329290" target="_blank" rel="noopener"&gt;&amp;gt;here&amp;lt;&lt;/A&gt;.&amp;nbsp; Try it, giving it either the Fillet or Chamfer option [before picking the midpoint] -- it can draw shapes more complex than just the L.&amp;nbsp; The&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt; (grread)&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/FONT&gt;function has a way of reading keyboard input [see the &lt;STRONG&gt;D&lt;/STRONG&gt;imensions option in &lt;STRONG&gt;RMP&lt;/STRONG&gt;], so it should be possible to get Tab [or any other key you want] to cycle through options.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp; Link now fixed.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 12:57:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12393889#M21462</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-11-22T12:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Preview for Polyline root.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12394027#M21463</link>
      <description>&lt;P&gt;but actually they're not&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;;*************************************************************************************************************************

;	komondormrex, nov 2023

;*************************************************************************************************************************

(defun c:l7 (/ side_selected point_1 point_2 point_3_distance point_3 point_1_2
			   point_3_angle_org point_3_angle error_occurred option_number
			   angle_1_2 45_angle long_angle
			)
	(setq option_number 1
		  point_1 (getpoint "\nPick 1st diagonal point: ")
		  point_2 (getpoint point_1 "\nPick 2nd diagonal point: ")
		  point_3_distance (distance (setq point_3 (inters point_1 (polar point_1 0 1)
											 			   point_2 (polar point_2 (* 0.5 pi) 1)
											 			   nil
									 			   )
									 )
									 (setq point_1_2 (polar point_1
																(setq angle_1_2 (angle point_1 point_2))
																(* 0.5 (distance point_1 point_2))
													     )
									 )
						   )
		  point_3_angle (angle point_1_2 point_3)
		  45_angle (cond
			 			((&amp;lt; 0 angle_1_2 (* 0.5 pi)) (* 0.25 pi))
			 			((&amp;lt; (* 0.5 pi) angle_1_2 pi) (* 0.75 pi))
			 			((&amp;lt; pi   	   angle_1_2 (* 1.5 pi)) (* 1.25 pi))
			 			((&amp;lt; (* 1.5 pi) angle_1_2 (* 2 pi)) (* 1.75 pi))
				   )
		  long_angle (if (apply '&amp;lt; (mapcar '+ '(0 0) (mapcar 'abs (mapcar '- point_1 point_2)))) (* 0.5 pi) 0)
	)
	(grdraw point_1 point_3 1)
	(grdraw point_2 point_3 1)
	(while (not side_selected)
			(princ "\rPress &amp;lt;Tab&amp;gt; to change position, &amp;lt;Space&amp;gt; to confirm")
			(setq error_occurred (if (vl-catch-all-error-p (setq grread_data (vl-catch-all-apply 'grread (list t 12 0)))) t nil))
	    	(cond
				(
					error_occurred
						(redraw)
						(setq side_selected t)
				)
				(
					(or
				 		(equal grread_data '(2 13))															;	Enter
				 		(equal grread_data '(2 32))															;	Space
						(= 3 (car grread_data))                                                             ;	LMB
					)
						(foreach pline pline_list
							(vla-addlightweightpolyline (vla-get-block (vla-get-activelayout (vla-get-activedocument (vlax-get-acad-object))))
														(vlax-safearray-fill (vlax-make-safearray vlax-vbdouble (cons 1 (* 2 (length pline))))
															(apply 'append (mapcar '(lambda (vertex)
																						(mapcar '+ '(0 0) vertex)
																		   			)
																		   			(mapcar '(lambda (vertex) (trans vertex 1 0)) pline)
																		   )
															)
														)
		    				)
						)
						(redraw)
						(setq side_selected t)
				)
				(
					(or
						(equal grread_data '(2 9))                      									;	tab
						(= 25 (car grread_data))                                                            ;	RMB
						(= 11 (car grread_data))                                                            ;	RMB
					)

						(redraw)
						(setq option_number (1+ option_number))
						(if (= 9 option_number) (setq option_number 1))
						(cond
							(
								(= 1 option_number)
									(setq point_3 (polar point_1_2 point_3_angle point_3_distance)
										  pline_list (list (list point_1 point_3 point_2))
									)
									(grdraw point_1 point_3 1)
									(grdraw point_2 point_3 1)
							)
							(
								(= 2 option_number)
									(setq point_3_angle (+ point_3_angle pi)
										  point_3 (polar point_1_2 point_3_angle point_3_distance)
										  pline_list (list (list point_1 point_3 point_2))
									)
									(grdraw point_1 point_3 1)
									(grdraw point_2 point_3 1)
							)
							(
								(= 3 option_number)
									(setq point_3 (list (car point_1) (cadr point_1_2))
										  point_4 (list (car point_2) (cadr point_1_2))
										  pline_list (list (list point_1 point_3 point_4 point_2))
									)
									(grdraw point_1 point_3 1)
									(grdraw point_3 point_4 1)
									(grdraw point_4 point_2 1)
							)
							(
								(= 4 option_number)
									(setq point_3 (list (car point_1_2) (cadr point_1))
										  point_4 (list (car point_1_2) (cadr point_2))
										  pline_list (list (list point_1 point_3 point_4 point_2))
									)
									(grdraw point_1 point_3 1)
									(grdraw point_3 point_4 1)
									(grdraw point_4 point_2 1)
							)
							(
								(= 5 option_number)
									(setq point_3 (list (car point_1) (cadr point_1_2))
										  point_4 (list (car point_2) (cadr point_1_2))
										  pline_list (list (list point_1 point_3 point_4 point_2) (list point_1 point_2))
									)
									(grdraw point_1 point_3 1)
									(grdraw point_3 point_4 1)
									(grdraw point_4 point_2 1)
									(grdraw point_1 point_2 1)
							)
							(
								(= 6 option_number)
									(setq point_3 (list (car point_1_2) (cadr point_1))
										  point_4 (list (car point_1_2) (cadr point_2))
										  pline_list (list (list point_1 point_3 point_4 point_2) (list point_1 point_2))
									)
									(grdraw point_1 point_3 1)
									(grdraw point_3 point_4 1)
									(grdraw point_4 point_2 1)
									(grdraw point_1 point_2 1)
							)
							(
								(= 7 option_number)
									(setq point_3 (inters point_1 (polar point_1 45_angle 1) point_2 (polar point_2 long_angle 1) nil)
										  pline_list (list (list point_1 point_3 point_2))
									)
									(grdraw point_1 point_3 1)
									(grdraw point_3 point_2 1)
							)
							(
								(= 8 option_number)
									(setq point_3 (inters point_2 (polar point_2 45_angle 1) point_1 (polar point_1 long_angle 1) nil)
										  pline_list (list (list point_1 point_3 point_2))
									)
									(grdraw point_1 point_3 1)
									(grdraw point_3 point_2 1)
							)
							(
								t
							)
						)
				)
				(
				 	t
				)
			)
	)
	(princ)
)

;*************************************************************************************************************************&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 22 Nov 2023 12:41:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12394027#M21463</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2023-11-22T12:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Preview for Polyline root.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12394142#M21464</link>
      <description>&lt;P&gt;Would it make sense to have &lt;EM&gt;three&lt;/EM&gt; options instead of six, and within each, have the same kind of preview-flipping depending on the cursor location?&amp;nbsp; Options &lt;STRONG&gt;1&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;2&lt;/STRONG&gt; could be the &lt;STRONG&gt;L&lt;/STRONG&gt; option, with flipping as in our previous routines, options &lt;STRONG&gt;3&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;4&lt;/STRONG&gt; could be the &lt;STRONG&gt;Z&lt;/STRONG&gt; option, similarly previewing, and options &lt;STRONG&gt;5&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;6&lt;/STRONG&gt; the [I don't know what to call it] option.&amp;nbsp; They could be cycled through with Tab or something, or you could jump directly to any with a specific key.&amp;nbsp; [The cycling option could be preferable because you don't need to name them, nor know what the key is for each variation.]&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 13:28:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12394142#M21464</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-11-22T13:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Preview for Polyline root.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12394425#M21465</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;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Would it make sense to have &lt;EM&gt;three&lt;/EM&gt; options instead of six, and within each, have the same kind of preview-flipping depending on the cursor location?&amp;nbsp; Options &lt;STRONG&gt;1&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;2&lt;/STRONG&gt; could be the &lt;STRONG&gt;L&lt;/STRONG&gt; option, with flipping as in our previous routines, options &lt;STRONG&gt;3&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;4&lt;/STRONG&gt; could be the &lt;STRONG&gt;Z&lt;/STRONG&gt; option, similarly previewing, and options &lt;STRONG&gt;5&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;6&lt;/STRONG&gt; the [I don't know what to call it] option.&amp;nbsp; They could be cycled through with Tab or something, or you could jump directly to any with a specific key. ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;As in the attached.&lt;/STRONG&gt;&amp;nbsp; It actually lets you choose which shape in two ways,&amp;nbsp;&lt;EM&gt;either&lt;/EM&gt; directly by typing a letter [I decided to call the one with the diagonal the Dogleg shape, so the choices are &lt;STRONG&gt;L&lt;/STRONG&gt;/&lt;STRONG&gt;Z&lt;/STRONG&gt;/&lt;STRONG&gt;D&lt;/STRONG&gt;] or by pressing &lt;STRONG&gt;Tab&lt;/STRONG&gt; which causes it to cycle to the next possible shape.&amp;nbsp; The which-side preview-flipping operates within all shape options.&amp;nbsp; See the comments at the top.&amp;nbsp; [You can change the command name to something shorter if you want.]&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LZDCORNERS.gif" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1296187iD399C066FBCF9DC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LZDCORNERS.gif" alt="LZDCORNERS.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It doesn't show the keystrokes part, but the first switches between shapes are by Tab, until it gets back to the L, and then I typed letter options [D then Z then L], ending with confirming the upper-left-ward L shape.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 15:32:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12394425#M21465</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-11-22T15:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Preview for Polyline root.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12394771#M21466</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13423916"&gt;@komondormrex&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see how complicated the program is. Thank you so much.&lt;/P&gt;&lt;P&gt;As always no words to express my gratitude&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 17:35:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12394771#M21466</guid>
      <dc:creator>smallƑish</dc:creator>
      <dc:date>2023-11-22T17:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Preview for Polyline root.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12394795#M21467</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for the kent version.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 17:46:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12394795#M21467</guid>
      <dc:creator>smallƑish</dc:creator>
      <dc:date>2023-11-22T17:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Preview for Polyline root.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12394938#M21468</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 19:47:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12394938#M21468</guid>
      <dc:creator>smallƑish</dc:creator>
      <dc:date>2023-11-22T19:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Preview for Polyline root.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12394943#M21469</link>
      <description>&lt;P&gt;I apologize, missed a few options earlier, if possible please consider;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smallish_0-1700685149253.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1296304i979921E17C820159/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smallish_0-1700685149253.png" alt="smallish_0-1700685149253.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, is that possible to continue the process as a loop?&lt;/P&gt;&lt;P&gt;That is once the L7 is completed, again activate L7 cmd, consider existing P2 as new P1, And ask the user to pick New P2 only.(to avoid the additional steps of calling L7 and pick P1)&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 20:32:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12394943#M21469</guid>
      <dc:creator>smallƑish</dc:creator>
      <dc:date>2023-11-22T20:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Preview for Polyline root.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12395040#M21470</link>
      <description>&lt;P&gt;What's the difference between Options 5 &amp;amp; 8, and between Options 6 &amp;amp; 7?&amp;nbsp; Does the color difference in your image mean anything?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for Option 9, obviously a simple LINE [or PLINE if there's reason for it to be one] command would do that -- does it really need to be among cycling or key-coded options?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 20:24:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12395040#M21470</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-11-22T20:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Preview for Polyline root.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12395061#M21471</link>
      <description>&lt;P&gt;My mistake, The Screen short re attached with the corrected options&lt;/P&gt;&lt;P&gt;Yes, 9 is just a line but&lt;SPAN&gt;&amp;nbsp;adding in the options loop is useful in this case to continue the loop key coded options as you explained.&lt;/SPAN&gt;&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="smallish_2-1700687127782.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1296318iC89C7A431BBA17EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smallish_2-1700687127782.png" alt="smallish_2-1700687127782.png" /&gt;&lt;/span&gt;&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="smallish_1-1700686909599.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1296317i87486DA11447F135/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smallish_1-1700686909599.png" alt="smallish_1-1700686909599.png" /&gt;&lt;/span&gt;&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>Wed, 22 Nov 2023 21:05:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12395061#M21471</guid>
      <dc:creator>smallƑish</dc:creator>
      <dc:date>2023-11-22T21:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Preview for Polyline root.</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12395133#M21472</link>
      <description>&lt;P&gt;Well, the attached doesn't do your new variety of Options 5 &amp;amp; 6* [maybe later], but adding the straight-from-corner-to-corner option wasn't difficult.&amp;nbsp; I couldn't use D for Direct or Diagonal, so I called it the Straight option.&amp;nbsp; You still need to pick somewhere to confirm that's what you want, even though it doesn't show a change as you move the cursor from side to side, because you could still choose a different option by letter or Tab.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;* For 5 &amp;amp; 6, is the idea that the extreme ends are the two picked locations, which are not really "corners" any more, because the r&lt;STRONG&gt;ou&lt;/STRONG&gt;t&lt;STRONG&gt;e&lt;/STRONG&gt; goes &lt;EM&gt;outside&lt;/EM&gt; the rectangle they would be corners of?&amp;nbsp; And both segments would be in 45°-multiple directions?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 20:55:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/preview-for-polyline-root/m-p/12395133#M21472</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-11-22T20:55:02Z</dc:date>
    </item>
  </channel>
</rss>

