<?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: How to generate multiple alignments from multiple polylines. in Civil 3D Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/10050513#M109856</link>
    <description>&lt;P&gt;Thank you, much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have loaded the LISP successfully but when I run it, it says, "error, no function definition: GETDOC." Any idea how I can resolve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ntuthuko&lt;/P&gt;</description>
    <pubDate>Tue, 02 Feb 2021 12:35:35 GMT</pubDate>
    <dc:creator>Ntuthuko.</dc:creator>
    <dc:date>2021-02-02T12:35:35Z</dc:date>
    <item>
      <title>How to generate multiple alignments from multiple polylines.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9137424#M109838</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question that is related to automation of a simple task. My background is hydraulic modelling of water networks. A water network for a city can be an elaborate system. Civil3d has well devised import mechanism to import model data in shapefile format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For interference analysis, profile plotting and other allied tasks, the network pipes must have associated surface and alignments. Civil3d has multiple alignment generation options. However, it seems, all require significant man-hours (when it is a city scale branched network). I can dissolve the pipe network into polylines that can be used as objects for alignment generation. For each object, I left a unique integer ID in DF field (of the shapefile).&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mapimport Shape with unique ID for each polyline" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/696358i3330B9F819A2B70D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pic_01.jpg" alt="Mapimport Shape with unique ID for each polyline" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Mapimport Shape with unique ID for each polyline&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Create alignment from objects" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/696359iF3A03373ACF4CAB4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pic_02.jpg" alt="Create alignment from objects" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Create alignment from objects&lt;/span&gt;&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="Alignment generation definition to be replicated for each polyline object." style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/696360iA0174096B18AF561/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pic_03.jpg" alt="Alignment generation definition to be replicated for each polyline object." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Alignment generation definition to be replicated for each polyline object.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My question is, is there any application or script that can take the polylines and generate alignment for each polyline without requiring any user intervention? Attaching a sample file that contains the polyline objects that need to be converted into alignments. For the seven polyline objects in the file, I want to generate seven corresponding alignments; preferably named 'Alignment - DF'. The process should be automated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciate a quick response. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Nov 2019 21:55:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9137424#M109838</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-09T21:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multiple alignments from multiple polylines.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9138316#M109839</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp; First let me say Welcome to the Forum.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;First you can't have multiple alignments with the same name that I'm aware of as you show in your example xxxx-DF so there in lies some intervention to the automation that will require some form of input from the user. Now you can place a counter after the DF that would automate creating the alignment. But to create multiple without any user input would mean that the user doesn't know where they are or how they are created.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 00:21:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9138316#M109839</guid>
      <dc:creator>rl_jackson</dc:creator>
      <dc:date>2019-11-11T00:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multiple alignments from multiple polylines.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9139378#M109840</link>
      <description>&lt;P&gt;You would need a *.lsp routine for this. I recommend posting on the C3D customization forum &lt;A href="https://forums.autodesk.com/t5/civil-3d-customization/bd-p/190" target="_blank" rel="noopener"&gt;(here)&lt;/A&gt;&amp;nbsp;&amp;nbsp;for help with creating said lsp. While you can not have multiple alignments with the same name, you can have multiple alignments with the same description and use the description in place of the name for mast things.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 14:39:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9139378#M109840</guid>
      <dc:creator>cwr-pae</dc:creator>
      <dc:date>2019-11-11T14:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multiple alignments from multiple polylines.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9141590#M109841</link>
      <description>&lt;PRE&gt;;this routine converts polylines into Civil 3D Alignments
;significant thanks to Jeff Mishler for his help
(defun c:DES_CnvrtPlineToAlign ( / plss len ctr pl algns lblsets lblset 
									algnstys algnsty algn c3dnumber c3dproduct c3drelease c3ddoc appno
									acadapp acaddoc c3dapp)
(getdoc)
(prompt "\nSelect Polylines: ")
(setq plss (ssget)
	  len (sslength plss)
	  ctr 0)
	  
	  (while (&amp;lt; ctr len)
			  (setq pl (vlax-ename-&amp;gt;vla-object (ssname plss ctr)))
			  
				(if (= (vlax-get pl 'ObjectName) "AcDbPolyline")
					(progn
						(setq algns (vlax-get c3ddoc 'AlignmentsSiteless))
						(setq lblsets (vlax-get c3ddoc 'alignmentlabelstylesets)
							  lblset (vlax-get-property lblsets 'item "Major and Minor only")
							  algnstys (vlax-get c3ddoc 'AlignmentStyles)
							  algnsty (vlax-get-property algnstys 'Item "Proposed")
							  )
							  
						(setq algn (vlax-invoke-method algns 'addfrompolyline 
										"fromPolyline" ;new alignment name
										"C-ROAD" ;layer
										(vla-get-objectid pl) ;pline object id
										algnsty ;alignment style
										lblset  ;alignment label set
										:vlax-false ;add curves between tangents
										:vlax-false)  ;delete existing entites
						)
						
						
						))(setq ctr (1+ ctr)))(princ))
						
						
						
						
						
						
						

						
(defun getAecAppNumber (/ )
  (setq	C3Dproduct (strcat "HKEY_LOCAL_MACHINE\\"
			   (if vlax-user-product-key
			     (vlax-user-product-key)
			     (vlax-product-key)
			   )
		   )
	C3Drelease (vl-registry-read C3Dproduct "Release")
	C3Dnumber  (substr
		     C3Drelease
		     1
		     (vl-string-search
		       "."
		       C3Drelease
		       (+ (vl-string-search "." C3Drelease) 1)
		     )
		   )
  )
)

(defun getdoc ( / )

  (setq appno (getaecappnumber))

  (setq	acadapp	(vlax-get-acad-object)
	c3dapp	(vla-getinterfaceobject acadapp (strcat "AeccXUiLand.AeccApplication." appno))
	C3Ddoc	(vla-get-activedocument C3Dapp)
  )

)					;end function&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Nov 2019 14:53:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9141590#M109841</guid>
      <dc:creator>tcorey</dc:creator>
      <dc:date>2019-11-12T14:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multiple alignments from multiple polylines.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9143710#M109842</link>
      <description>&lt;P&gt;Thanks for your feedbacks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the confusion. My earlier question lacked details. The polylines are created from pipes dissolved into desired profile scopes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, the intention is 'not' to create alignments with same name. That's why, I have imported 'DF' variable (a field in the shape file with integer values 1,2,3...,7) as an object data associated with each polyline. So, if one polyline will have associated 'DF' object data as, say, '1' then, it's alignment will have name, 'Alignment -1' while the polyline with&amp;nbsp; 'DF' 5 will have Alignment named as 'Alignment-5'. That is the expectation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciate your insight.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 12:09:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9143710#M109842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-13T12:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multiple alignments from multiple polylines.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9143735#M109843</link>
      <description>&lt;P&gt;Thanks a lot for the lisp code! It 'almost' did what was requested. My earnest thanks to Mr. Mishlar for the lisp code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a&amp;nbsp;&lt;SPAN&gt;'DF' variable (a field in the shape file with integer values 1,2,3...,7) imported as object data associated with each polyline. So, if one polyline will have associated 'DF' object data as, say, '1' then, it's alignment will have name, 'Alignment -1' while the polyline with&amp;nbsp; 'DF' 5 will have Alignment named as 'Alignment-5' as so on. So, getting the naming part done will be a big help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It seems, the code skips polylines with only two vertices (lines with start and end vertex only). Is there a way to modify the code so that all polylines will be considered?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks a lot for your assistance. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Imtiaz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 12:30:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9143735#M109843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-13T12:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multiple alignments from multiple polylines.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9144023#M109844</link>
      <description>&lt;P&gt;@Anonymous , If you post a drawing that includes the object data, I can quickly make the naming change. Or tell me the name of the Object Data Table and the Field name from which to capture the number.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can't post, send to me directly:&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt; tcorey at shasta dot com&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;As far as skipping polylines with two vertices, I don't find that to be true. Maybe the entities are Lines, not Polylines. Use PEDIT command, Multiple, to turn them into Polylines, before running this LISP.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Tim&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 14:10:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9144023#M109844</guid>
      <dc:creator>tcorey</dc:creator>
      <dc:date>2019-11-13T14:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multiple alignments from multiple polylines.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9144216#M109845</link>
      <description>Code works fine for me although I had to amend the lblset and algnsty to ones I have in my template rather than the ones in the code</description>
      <pubDate>Wed, 13 Nov 2019 15:12:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9144216#M109845</guid>
      <dc:creator>neilyj666</dc:creator>
      <dc:date>2019-11-13T15:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multiple alignments from multiple polylines.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9146702#M109846</link>
      <description>&lt;P&gt;Dear Mr. Corey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your tip! Indeed, after pedit, multiple fix, all alignments were generated from the polyline file. I am attaching the polyline file. This is just a test case file. With each polyline, an object data variable 'DF' contains an integer value. Is there any way the Lisp code can be enhanced to collect the DF integer value and name the alignment created with it as a suffix? For example, if DF = 1, Alignment-1 or if If DF = 5, Alignment-5 and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imtiaz&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 14:42:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9146702#M109846</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-14T14:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multiple alignments from multiple polylines.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9147589#M109847</link>
      <description>&lt;P&gt;I should be able to do this by Monday...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 20:36:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9147589#M109847</guid>
      <dc:creator>tcorey</dc:creator>
      <dc:date>2019-11-14T20:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multiple alignments from multiple polylines.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9147971#M109848</link>
      <description>&lt;P&gt;Try this.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;;this routine converts polylines into Civil 3D Alignments
;significant thanks to Jeff Mishler for his help
;Rev B converts lines into polylines, with object data intact.No help from Jeff.
(defun c:DES_CnvrtPlineToAlign ( / plss len ctr pl algns lblsets lblset algnstys algnsty algn c3dnumber c3dproduct
									c3drelease c3ddoc appno acadapp acaddoc c3dapp)  
								   
									
(getdoc)
(prompt "\nSelect Polylines: ")
(setq plss (ssget)
	  len (sslength plss)
	  ctr 0)
	  
	  (setq algns (vlax-get c3ddoc 'AlignmentsSiteless))
						(setq lblsets (vlax-get c3ddoc 'alignmentlabelstylesets)
							  lblset (vlax-get-property lblsets 'item "Major and Minor only")
							  algnstys (vlax-get c3ddoc 'AlignmentStyles)
							  algnsty (vlax-get-property algnstys 'Item "Proposed")
							  )
	  
	  (while (&amp;lt; ctr len)
		      (setq ple (ssname plss ctr))
			  (setq pl (vlax-ename-&amp;gt;vla-object ple))
			  
				(cond ((= (vlax-get pl 'ObjectName) "AcDbPolyline")
					
						(getade)
						
							  
						(setq algn (vlax-invoke-method algns 'addfrompolyline 
										algnname ;new alignment name
										"C-ROAD" ;layer
										(vla-get-objectid pl) ;pline object id
										algnsty ;alignment style
										lblset  ;alignment label set
										:vlax-false ;add curves between tangents
										:vlax-false)  ;delete existing entites
						)
					   )
						
						
						((= (vlax-get pl 'ObjectName) "AcDbLine")
						 (getade)
						 (vl-cmdf "pedit" ple "y" "")
						 (setq newrecid (ade_odNewRecord "Alignment2"))
						 (setq ple (entlast))
						 (setq pl (vlax-ename-&amp;gt;vla-object ple))
						 (ade_odattachrecord ple newrecid)
						 (ade_odsetfield ple "alignment2" "DF"	0 namesfx)
						 (setq algn (vlax-invoke-method algns 'addfrompolyline 
										algnname ;new alignment name
										"C-ROAD" ;layer
										(vla-get-objectid pl) ;pline object id
										algnsty ;alignment style
										lblset  ;alignment label set
										:vlax-false ;add curves between tangents
										:vlax-false)  ;delete existing entites
						)
						 )
						 (t nil)
						 )
						 
						 
						 (setq ctr (1+ ctr))
       )
	(princ)
	)
						
						
	(defun getade ()
  (setq recno (ade_odgetrecord ple "Alignment2" 0))
  (setq namesfx (ade_odgetrecfield recno "DF"))
  (setq algnname (strcat "Alignment-" (itoa namesfx)))
  )					
						
						
						
						

						
(defun getAecAppNumber (/ )
  (setq	C3Dproduct (strcat "HKEY_LOCAL_MACHINE\\"
			   (if vlax-user-product-key
			     (vlax-user-product-key)
			     (vlax-product-key)
			   )
		   )
	C3Drelease (vl-registry-read C3Dproduct "Release")
	C3Dnumber  (substr
		     C3Drelease
		     1
		     (vl-string-search
		       "."
		       C3Drelease
		       (+ (vl-string-search "." C3Drelease) 1)
		     )
		   )
  )
)

(defun getdoc ( / )

  (setq appno (getaecappnumber))

  (setq	acadapp	(vlax-get-acad-object)
	c3dapp	(vla-getinterfaceobject acadapp (strcat "AeccXUiLand.AeccApplication." appno))
	C3Ddoc	(vla-get-activedocument C3Dapp)
  )

)					;end function&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Nov 2019 01:47:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9147971#M109848</guid>
      <dc:creator>tcorey</dc:creator>
      <dc:date>2019-11-15T01:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multiple alignments from multiple polylines.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9149136#M109849</link>
      <description>&lt;P&gt;Dear Mr. Corey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your solution! The code works flawlessly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imtiaz&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 14:54:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9149136#M109849</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-15T14:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multiple alignments from multiple polylines.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9541186#M109850</link>
      <description>&lt;P&gt;This is not working for me in version 2020. Is there a code change that needs to be made?&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 18:35:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9541186#M109850</guid>
      <dc:creator>txheed</dc:creator>
      <dc:date>2020-05-26T18:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multiple alignments from multiple polylines.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9541374#M109851</link>
      <description>&lt;P&gt;I would need to get a sample drawing from you. The code should work the same in 2020 as previous versions.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 19:48:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9541374#M109851</guid>
      <dc:creator>tcorey</dc:creator>
      <dc:date>2020-05-26T19:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multiple alignments from multiple polylines.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9555348#M109852</link>
      <description>&lt;P&gt;Attached is an example of the Road Centerlines&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command: DES_CNVRTPLINETOALIGN&lt;BR /&gt;Select Polylines:&lt;BR /&gt;Select objects: 1 found&lt;BR /&gt;Select objects:&lt;BR /&gt;; error: no function definition: VLAX-ENAME-&amp;gt;VLA-OBJECT&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 16:51:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/9555348#M109852</guid>
      <dc:creator>txheed</dc:creator>
      <dc:date>2020-06-02T16:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multiple alignments from multiple polylines.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/10050446#M109853</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I run this code? Do I paste it into the command line?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 12:07:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/10050446#M109853</guid>
      <dc:creator>Ntuthuko.</dc:creator>
      <dc:date>2021-02-02T12:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multiple alignments from multiple polylines.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/10050478#M109854</link>
      <description>&lt;P&gt;Open Notepad, paste the code and save as a new file e.g. "newfile.lsp" - make sure you put it in quotation marks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the Civil command line, APPLOAD and browse to the file just saved and load it - be aware it failed when I just tried&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the command line type&amp;nbsp; DES_CNVRTPLINETOALIGN&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;Select Polylines:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Select objects: Specify opposite corner: 8 found&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Select objects:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;; error: Automation Error. The parameter is incorrect.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Command:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 12:21:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/10050478#M109854</guid>
      <dc:creator>neilyj666</dc:creator>
      <dc:date>2021-02-02T12:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multiple alignments from multiple polylines.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/10050493#M109855</link>
      <description>&lt;P&gt;Hi There&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've loaded the lisp. When I run it, it says "error, no function definition GETDOC."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ntuthuko&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 12:28:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/10050493#M109855</guid>
      <dc:creator>Ntuthuko.</dc:creator>
      <dc:date>2021-02-02T12:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multiple alignments from multiple polylines.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/10050513#M109856</link>
      <description>&lt;P&gt;Thank you, much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have loaded the LISP successfully but when I run it, it says, "error, no function definition: GETDOC." Any idea how I can resolve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ntuthuko&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 12:35:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/10050513#M109856</guid>
      <dc:creator>Ntuthuko.</dc:creator>
      <dc:date>2021-02-02T12:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multiple alignments from multiple polylines.</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/10050600#M109857</link>
      <description>&lt;P&gt;No idea prhaps&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/47135"&gt;@tcorey&lt;/a&gt;&amp;nbsp;can assist..?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 13:08:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/how-to-generate-multiple-alignments-from-multiple-polylines/m-p/10050600#M109857</guid>
      <dc:creator>neilyj666</dc:creator>
      <dc:date>2021-02-02T13:08:23Z</dc:date>
    </item>
  </channel>
</rss>

