<?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: Profile from 3D Polyline in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/profile-from-3d-polyline/m-p/5829037#M138275</link>
    <description>&lt;P&gt;This works, but it has been flogged half to generate. The attachment Cprof.lsp made by PBAJSE. Thank you PBAJSE. The lisp to complete generate profiles. But some of these flaws, it is native to only straight line to block. It may be generated in the direction (along) of polyline is possible.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Sep 2015 07:44:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-09-23T07:44:46Z</dc:date>
    <item>
      <title>Profile from 3D Polyline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/profile-from-3d-polyline/m-p/5825544#M138273</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Please help us this topic, I&lt;/SPAN&gt; &lt;SPAN&gt;want to make&lt;/SPAN&gt; &lt;SPAN&gt;the profile&lt;/SPAN&gt; &lt;SPAN&gt;of&lt;/SPAN&gt; &lt;SPAN&gt;the 3D&lt;/SPAN&gt; &lt;SPAN&gt;polyline&lt;/SPAN&gt;. &lt;SPAN&gt;Please see&lt;/SPAN&gt; &lt;SPAN&gt;attached&lt;/SPAN&gt; &lt;SPAN&gt;sample&lt;/SPAN&gt; &lt;SPAN&gt;file&lt;/SPAN&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 11:59:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/profile-from-3d-polyline/m-p/5825544#M138273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-21T11:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Profile from 3D Polyline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/profile-from-3d-polyline/m-p/5827354#M138274</link>
      <description>&lt;P&gt;Try this quickly adjusted&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper﻿&lt;/a&gt;'s routine unfold.lsp. Thx Kent, hope you don't mind &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I don't know what vertical scale do you use/want. So in the code there is the note, change it as you like. (we're using y=10*x scale)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;(vl-load-com)

(defun C:PL2Profile (/ pt3d-&amp;gt;2d ss en pt1 pt2 dpts)

  (defun pt3d-&amp;gt;2d (pt / ) (reverse (cons 0. (cdr (reverse pt)))))
  
  (prompt "\nRequired a SINGLE 3D Polyline,")
  (if (and (setq ss (ssget "_+.:E:S" '((0 . "POLYLINE"))))
	   (= 1 (sslength ss))
	   (setq en (ssname ss 0)))
    (progn
      (repeat (setq par (fix (vlax-curve-getEndParam en)))
	(setq pt1 (vlax-curve-getPointAtParam en par)
	      pt2 (vlax-curve-getPointAtPAram en (setq par (1- par)))
	      dpts (cons (list (distance (pt3d-&amp;gt;2d pt1)
					 (pt3d-&amp;gt;2d pt2))
			       (- (last pt2)
				  (last pt1)))
			 dpts)))
      (command "_.pline") (princ " ...for the profile: ") (command PAUSE)
      (repeat (length dpts)
	(command "_none" (polar (polar (getvar 'LASTPOINT)
				       0
				       (caar dpts))
				(* 0.5 pi)
				(* (cadar dpts) 10))) ; Evelation scale (profile's y)
	(setq dpts (cdr dpts)))
      (command "")))
)&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2015 11:41:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/profile-from-3d-polyline/m-p/5827354#M138274</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2015-09-22T11:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Profile from 3D Polyline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/profile-from-3d-polyline/m-p/5829037#M138275</link>
      <description>&lt;P&gt;This works, but it has been flogged half to generate. The attachment Cprof.lsp made by PBAJSE. Thank you PBAJSE. The lisp to complete generate profiles. But some of these flaws, it is native to only straight line to block. It may be generated in the direction (along) of polyline is possible.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2015 07:44:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/profile-from-3d-polyline/m-p/5829037#M138275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-23T07:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Profile from 3D Polyline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/profile-from-3d-polyline/m-p/5829071#M138276</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;This works, but it has been flogged half to generate. The attachment Cprof.lsp made by PBAJSE. Thank you PBAJSE. The lisp to complete generate profiles. But some of these flaws, it is native to only straight line to block. It may be generated in the direction (along) of polyline is possible.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Unfortunately I don't understand what you mean by "flogged half to generate". My routine works for me, see result on . I did not dig into it... just wondering, why these two routines gives different result.&lt;BR /&gt;PS. Somehow I can't run pBes routine (not digged more into)&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2015 08:11:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/profile-from-3d-polyline/m-p/5829071#M138276</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2015-09-23T08:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Profile from 3D Polyline</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/profile-from-3d-polyline/m-p/5829140#M138277</link>
      <description>&lt;P&gt;I mean to say is that the PL2Profile Lisp Generate only ground profile. Does not show the detail of elevation and chainage. And Cprof.lsp you will select all the blocks that have all the details is Generate. did you select the whole block.&lt;/P&gt;&lt;P&gt;Here is the reason for the difference in profile, cprof.lsp Lisp Generate the liner distance that is wrong.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2015 09:11:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/profile-from-3d-polyline/m-p/5829140#M138277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-23T09:11:55Z</dc:date>
    </item>
  </channel>
</rss>

