<?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: Draw transition lines between and arc and a line in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6541427#M262636</link>
    <description>&lt;P&gt;You can try this lisp, see spoiler.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;(vl-load-com)

(defun c:TransArc2Line ( / en1 en2 pt1 pt2 dst stp line)

  (if (and (setq en1 (car (entsel "\nSelect first arc/line: ")))
	   (wcmatch (cdr (assoc 0 (entget en1))) "ARC,LINE")
	   (setq en2 (car (entsel "\nSelect second arc/line: ")))
	   (wcmatch (cdr (assoc 0 (entget en2))) "ARC,LINE")
	   (setq stp (getint "\nNumber of steps: ")))
    (progn
      (if (= "LINE" (cdr (assoc 0 (entget en1))) (cdr (assoc 0 (entget en2))))
	(setq line T))
      (setq pt1 (list (vlax-curve-getStartPoint en1)
		      (vlax-curve-getPointAtDist en1 (/ (vlax-curve-getDistAtParam en1 (vlax-curve-getEndParam en1)) 2.))
		      (vlax-curve-getEndPoint en1))
	    pt2 (list (vlax-curve-getStartPoint en2)
		      (vlax-curve-getPointAtDist en2 (/ (vlax-curve-getDistAtParam en2 (vlax-curve-getEndParam en2)) 2.))
		      (vlax-curve-getEndPoint en2))
	    dst (mapcar '(lambda (x y) (/ (distance x y) (float stp))) pt1 pt2))
      (repeat (1- stp)
	(setq stp (1- stp))
	(if line
	  (command "_.LINE"
		   "_none" (polar (car pt1) (angle (car pt1) (car pt2)) (* stp (car dst)))
		   "_none" (polar (last pt1) (angle (last pt1) (last pt2)) (* stp (last dst)))
		   "")
	  (command "_.ARC"
		   "_none" (polar (car pt1) (angle (car pt1) (car pt2)) (* stp (car dst)))
		   "_none" (polar (cadr pt1) (angle (cadr pt1) (cadr pt2)) (* stp (cadr dst)))
		   "_none" (polar (last pt1) (angle (last pt1) (last pt2)) (* stp (last dst))))))))
  (princ)
)&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&lt;A href="http://www.lee-mac.com/runlisp.html" target="_self"&gt;HERE&lt;/A&gt;&amp;nbsp;is Lee's tutorial how to use lisp in case you don't know.&lt;/P&gt;</description>
    <pubDate>Sun, 04 Sep 2016 13:08:41 GMT</pubDate>
    <dc:creator>ВeekeeCZ</dc:creator>
    <dc:date>2016-09-04T13:08:41Z</dc:date>
    <item>
      <title>Draw transition lines between and arc and a line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6541144#M262629</link>
      <description>&lt;P&gt;i need to draw multiple parallel lines between the red arc and the red line as its shown on the image.&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="2016-09-03.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/269737i6ABB1C4EDDA4EA58/image-size/large?v=v2&amp;amp;px=999" role="button" title="2016-09-03.png" alt="2016-09-03.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;when i do this with offset i get this problem.... what i need is&amp;nbsp;a perfect transition, the rect line transfor into the arc.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2016-09-03 (1).png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/269739iD6BF60242F9BC01B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2016-09-03 (1).png" alt="2016-09-03 (1).png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thankss! and sorry for my english!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2016 02:01:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6541144#M262629</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-04T02:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Draw transition lines between and arc and a line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6541168#M262630</link>
      <description>&lt;P&gt;Looks like OFFSET command to me.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2016 03:28:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6541168#M262630</guid>
      <dc:creator>Patchy</dc:creator>
      <dc:date>2016-09-04T03:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Draw transition lines between and arc and a line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6541212#M262631</link>
      <description>&lt;P&gt;the problem with offset is what i show on the second image!!! i need that lines start&amp;nbsp;straight and end curved... and all this in a transition!!!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please somenonee???&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2016 05:14:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6541212#M262631</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-04T05:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Draw transition lines between and arc and a line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6541230#M262632</link>
      <description>&lt;P&gt;Dear Wizled&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am not sure about your query but from my end i have done something which may help you....i have done offset with multiple option and trimmed the unwanted entities. screen shot regarding the same is attached with&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2016 05:55:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6541230#M262632</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-04T05:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Draw transition lines between and arc and a line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6541259#M262633</link>
      <description>&lt;P&gt;thanks for your time! but the problem with that is that i need that at the end the lines touch the ground as &lt;STRONG&gt;straight&lt;/STRONG&gt; line, as i draw in the images that i attached.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2016 07:04:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6541259#M262633</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-04T07:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Draw transition lines between and arc and a line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6541302#M262634</link>
      <description>&lt;P&gt;The transition from curved to straight would not allow the lines to be parallel.&amp;nbsp; A slight variation is required.&amp;nbsp; See sample.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2016 08:24:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6541302#M262634</guid>
      <dc:creator>SEANT61</dc:creator>
      <dc:date>2016-09-04T08:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Draw transition lines between and arc and a line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6541304#M262635</link>
      <description>&lt;P&gt;It could be done with "almost parallel" arcs. &amp;nbsp;Divide the end lines, as well as a line connecting the two closest points between Arc and Line, by whatever sub-division you need (like 30 in my previous example). &amp;nbsp;Now use the Arc with 3 Pt. option, and snap (Node) to the corresponding division points. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2016 08:29:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6541304#M262635</guid>
      <dc:creator>SEANT61</dc:creator>
      <dc:date>2016-09-04T08:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Draw transition lines between and arc and a line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6541427#M262636</link>
      <description>&lt;P&gt;You can try this lisp, see spoiler.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;(vl-load-com)

(defun c:TransArc2Line ( / en1 en2 pt1 pt2 dst stp line)

  (if (and (setq en1 (car (entsel "\nSelect first arc/line: ")))
	   (wcmatch (cdr (assoc 0 (entget en1))) "ARC,LINE")
	   (setq en2 (car (entsel "\nSelect second arc/line: ")))
	   (wcmatch (cdr (assoc 0 (entget en2))) "ARC,LINE")
	   (setq stp (getint "\nNumber of steps: ")))
    (progn
      (if (= "LINE" (cdr (assoc 0 (entget en1))) (cdr (assoc 0 (entget en2))))
	(setq line T))
      (setq pt1 (list (vlax-curve-getStartPoint en1)
		      (vlax-curve-getPointAtDist en1 (/ (vlax-curve-getDistAtParam en1 (vlax-curve-getEndParam en1)) 2.))
		      (vlax-curve-getEndPoint en1))
	    pt2 (list (vlax-curve-getStartPoint en2)
		      (vlax-curve-getPointAtDist en2 (/ (vlax-curve-getDistAtParam en2 (vlax-curve-getEndParam en2)) 2.))
		      (vlax-curve-getEndPoint en2))
	    dst (mapcar '(lambda (x y) (/ (distance x y) (float stp))) pt1 pt2))
      (repeat (1- stp)
	(setq stp (1- stp))
	(if line
	  (command "_.LINE"
		   "_none" (polar (car pt1) (angle (car pt1) (car pt2)) (* stp (car dst)))
		   "_none" (polar (last pt1) (angle (last pt1) (last pt2)) (* stp (last dst)))
		   "")
	  (command "_.ARC"
		   "_none" (polar (car pt1) (angle (car pt1) (car pt2)) (* stp (car dst)))
		   "_none" (polar (cadr pt1) (angle (cadr pt1) (cadr pt2)) (* stp (cadr dst)))
		   "_none" (polar (last pt1) (angle (last pt1) (last pt2)) (* stp (last dst))))))))
  (princ)
)&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&lt;A href="http://www.lee-mac.com/runlisp.html" target="_self"&gt;HERE&lt;/A&gt;&amp;nbsp;is Lee's tutorial how to use lisp in case you don't know.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2016 13:08:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6541427#M262636</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2016-09-04T13:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Draw transition lines between and arc and a line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6541745#M262637</link>
      <description>&lt;P&gt;thanks!! thats what i need! but i dont undrstand what you do, you start with offset?? and then you modify end lines?&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2016 20:46:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6541745#M262637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-04T20:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Draw transition lines between and arc and a line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6541747#M262638</link>
      <description>&lt;P&gt;how you usen the this particular one? there is a command?&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2016 20:47:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6541747#M262638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-04T20:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Draw transition lines between and arc and a line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6542000#M262639</link>
      <description>&lt;P&gt;finally i undestand!!!! thank you very much!!!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2016 05:44:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6542000#M262639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-05T05:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Draw transition lines between and arc and a line</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6542034#M262640</link>
      <description>&lt;P&gt;The routine automates the process described by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/520839"&gt;@SEANT61﻿&lt;/a&gt;&amp;nbsp;into a few seconds job.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the&amp;nbsp;&lt;A href="http://autode.sk/2bQ50qQ" target="_self"&gt;SCREENCAST&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2016 07:04:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/draw-transition-lines-between-and-arc-and-a-line/m-p/6542034#M262640</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2016-09-05T07:04:15Z</dc:date>
    </item>
  </channel>
</rss>

