<?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: I want a lisp to draw break line (polyline) in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9569328#M73708</link>
    <description>You know, I don't think that stripes are laid out the same as we would curb&lt;BR /&gt;lines.  In the field the paint truck sets the paint and gap distances and&lt;BR /&gt;just drives down the road.  wherever they stop for a break they just start&lt;BR /&gt;again where they left off.  Approaching an intersection there is always a&lt;BR /&gt;long solid stripe of no exact length, so it all works out.&lt;BR /&gt;The problem we have is that we have become to think the way that AutoCAD&lt;BR /&gt;works... to 16 places of precision.  IMHO, plus or minus a few feet (a&lt;BR /&gt;meter) of a stripe doesn't mean boo.&lt;BR /&gt;I think the linetype approach is the best.  Just terminate the dashes where&lt;BR /&gt;it looks good, not mathematically.</description>
    <pubDate>Tue, 09 Jun 2020 13:30:32 GMT</pubDate>
    <dc:creator>john.uhden</dc:creator>
    <dc:date>2020-06-09T13:30:32Z</dc:date>
    <item>
      <title>I want a lisp to draw break line (polyline)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9564284#M73693</link>
      <description>&lt;P&gt;Hi, i want a lisp to make polylines like this. It is help to make road marking drawings. please help me.&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="56.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/780648iCFA167930AE6F1EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="56.PNG" alt="56.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2020 10:16:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9564284#M73693</guid>
      <dc:creator>kajanthangavel</dc:creator>
      <dc:date>2020-06-06T10:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: I want a lisp to draw break line (polyline)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9564394#M73694</link>
      <description>&lt;P&gt;A linetype with 6-unit-long dashes and 6-unit-long gaps is very easy to define.&amp;nbsp; Is there some reason you can't use something like that?&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2020 12:30:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9564394#M73694</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-06-06T12:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: I want a lisp to draw break line (polyline)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9564605#M73695</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6662555"&gt;@kajanthangavel&lt;/a&gt;&amp;nbsp; thanks for uploading the sample .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2020 16:48:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9564605#M73695</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2020-06-06T16:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: I want a lisp to draw break line (polyline)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9564733#M73696</link>
      <description>&lt;P&gt;Since you want the lines to be a certain length, a linetype may not be possible because the length will vary and the ends of the linetype will be slightly longer to make up the difference. Unless you make the linetype for each drawing scale you will be using for which I have done, the ends of the line situation still applies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would try using the measure command with a block and just enter your distance and then use the blocks as trimming limits and then erase the blocks. Sounds tedious I know but sometimes you gotta do what you gotta do to get the project done.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2020 19:16:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9564733#M73696</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-06T19:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: I want a lisp to draw break line (polyline)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9564823#M73697</link>
      <description>&lt;P&gt;You can modify the length of the line and the number of road markings.&lt;/P&gt;&lt;P&gt;try this please:&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-center" image-alt="MakeVialMarks.gif" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/780784i3BE93E9CA6F2E575/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MakeVialMarks.gif" alt="MakeVialMarks.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;;============================== C:MakeRoadMarking =============================================;;
;; Create road markings                                                                         ;;
;; Jose L. García G. - https://lamarmitadelcad.blogspot.com/  6/6/20                            ;;
;;==============================================================================================;;
(defun C:MakeRoadMarking (
			  /
			  eCurve oCurve PtInicEje PtFinEje *ColorMarks
			  PtInicEje PtFinEje RM:Pt1 ptAux1 ptAux2
			  listSecctions Alert1
			  ;|Functions|; MRM:ObjPt2VectTan MRM:grd&amp;gt; MRM:grdX
		     )
	;;----------------------- MRM:grdX ---------------------------------
	;; X on screen                                                      
	;;------------------------------------------------------------------
	(defun MRM:grdX (p col size / h)
	  (setq h (/ (getvar "viewsize") size))
	  (grdraw (list (- (car p) h) (- (cadr p) h))
	          (list (+ (car p) h) (+ (cadr p) h)) col 0)
	  (grdraw (list (- (car p) h) (+ (cadr p) h))
	          (list (+ (car p) h) (- (cadr p) h)) col 0)
	  t
	);c.defun
	;;----------------------- MRM:grd&amp;gt; ---------------------------------
	; &amp;gt; on screen                                                       
	;;------------------------------------------------------------------
	(defun MRM:grd&amp;gt; (oCurve p col size Invert / Aux DatTangent h p1 p2)
	 (setq DatTangent (MRM:ObjPt2VectTan oCurve p))
	 (setq p  (car DatTangent)
	       Ang (apply 'angle DatTangent))
	 (setq Aux (if Invert 0 pi))
	 (setq h (/ (getvar "viewsize") size))
	 (setq p1 (polar p (+ (- ang Aux) (/ pi 9)) h)
	       p2 (polar p (- (- ang Aux) (/ pi 9)) h))
	 (grdraw (trans p 0 1) (trans p1 0 1) col 0)
	 (grdraw (trans p 0 1) (trans p2 0 1) col 0)
	);c.defun

	;;------------------------ MRM:ObjPt2VectTan -------------------------
	(defun MRM:ObjPt2VectTan (vobj pnt / param p1 p2 deriv1)
	 (setq p1 (vlax-curve-getClosestPointTo vobj (trans pnt 1 0));punto en curva
	       param (vlax-curve-getParamAtPoint vobj p1)
	       deriv1 (vlax-curve-getFirstDeriv vobj param)    ;vector de direccion No point
	       p2 (mapcar '+ p1 deriv1))
	 (if (and p1 p2) (list p1 p2))
	);c.defun 
 ;;---------------------------- MAIN ----------------------------------------
 (setq cmd (getvar 'cmdecho))
 (setvar 'cmdecho 0)
 
 ;;Initial Values
 (or $NoMarks$  (setq $NoMarks$ 6))
 (or $LenMarks$ (setq $LenMarks$ 6.0))
 (setq *ColorMarks 2)
 
 (setq select T)
 (setq eCurve (entsel "\nSelect curve axis: "))
 (cond
  ((not eCurve)
   (prompt "\nNada seleccionado.")
  )
  ((and (setq eCurve (car eCurve))
        (wcmatch (cdr (assoc 0 (entget eCurve)))
		 "SPLINE,ELLIPSE,LINE,ARC,CIRCLE,*POLYLINE"))
   (setq oCurve (vlax-ename-&amp;gt;vla-object eCurve))
  )
  (T (prompt "\nInvalid Selection, select polyline, line, spline, Ellipse or Arc)"))
 )
 (cond
  (oCurve
   (setq PtInicEje (vlax-curve-getStartPoint oCurve)
	 PtFinEje  (vlax-curve-getEndPoint oCurve))
   (cond
    ((and
      (setq RM:Pt1 (vl-catch-all-apply
		     (function getpoint)
		     (list "\nStarting point of road marking: ")))
      (not (vl-catch-all-error-p pick_pt))
     )
     (vl-cmdf "_.undo" "_BE")
     (setq RM:Pt1 (vlax-curve-getClosestPointTo oCurve (trans RM:Pt1 1 0)))
     (MRM:grdX (trans RM:Pt1 0 1) 211 120)
     (MRM:grd&amp;gt; oCurve (trans RM:Pt1 0 1) 1 25 nil)
     (initget 6)
     (if (setq Tmp (getint (strcat "\nNumber of road markings;&amp;lt;" (itoa $NoMarks$) "&amp;gt;: ")))
      (setq $NoMarks$ Tmp)
     )
     (initget 38)
     (if (setq Tmp (getdist (trans RM:Pt1 0 1) (strcat "\nRoad marking length;&amp;lt;" (rtos $LenMarks$ 2) "&amp;gt;: ")))
      (setq $LenMarks$ Tmp)
     )
     (setq ptAux1 RM:Pt1)
     (repeat $NoMarks$
      (cond
       ((and ptAux1
	     (setq ptAux2 (vlax-curve-getPointAtDist oCurve
			   (+ (vlax-curve-getDistAtPoint oCurve ptAux1) $LenMarks$)))
	)
        (cond
	 ((setq oCopy (vla-Copy oCurve))
	  (setq eCopy (vlax-vla-object-&amp;gt;ename oCopy))
	  (vl-cmdf "_.BREAK" (list eCopy (trans PtInicEje 0 1)) (trans ptAux1 0 1))
	  (vl-cmdf "_.BREAK" (list eCopy (trans ptAux2 0 1)) (trans PtFinEje 0 1))
	  (vla-put-color oCopy *ColorMarks)
	  (setq listSecctions (cons (list ptAux1 ptAux2) listSecctions))
	  (setq ptAux1 (vlax-curve-getPointAtDist oCurve
		      (+ (vlax-curve-getDistAtPoint oCurve ptAux2) $LenMarks$)))
	 )
	);c.cond
       )
       (t (setq Alert1 T))
      );c.cond
     );c.pepeat
     (vl-cmdf "_.REGEN") ;optional
     (vl-cmdf "_.undo" "_E")
     (if listSecctions
      (mapcar
       (function
	(lambda (x) 
	 (MRM:grdX (trans (car  x) 0 1) 211 120)
 	 (MRM:grdX (trans (cadr x) 0 1) 211 120)
        )
       )
       listSecctions
      )
     );c.if
     (if Alert1
      (alert (strcat "The length of the stretch of road markings \n"
		     "exceeds the end of the curve axis."))
     );c.if
    );RM:Pt1
   );c.cond
  );oCurve
 );c.cond
 (setvar 'cmdecho cmd)
 (princ)
);c.defun
(princ)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 06 Jun 2020 21:06:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9564823#M73697</guid>
      <dc:creator>joselggalan</dc:creator>
      <dc:date>2020-06-06T21:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: I want a lisp to draw break line (polyline)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9564911#M73698</link>
      <description>&lt;P&gt;Here's an attempt I might use myself.&lt;/P&gt;
&lt;P&gt;Read my embedded remarks.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun C:Stripe ( / *error* vars vals e plen len gap nstripes p1 p2)
   ;; John F. Uhden, Sea Girt, NJ, USA
   ;; Program breaks a polyline into user-specified stripe and gap lengths.
 
   ;; v1.0 (6-06-2020)
   ;; dedicated to &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6662555"&gt;@kajanthangavel&lt;/a&gt;
   
   ;; NOTE:
   ;; It creates perfect stripes and gaps at the beginning of the polyline,
   ;; but there is likely to be a lengthy leftover stripe at the end.
   ;; This version does not allow for picking the starting and ending points,
   ;; and always works from the beginning toward the end as drawn.
   ;; dft-len and dft-gap are global (defaults for subsequent runs in same session)

   (gc)
   (vl-load-com)
   (princ "\nStripe (c)2020, John F. Uhden")
   (defun *error* (error)
     (mapcar 'setvar vars vals)
     (vla-endundomark *doc*)
     (cond
       ((not error))
       ((wcmatch (strcase error) "*QUIT*,*CANCEL*"))
       (1 (princ (strcat "\nERROR: " error)))
     )
     (princ)
   )
   (setq vars '(cmdecho))
   (setq vals (mapcar 'getvar vars))
   (or *acad* (setq *acad* (vlax-get-acad-object)))
   (or *doc* (setq *doc* (vla-get-ActiveDocument *acad*)))
   (vla-endundomark *doc*)
   (vla-startundomark *doc*)
   (mapcar 'setvar vars '(0))
   (command "_.expert" (getvar "expert")) ;; dummy command
   (and
     (setq e (car (entsel "\nSelect polyline: ")))
     (setq obj (vlax-ename-&amp;gt;vla-object e))
     (or
       (= (vlax-get Obj 'ObjectName) "AcDbPolyline")
       (prompt "\nObject selected is not a LWpolyline.")
     )
     (or (= (type dft-len) 'REAL)(setq dft-len 6.0))
     (not (initget 6))
     (if (setq len (getdist (strcat "\nLength of stripe &amp;lt;" (rtos dft-len (getvar "lunits") 2) "&amp;gt;: ")))
       (setq dft-len len)
       (setq len dft-len)
     )
     (or (= (type dft-gap) 'REAL)(setq dft-gap 6.0))
     (not (initget 6))
     (if (setq gap (getdist (strcat "\nLength of gap between stripes &amp;lt;" (rtos dft-gap (getvar "lunits") 2) "&amp;gt;: ")))
       (setq dft-gap gap)
       (setq gap dft-gap)
     )
     (setq plen (vlax-curve-getdistatparam e (vlax-curve-getendparam e)))
     (setq nstripes (fix (/ plen (+ len gap))))
     (repeat nstripes
       (setq p1 (vlax-curve-getpointatdist e len)
                  p2 (vlax-curve-getpointatdist e (+ len gap))
       )
       (vl-cmdf "_.break" e  "_non" p1 "_non" p2)
       (setq e (entlast))
     )
   )
   (*error* nil)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 06 Jun 2020 23:03:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9564911#M73698</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2020-06-06T23:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: I want a lisp to draw break line (polyline)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9564951#M73699</link>
      <description>&lt;P&gt;I don't understand why line types are no good I have about 6 for road marking one being equal so a 6 x 6 is just lt scale 6, pick start point then trim out section for length required. It can have some smarts added to the trim to make sure works correct a dashed line is not always in a road a perfect length rather the repeating pattern is required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Agree with John a factor to make linetype look good, equal end gap or start point, end point linetype auto adjusts can use group to make into a sort of 1 object.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 00:40:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9564951#M73699</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2020-06-07T00:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: I want a lisp to draw break line (polyline)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9565044#M73700</link>
      <description>&lt;P&gt;A line type measurements are wrong start, end and vertex points&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 04:13:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9565044#M73700</guid>
      <dc:creator>kajanthangavel</dc:creator>
      <dc:date>2020-06-07T04:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: I want a lisp to draw break line (polyline)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9565056#M73701</link>
      <description>&lt;P&gt;Thanks to &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1258356"&gt;@joselggalan&lt;/a&gt;. it is working well. I saved lots of time.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 04:45:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9565056#M73701</guid>
      <dc:creator>kajanthangavel</dc:creator>
      <dc:date>2020-06-07T04:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: I want a lisp to draw break line (polyline)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9565057#M73702</link>
      <description>&lt;P&gt;It is something different. it break full line and existing line too. i not need this. but anyway thanks to &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3930636"&gt;@john.uhden&lt;/a&gt; for respond me..&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 04:48:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9565057#M73702</guid>
      <dc:creator>kajanthangavel</dc:creator>
      <dc:date>2020-06-07T04:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: I want a lisp to draw break line (polyline)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9565417#M73703</link>
      <description>What do you mean by two lines?&lt;BR /&gt;The program lets you pick only one.&lt;BR /&gt;But maybe you want to retain the original.&lt;BR /&gt;I can fix that by making a copy and breaking the copy.</description>
      <pubDate>Sun, 07 Jun 2020 15:07:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9565417#M73703</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2020-06-07T15:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: I want a lisp to draw break line (polyline)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9566878#M73704</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6662555"&gt;@kajanthangavel&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;A line type measurements are wrong start, end and vertex points&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not if the overall length is correct.&amp;nbsp; In your example, the overall extent from beginning to end is 66 units.&amp;nbsp; For any 66-unit-long path object, this simple definition:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;*&lt;FONT color="#99CCFF"&gt;TEST&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;A,6,-6&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;gives this kind of result, exactly what you're looking for as far as I can tell:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Linetype6x6.PNG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/781197iCE226F6B25F12E6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Linetype6x6.PNG" alt="Linetype6x6.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Those are two &lt;EM&gt;single-object&lt;/EM&gt;&amp;nbsp; Polylines with width -- in this case 1 unit, but of course, use whatever width you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As long at the total length is a multiple of &lt;FONT color="#000000"&gt;&lt;STRONG&gt;6 x &lt;EM&gt;any odd number&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;, i.e. the number of dashes + the number of gaps, you'll get 6-unit dashes and 6-unit gaps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wouldn't it be simpler to [make a copy if you want the original retained, and] Break the path to &lt;EM&gt;one&lt;/EM&gt;&amp;nbsp; resultant 66-unit-long piece, than all those little separate pieces?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 13:05:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9566878#M73704</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-06-08T13:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: I want a lisp to draw break line (polyline)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9567124#M73705</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;P&gt;Wouldn't it be simpler to [make a copy if you want the original retained, and] Break the path to &lt;EM&gt;one&lt;/EM&gt;&amp;nbsp; resultant 66-unit-long piece, than all those little separate pieces?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;;| Dash6x6x6.lsp [command name the same]
To draw a dashed portion of 6-unit dashes &amp;amp; 6-unit gaps, quantity 6 dashes,
  over a portion of an existing path object of any finite type with linearity.
Requires that this linetype is loaded:
  *Dash6x6, Dashed with 6-unit dashes &amp;amp; 6-unit gaps
  A,6,-6
Kent Cooper, 8 June 2020
|;
(vl-load-com)
(defun C:Dash6x6x6
  (/ path pt1 pt2 drawndir)
  (if
    (and
      (setq path (car (entsel "\nPath object: ")))
      (wcmatch (cdr (assoc 0 (entget path))) "LINE,*POLYLINE,ARC,CIRCLE,ELLIPSE,SPLINE")
      (setq pt1 (vlax-curve-getClosestPointTo path (getpoint "\nStart of 6-dash group: ")))
      (setq pt2 (vlax-curve-getClosestPointTo path (getpoint "\nAny point in desired direction: ")))
    ); and
    (progn ; then
      (setq drawndir (&amp;lt; (vlax-curve-getDistAtPoint path pt1) (vlax-curve-getDistAtPoint path pt2)))
        ; T if direction from pt1 to pt2 is drawn direction of path, nil otherwise
      (if
        (or ; is there a point on path 66 units along?
          (and drawndir (vlax-curve-getPointAtDist path (+ (vlax-curve-getDistAtPoint path pt1) 66)))
          (and (not drawndir) (vlax-curve-getPointAtDist path (- (vlax-curve-getDistAtPoint path pt1) 66)))
        ); or
        (progn ; then -- proceed
          (command "_.copy" path "" "0,0" "0,0")
          (setq ; replacing original variable contents:
            path (entlast); the copy
            pt2
              (vlax-curve-getPointAtDist path
                (apply (if drawndir '+ '-) (list (vlax-curve-getDistAtPoint path pt1) 66))
              ); ...getPoint... &amp;amp; pt2
          ); setq
          (command
            "_.break" path
              "_none" (vlax-curve-getStartPoint path) "_none" (if drawndir pt1 pt2)
            "_.break" path
              "_none" (if drawndir pt2 pt1) "_none" (vlax-curve-getEndPoint path)
            "_.chprop" path "" "_ltype" "Dash6x6" ""
          ); command
        ); progn
        (prompt "\nPath not long enough in that direction."); else
      ); if [long enough in desired direction]
    ); progn
    (prompt "\nInappropriate object type or incomplete information."); else
  ); if [appropriate selection &amp;amp; complete inputs]
  (princ)
); defun&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It has an advantage over other suggestions [so far], in that it asks you which direction you want to go from your starting point, rather than always proceeding in the drawn direction of the path object, since you won't always know that drawn direction when you select a path object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I find in quickie testing that for a &lt;EM&gt;closed&lt;/EM&gt;&amp;nbsp; object such as a Circle, it can go in the wrong direction, depending on the relationships of the picked points to the start/end of the closed object, which again, you won't always know.&amp;nbsp; It could be enhanced to account for that, if needed, or to prevent use on closed objects if not needed.&amp;nbsp; It could also put the result on a different Layer, or give it a different color, or whatever other distinction from the original you prefer, and/or to turn it into a Polyline if it isn't already, in order to give it width.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On another note, I notice in your sample drawing that some of the resultant short Polylines follow the shape of the original path, and &lt;EM&gt;some do not&lt;/EM&gt;&amp;nbsp; [single-&lt;EM&gt;line&lt;/EM&gt;-segment ones making chords along&amp;nbsp;&lt;EM&gt;arc&lt;/EM&gt;&amp;nbsp; segments in the original].&amp;nbsp; I assumed that is not really what you want, and my suggestion follows the original's shape exactly throughout.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 14:48:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9567124#M73705</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-06-08T14:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: I want a lisp to draw break line (polyline)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9567357#M73706</link>
      <description>&lt;P&gt;One of the problems that can occur if line types are used is that they must be loaded from file, although the problem can be solved by code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;;------------------------------ MakeTLinHidden ---------------------------------------------;;
;; Create line type hidden parametric                                                        ;;
;; Example:  (MakeTLinHidden "Dash6x6" 1.0 0.5 nil)                                          ;;
;; Jose L. García G. - https://lamarmitadelcad.blogspot.com/  6/6/14                         ;;
;;-------------------------------------------------------------------------------------------;;
(defun MakeTLinHidden ( NameLt solid hide comment)
 (cond
  ((not (tblsearch "ltype" NameLt))
   (entmake
    (list
     '(0 . "LTYPE")'(100 . "AcDbSymbolTableRecord")'(100 . "AcDbLinetypeTableRecord")
     (cons 2 NameLt)
     '(70 . 0)
     (if comment
      (cons 3 comment)
      (cons 3  (strcat "Line type " NameLt " - - - - - - "))
     )
     '(72 . 65)'(73 . 2)
     (cons 40 (+ solid hide)) ;;total length
     (cons 49 solid) '(74 . 0)
     (cons 49 (- hide))'(74 . 0)
    )
   );c. entmake
   NameLt
  )
  (T
   (prompt (strcat "\nThe line type: [" NameLt "]. Already exists in the document"))
   nil
  )
 );c.cond
);c.defun&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using for this specific case:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(MakeTLinHidden "Dash6x6" 6.0 6.0 "Dashed with 6-unit dashes &amp;amp; 6-unit gaps")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another problem is the use of "ltscale" and "psltescale", these variables are not always set to "1" by all users when drawing or printing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 16:10:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9567357#M73706</guid>
      <dc:creator>joselggalan</dc:creator>
      <dc:date>2020-06-08T16:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: I want a lisp to draw break line (polyline)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9568189#M73707</link>
      <description>&lt;P&gt;Having worked on road designs for most of my life its very rare that you can have a road marking line segment exactly matching the required distance like 66. It is normally to match existing road patterns, so as I said earlier often you may have 63 then what ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Certainly road turn tapers you can set lengths, there are just to many statutory rules about linework on roads like breaks at vehicle entrances or if continued across you can not enter from the other side of the road. Bike lanes so much stuff comes to mind. Stop lines are broken pattern depends on width of intersection not a fixed length.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 00:48:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9568189#M73707</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2020-06-09T00:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: I want a lisp to draw break line (polyline)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9569328#M73708</link>
      <description>You know, I don't think that stripes are laid out the same as we would curb&lt;BR /&gt;lines.  In the field the paint truck sets the paint and gap distances and&lt;BR /&gt;just drives down the road.  wherever they stop for a break they just start&lt;BR /&gt;again where they left off.  Approaching an intersection there is always a&lt;BR /&gt;long solid stripe of no exact length, so it all works out.&lt;BR /&gt;The problem we have is that we have become to think the way that AutoCAD&lt;BR /&gt;works... to 16 places of precision.  IMHO, plus or minus a few feet (a&lt;BR /&gt;meter) of a stripe doesn't mean boo.&lt;BR /&gt;I think the linetype approach is the best.  Just terminate the dashes where&lt;BR /&gt;it looks good, not mathematically.</description>
      <pubDate>Tue, 09 Jun 2020 13:30:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9569328#M73708</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2020-06-09T13:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: I want a lisp to draw break line (polyline)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9569394#M73709</link>
      <description>&lt;P&gt;Nice work &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt; . some advantage. thanks &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 13:53:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9569394#M73709</guid>
      <dc:creator>kajanthangavel</dc:creator>
      <dc:date>2020-06-09T13:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: I want a lisp to draw break line (polyline)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9569398#M73710</link>
      <description>&lt;P&gt;ok. thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 13:56:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9569398#M73710</guid>
      <dc:creator>kajanthangavel</dc:creator>
      <dc:date>2020-06-09T13:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: I want a lisp to draw break line (polyline)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9570714#M73711</link>
      <description>&lt;P&gt;Your right the line painter guys have been doing it for years, so when the plans don't make sense they will make it work shorten or lengthen to suit.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 00:04:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-want-a-lisp-to-draw-break-line-polyline/m-p/9570714#M73711</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2020-06-10T00:04:20Z</dc:date>
    </item>
  </channel>
</rss>

