<?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: Combine 2 Lisps with Yes/No and Add More Functionality in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11984466#M29743</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;to check what is wrong attach target dwg.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2023 03:10:40 GMT</pubDate>
    <dc:creator>komondormrex</dc:creator>
    <dc:date>2023-05-24T03:10:40Z</dc:date>
    <item>
      <title>Combine 2 Lisps with Yes/No and Add More Functionality</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11973337#M29739</link>
      <description>&lt;P&gt;Hello Everyone.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could I please ask for some assistance? I am dangerous with LISP and I have tried using AI to do this but is seems AI does not have a lot of "I" quite yet.&lt;/P&gt;&lt;P&gt;I came across these 2 lisps here that are close to accomplishing my goal for Single Line HVAC duct (or whatever anyone else may find use for).&amp;nbsp;&lt;/P&gt;&lt;P&gt;PLF2 draws a polyline and fillets the corners upon completion.&lt;/P&gt;&lt;P&gt;OBSTW offsets a polyline on both sides.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to combine the 2 lisps and add the following:&lt;/P&gt;&lt;P&gt;I would like the lisp to ask "Insulate Full Y/N".&lt;/P&gt;&lt;P&gt;If yes, Offset the drawn polyline (250 as default) with polylines (Hidden linetype, Color 12, Width 0).&lt;/P&gt;&lt;P&gt;If no, ask "Insulate Part Y/N".&lt;/P&gt;&lt;P&gt;If yes, "pick 2 points" along the polyline and Offset the drawn polyline (250 as default) with polylines (Hidden linetype, Color 12, Width 0) and close the points.&lt;/P&gt;&lt;P&gt;If no, the original polyline is drawn and the command exits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully this will be useful to others.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks to&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;for OBSTW and the writer of PLF. You are all a big help to many.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lisps and image of goal attached.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 16:44:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11973337#M29739</guid>
      <dc:creator>IanYeager</dc:creator>
      <dc:date>2023-05-18T16:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 Lisps with Yes/No and Add More Functionality</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11974528#M29740</link>
      <description>&lt;P&gt;You need a 3rd program.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PLF2 draws a polyline and fillets the corners upon completion.&lt;/P&gt;&lt;P&gt;OBSTW offsets a polyline on both sides.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OBSTWP&lt;/STRONG&gt;&amp;nbsp;offsets a polyline on both sides for partial length of a pline&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would combine all 3 into one lisp start with PLF2, when finished ask full or partial offset then run correct defun.&amp;nbsp; (OBSTW) or (OBSTWP).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Re partial offset just thinking offset full length then trim off ends and join the 2 ends.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 05:44:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11974528#M29740</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-05-19T05:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 Lisps with Yes/No and Add More Functionality</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11975244#M29741</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;check the code below. 'hidden' linetype should be loaded in document.&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;&lt;LI-CODE lang="lisp"&gt;;********************************************************************************************************************************************************************
(defun set_insulator_properties (object)
	(vla-put-linetype object "HIDDEN")
	(vl-catch-all-apply 'vla-put-constantwidth (list object 0))
	(vla-put-color object 12)
)
;********************************************************************************************************************************************************************
(defun draw_insulator_borders (point target_pline one_side_offset)
	(setq 1st_derivative (vlax-curve-getfirstderiv target_pline (vlax-curve-getparamatpoint target_pline (trans point 1 0)))
              1st_derivative_angle (angle (trans '(0 0 0) 0 1) (trans 1st_derivative 0 1))
        )
        (vla-addline (vla-get-block (vla-get-activelayout (vla-get-activedocument (vlax-get-acad-object))))
                  						 (vlax-3d-point (polar (trans point 1 0) (+ 1st_derivative_angle (* 0.5 pi)) one_side_offset))
                  						 (vlax-3d-point (polar (trans point 1 0) (- 1st_derivative_angle (* 0.5 pi)) one_side_offset))
        )
)
;********************************************************************************************************************************************************************
(defun c:set_insulator (/ target_pline init start_insulation_point offset_pline_1 offset_pline_2 start_point_parameter border_1_line end_insulation_point
			  start_end_parameter border_2_line border_line_list 	
			)
	(vla-startundomark (vla-get-activedocument (vlax-get-acad-object)))
	(if (null one_side_offset) (setq one_side_offset 200))
	(setq target_pline (vlax-ename-&amp;gt;vla-object (car (entsel "\nPick target pline: ")))
	      init (initget 1)	
	      one_side_offset (getreal (strcat "\nEnter one side offset &amp;lt;" (rtos one_side_offset) "&amp;gt;: "))
	      start_insulation_point (getpoint "\nPick start insulation point on target pline (none selected insulates whole pline): ")
	      offset_pline_1 (car (vlax-invoke target_pline 'offset one_side_offset))
	      offset_pline_2 (car (vlax-invoke target_pline 'offset (* -1.0 one_side_offset)))
	)
	(set_insulator_properties offset_pline_1)
	(set_insulator_properties offset_pline_2)
	(if (and
		 start_insulation_point
		 (setq start_point_parameter (vlax-curve-getparamatpoint target_pline (trans start_insulation_point 1 0)))
		 (setq border_1_line (draw_insulator_borders start_insulation_point target_pline one_side_offset))
	    )	
		(progn
			(setq end_insulation_point (getpoint "\nPick end insulation point on target pline: ")
			      start_end_parameter (vlax-curve-getparamatpoint target_pline (trans end_insulation_point 1 0))
			      border_2_line (draw_insulator_borders end_insulation_point target_pline one_side_offset)
			      border_line_list (list border_1_line border_2_line)
		        )
		        (set_insulator_properties border_1_line)
		        (set_insulator_properties border_2_line)
		        (if (&amp;gt; start_point_parameter start_end_parameter)
		        	(setq border_1_line (cadr border_line_list)
		        	      border_2_line (car border_line_list)
		        	)
		        )
		        (command "_trim" (vlax-vla-object-&amp;gt;ename border_1_line) "" (trans (vlax-curve-getstartpoint offset_pline_1) 0 1) "")
		        (command "_trim" (vlax-vla-object-&amp;gt;ename border_2_line) "" (trans (vlax-curve-getendpoint offset_pline_1) 0 1) "")
		        (command "_trim" (vlax-vla-object-&amp;gt;ename border_1_line) "" (trans (vlax-curve-getstartpoint offset_pline_2) 0 1) "")
		        (command "_trim" (vlax-vla-object-&amp;gt;ename border_2_line) "" (trans (vlax-curve-getendpoint offset_pline_2) 0 1) "")
		        (command "_pedit" (vlax-vla-object-&amp;gt;ename offset_pline_1) "_j" (vlax-vla-object-&amp;gt;ename border_1_line)
		        				      			       (vlax-vla-object-&amp;gt;ename offset_pline_2)
		        				        		       (vlax-vla-object-&amp;gt;ename border_2_line)
		        				        		       "" ""
		        ) 
		)
	)
	(vla-endundomark (vla-get-activedocument (vlax-get-acad-object)))
	(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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 14:45:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11975244#M29741</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2023-05-25T14:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 Lisps with Yes/No and Add More Functionality</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11984067#M29742</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13423916"&gt;@komondormrex&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;After I draw a polyline, I run set_insulator and and get the error:&lt;/P&gt;&lt;P&gt;Command: SET_INSULATOR&lt;BR /&gt;Pick target pline: ; error: bad argument type: numberp: nil&lt;/P&gt;&lt;P&gt;I am picking a polyline drawn with the PLF2 lisp which does radius the corners.&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, 23 May 2023 21:49:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11984067#M29742</guid>
      <dc:creator>IanYeager</dc:creator>
      <dc:date>2023-05-23T21:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 Lisps with Yes/No and Add More Functionality</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11984466#M29743</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;to check what is wrong attach target dwg.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 03:10:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11984466#M29743</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2023-05-24T03:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 Lisps with Yes/No and Add More Functionality</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11984996#M29744</link>
      <description>&lt;P&gt;oops, got it, no need for sample. check updated at #3. note if a starting point for insulator is not selected, whole pline will be insulated.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 08:53:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11984996#M29744</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2023-05-24T08:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 Lisps with Yes/No and Add More Functionality</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11986430#M29745</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13423916"&gt;@komondormrex&lt;/a&gt;&amp;nbsp;this is looking pretty good. Thank you! I have tweaked it a bit to keep the offset at a constant 125 rather than prompt for a value (on my local version). I do see one issue where the offset of a portion does not work if the ends of the polyline are not visible in your screen. The response is shown in the image attached. Possible to fix that? Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 16:04:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11986430#M29745</guid>
      <dc:creator>IanYeager</dc:creator>
      <dc:date>2023-05-24T16:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 Lisps with Yes/No and Add More Functionality</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11987543#M29746</link>
      <description>&lt;P&gt;This is a partial&amp;nbsp; offset picking 2 points along a pline etc. It has offset set to 250, would be best to have a enter offset.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeaHaven_0-1684982415998.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1218978iBB151653AAFB6872/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1684982415998.png" alt="SeaHaven_0-1684982415998.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;; Offset both sides of pline between picked points.
; OBSTWP BY AlanH May 2023

(defun c:OBSTWP ( / alg-ang pt1 pt2 pt1a pt1b pt2 pt2a pt2b obj obj2 obj3 ang ent oldsnap ent2 ent3 l1 l2)


(defun alg-ang (objpl pnt)
  (angle '(0. 0. 0.)
     (vlax-curve-getfirstderiv
       objpl
       (vlax-curve-getparamatpoint
         objpl
         pnt
       )
     )
  )
)

(setq oldsnap (getvar 'osmode))
(setvar 'osmode 512)

(setq ent (entsel "Pick 1st point on pline "))
(setq obj (vlax-ename-&amp;gt;vla-object (car ent )))
(setq pt1 (cadr ent))
(setq pt1 (vlax-curve-getclosestpointto obj pt1))

(setq pt2 (getpoint "\nPick 2nd point on pline "))
(setq pt2 (vlax-curve-getclosestpointto obj pt2))

(vla-offset obj 250)
(setq ent2 (entlast))
(setq obj2 (vlax-ename-&amp;gt;vla-object ent2))

(vla-offset obj -250)
; (setq ent3 (entlast))
(setq obj3 (vlax-ename-&amp;gt;vla-object ent3))

(setq ang (+ (/ pi 2)(alg-ang obj pt1)))
(setq pt1a (polar pt1 ang 250))
(setq pt1b (polar pt1 (+ ang pi) 250))
(command "line" pt1a pt1b "")
(setq l1 (entlast))
(command "trim" (entlast) "" (vlax-curve-getstartPoint obj2) (vlax-curve-getstartPoint obj3) "")

(setq ang (+ (/ pi 2)(alg-ang obj pt2)))
(setq pt2a (polar pt2 ang 250))
(setq pt2b (polar pt2 (+ ang pi) 250))
(command "line" pt2a pt2b "")
(setq l2 (entlast))
(command "trim" (entlast) "" (vlax-curve-getendPoint obj2) (vlax-curve-getendPoint obj3) "")
(command "pedit" "join" ent2 l1 ent3 l2 "")

(setvar 'osmode oldsnap)
(princ)
)
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 02:41:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11987543#M29746</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-05-25T02:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 Lisps with Yes/No and Add More Functionality</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11988893#M29747</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6254908"&gt;@Sea-Haven&lt;/a&gt;&amp;nbsp;This routine is asking for 2 points to be picked but it is offsetting the entire pline and not closing the ends, unless I am doing something wrong?&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 14:12:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11988893#M29747</guid>
      <dc:creator>IanYeager</dc:creator>
      <dc:date>2023-05-25T14:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 Lisps with Yes/No and Add More Functionality</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11992774#M29748</link>
      <description>&lt;P&gt;Did you pick the ends it will do all the pline then, if you want a distance from ends that will need to be added.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pick in from ends when asked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2023 03:41:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11992774#M29748</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-05-27T03:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 Lisps with Yes/No and Add More Functionality</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11998754#M29749</link>
      <description>&lt;P&gt;check the following.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;;********************************************************************************************************************************************************************
(defun set_insulator_properties (object)
	(vla-put-linetype object "HIDDEN")
	(vl-catch-all-apply 'vla-put-constantwidth (list object 0))
	(vla-put-color object 12)
)
;********************************************************************************************************************************************************************
(defun draw_insulator_borders (point target_pline one_side_offset)
	(setq 1st_derivative (vlax-curve-getfirstderiv target_pline (vlax-curve-getparamatpoint target_pline (trans point 1 0)))
              1st_derivative_angle (angle (trans '(0 0 0) 0 1) (trans 1st_derivative 0 1))
        )
        (vla-addline (vla-get-block (vla-get-activelayout (vla-get-activedocument (vlax-get-acad-object))))
                  						 (vlax-3d-point (polar (trans point 1 0) (+ 1st_derivative_angle (* 0.5 pi)) one_side_offset))
                  						 (vlax-3d-point (polar (trans point 1 0) (- 1st_derivative_angle (* 0.5 pi)) one_side_offset))
        )
)
;********************************************************************************************************************************************************************
(defun c:set_insulator (/ target_pline init start_insulation_point end_insulation_point
						  offset_pline_1 offset_pline_2 start_point_parameter end_point_parameter
						  border_1_line border_2_line
						  offset_pline_1_1 offset_pline_1_2 offset_pline_2_1 offset_pline_2_2
						  skip one_side_offset_saved
					   )
	(vla-startundomark (vla-get-activedocument (vlax-get-acad-object)))
	(if (null one_side_offset) (setq one_side_offset 125))
	(setq target_pline (vlax-ename-&amp;gt;vla-object (car (entsel "\nPick target pline: ")))
		  one_side_offset_saved one_side_offset
	      init (initget 6)
	      one_side_offset (getreal (strcat "\nEnter one side offset (Space to confirm) &amp;lt;" (rtos one_side_offset) "&amp;gt;: "))
	      start_insulation_point (getpoint "\nPick start insulation point on target pline (Space to insulate whole pline): ")
	      offset_pline_1 (vlax-vla-object-&amp;gt;ename (car (vlax-invoke target_pline 'offset (if (null one_side_offset) (setq one_side_offset one_side_offset_saved)))))
	      offset_pline_2 (vlax-vla-object-&amp;gt;ename (car (vlax-invoke target_pline 'offset (* -1.0 one_side_offset))))
	)
	(set_insulator_properties (vlax-ename-&amp;gt;vla-object offset_pline_1))
	(set_insulator_properties (vlax-ename-&amp;gt;vla-object offset_pline_2))
	(if (and
		 start_insulation_point
		 (setq start_point_parameter (vlax-curve-getparamatpoint target_pline (trans start_insulation_point 1 0)))
		 (setq border_1_line (draw_insulator_borders start_insulation_point target_pline one_side_offset))
	    )
		(progn
			(setq end_insulation_point (getpoint "\nPick end insulation point on target pline: ")
			      end_point_parameter (vlax-curve-getparamatpoint target_pline (trans end_insulation_point 1 0))
			      border_2_line (draw_insulator_borders end_insulation_point target_pline one_side_offset)
		        )
		        (set_insulator_properties border_1_line)
		        (set_insulator_properties border_2_line)
				(setq skip nil)
				(if (and (/= start_point_parameter (vlax-curve-getstartparam target_pline))
						 (/= start_point_parameter (vlax-curve-getendparam target_pline))
					)
						(progn
							(command "_breakatpoint" offset_pline_1 (trans start_insulation_point 0 1))
							(if (&amp;gt; start_point_parameter end_point_parameter)
									(setq offset_pline_1_1 (entlast))
									(setq offset_pline_1_1 offset_pline_1 offset_pline_1 (entlast))
							)
						)
						(setq skip t)
				)
				(if (and (/= end_point_parameter (vlax-curve-getstartparam target_pline))
						 (/= end_point_parameter (vlax-curve-getendparam target_pline))
					)
						(progn
		        			(command "_breakatpoint" (if skip
															offset_pline_1
														 	(if (&amp;gt; start_point_parameter end_point_parameter)
																offset_pline_1
																(entlast)
															)
													 )
													 (trans end_insulation_point 0 1)
							)
							(if (&amp;gt; start_point_parameter end_point_parameter)
									(setq offset_pline_1_2 offset_pline_1 offset_pline_1 (entlast))
									(setq offset_pline_1_2 (entlast))
							)
						)
				)
				(setq skip nil)
				(if (and (/= start_point_parameter (vlax-curve-getstartparam target_pline))
						 (/= start_point_parameter (vlax-curve-getendparam target_pline))
					)
						(progn
		        			(command "_breakatpoint" offset_pline_2 (trans start_insulation_point 0 1))
							(if (&amp;gt; start_point_parameter end_point_parameter)
									(setq offset_pline_2_1 (entlast))
									(setq offset_pline_2_1 offset_pline_2 offset_pline_2 (entlast))
							)
						)
						(setq skip t)
				)
				(if (and (/= end_point_parameter (vlax-curve-getstartparam target_pline))
						 (/= end_point_parameter (vlax-curve-getendparam target_pline))
					)
						(progn
		        			(command "_breakatpoint" (if skip
														 	offset_pline_2
															(if (&amp;gt; start_point_parameter end_point_parameter)
																offset_pline_2
																(entlast)
															)
													 )
													 (trans end_insulation_point 0 1)
							)
							(if (&amp;gt; start_point_parameter end_point_parameter)
									(setq offset_pline_2_2 offset_pline_2 offset_pline_2 (entlast))
									(setq offset_pline_2_2 (entlast))
							)
						)
				)
				(if offset_pline_1_1 (vla-erase (vlax-ename-&amp;gt;vla-object offset_pline_1_1)))
				(if offset_pline_1_2 (vla-erase (vlax-ename-&amp;gt;vla-object offset_pline_1_2)))
				(if offset_pline_2_1 (vla-erase (vlax-ename-&amp;gt;vla-object offset_pline_2_1)))
				(if offset_pline_2_2 (vla-erase (vlax-ename-&amp;gt;vla-object offset_pline_2_2)))
		        (command "_pedit" offset_pline_1 "_j"
								  (vlax-vla-object-&amp;gt;ename border_1_line)
		        				  offset_pline_2
		        				  (vlax-vla-object-&amp;gt;ename border_2_line)
		        				  "" ""
		        )
		)
	)
	(vla-endundomark (vla-get-activedocument (vlax-get-acad-object)))
	(princ)
)
;********************************************************************************************************************************************************************&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 30 May 2023 14:49:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11998754#M29749</guid>
      <dc:creator>komondormrex</dc:creator>
      <dc:date>2023-05-30T14:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 Lisps with Yes/No and Add More Functionality</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11998982#M29750</link>
      <description>&lt;P&gt;Thank you very much&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13423916"&gt;@komondormrex&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;for the help and the original code. It's very much appreciated!!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 16:27:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/11998982#M29750</guid>
      <dc:creator>IanYeager</dc:creator>
      <dc:date>2023-05-30T16:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Combine 2 Lisps with Yes/No and Add More Functionality</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/12402208#M29751</link>
      <description>&lt;P&gt;You are always a magician with your codes. &lt;span class="lia-unicode-emoji" title=":face_screaming_in_fear:"&gt;😱&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 08:46:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/combine-2-lisps-with-yes-no-and-add-more-functionality/m-p/12402208#M29751</guid>
      <dc:creator>smallƑish</dc:creator>
      <dc:date>2023-11-27T08:46:47Z</dc:date>
    </item>
  </channel>
</rss>

