<?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 Create multiple lines by station offset in Civil 3D Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7987303#M147977</link>
    <description>&lt;P&gt;I think I remember seeing a solution to this a few years ago. But I haven't found it in a search. I have multiple State acquisition maps defined by Station-Offset. I has thought there was a way to create lines or points from a text file containing the stations and offsets. I know something can be done using the Survey command language but thought there was a simpler way. Anyone have any idea what I'm talking about?&lt;/P&gt;</description>
    <pubDate>Tue, 08 May 2018 13:45:06 GMT</pubDate>
    <dc:creator>AllenJessup</dc:creator>
    <dc:date>2018-05-08T13:45:06Z</dc:date>
    <item>
      <title>Create multiple lines by station offset</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7987303#M147977</link>
      <description>&lt;P&gt;I think I remember seeing a solution to this a few years ago. But I haven't found it in a search. I have multiple State acquisition maps defined by Station-Offset. I has thought there was a way to create lines or points from a text file containing the stations and offsets. I know something can be done using the Survey command language but thought there was a simpler way. Anyone have any idea what I'm talking about?&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 13:45:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7987303#M147977</guid>
      <dc:creator>AllenJessup</dc:creator>
      <dc:date>2018-05-08T13:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple lines by station offset</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7987582#M147978</link>
      <description>&lt;P&gt;Sounds simple enough with LISP. Post your file..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or use a script. Open the file, add the correct commands, saveas something.scr.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Back in AutoCAD, use the SCRIPT command to load and run the script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it was me, I would use LISP.&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 15:09:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7987582#M147978</guid>
      <dc:creator>tcorey</dc:creator>
      <dc:date>2018-05-08T15:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple lines by station offset</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7987609#M147979</link>
      <description>&lt;P&gt;Perhaps tranparent command 'SO&amp;nbsp; (Station &amp;amp; Offset) is all you need.&lt;/P&gt;
&lt;P&gt;Start&lt;/P&gt;
&lt;P&gt;Command: LINE 'SO&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (select Alignment once)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;repeat Station and Offset values&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With Lisp at the command Line you can ask for the Alignment first&amp;nbsp;(setq AL (car (entsel "Select alignment:")))&lt;/P&gt;
&lt;P&gt;and use&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LINE 'SO !AL 100 1 200 2 ....&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 15:17:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7987609#M147979</guid>
      <dc:creator>udo.huebner</dc:creator>
      <dc:date>2018-05-08T15:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple lines by station offset</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7987647#M147980</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/47135"&gt;@tcorey&lt;/a&gt;&amp;nbsp;Thanks. I was considering that. But I didn't know how to select the Alignment in Lisp.&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4201083"&gt;@udo.huebner&lt;/a&gt;&amp;nbsp;has provided me with that. Now it's just a lot of typing!&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 15:26:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7987647#M147980</guid>
      <dc:creator>AllenJessup</dc:creator>
      <dc:date>2018-05-08T15:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple lines by station offset</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7987680#M147981</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4201083"&gt;@udo.huebner&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LINE 'SO !AL 100 1 200 2 ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Thanks. I wanted to avoid doing this from the command line because there are bound to be some typo's. For a Script or Lisp. I can proof read the file before running and rerun it easily if there are any mistakes. I like the use of the ! in your routine to evaluate AL. Don't see that too much.&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 15:33:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7987680#M147981</guid>
      <dc:creator>AllenJessup</dc:creator>
      <dc:date>2018-05-08T15:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple lines by station offset</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7987891#M147982</link>
      <description>&lt;P&gt;Allen, if you do it with a LISP routine, what's to type, other than a few lines of code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you attach your text file, I can give you explicit instructions.&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 16:45:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7987891#M147982</guid>
      <dc:creator>tcorey</dc:creator>
      <dc:date>2018-05-08T16:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple lines by station offset</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7987936#M147983</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/47135"&gt;@tcorey&lt;/a&gt;&amp;nbsp;Every single Station and Offset from 16± acquisition maps. I can either do it right in the lisp or have the lisp call a script. Either way they would have to be typed. I'm thinking of bypassing this step and asking if the state have these coordinated.&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 17:06:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7987936#M147983</guid>
      <dc:creator>AllenJessup</dc:creator>
      <dc:date>2018-05-08T17:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple lines by station offset</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7987974#M147984</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/47135"&gt;@tcorey&lt;/a&gt;&amp;nbsp;I created a file that would represent the first map. It's SDF with the first column being the Station and the second being the offset. It takes a bit to glean these from the description. Their format is "to a point 308 feet northwesterly , measured at right angles, to statioin 106+64".&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 17:23:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7987974#M147984</guid>
      <dc:creator>AllenJessup</dc:creator>
      <dc:date>2018-05-08T17:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple lines by station offset</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7988027#M147985</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4201083"&gt;@udo.huebner&lt;/a&gt;&amp;nbsp;It look like I'm missing something. After running&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(setq AL (car (entsel "Select alignment:")))&amp;nbsp;and selecting an alignment;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(Command "Line" "'SO" !AL 10582 544) asks me to select an Alighment&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 17:46:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7988027#M147985</guid>
      <dc:creator>AllenJessup</dc:creator>
      <dc:date>2018-05-08T17:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple lines by station offset</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7988449#M147986</link>
      <description>&lt;P&gt;Request the full working 30-day evaluation of &lt;A title="Productivity Tools for Civil3D" href="http://www.dotsoft.com/c3dtools.htm" target="_blank"&gt;C3DTools&lt;/A&gt; and use it's Alignment Point Import tool.&amp;nbsp; It works with comma delimited and makes easy work out of space delimited by showing you the text file and letting you tell it the character positions and lengths, etc.&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="alipntimp.png" style="width: 781px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/498088i86BC19EB5F74C952/image-size/large?v=v2&amp;amp;px=999" role="button" title="alipntimp.png" alt="alipntimp.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course the coordinates won't match yours since I had to make up an alignment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 20:58:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7988449#M147986</guid>
      <dc:creator>TerryDotson</dc:creator>
      <dc:date>2018-05-08T20:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple lines by station offset</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7988794#M147987</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1685"&gt;@AllenJessup&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's some code that will ask for an alignment selection, then read your file line by line, placing an AutoCAD Point at the specified station and offset. It would be easy enough to make it create COGO Points, then you could draw line by point number, zip, done.&amp;nbsp; You will need to edit the code to your file name and path.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:go ( / DES_Alignment fl l1 sppos sta off xy l1) 
  (setq DES_Alignment (vlax-ename-&amp;gt;vla-object (car (entsel "\nSelect Alignment: "))))
  

  (while (not (= (vlax-get-property DES_Alignment 'ObjectName) "AeccDbAlignment"))
    (setq DES_Alignment (vlax-ename-&amp;gt;vla-object (car (entsel "\nSelect Alignment: "))))
    )
  (setq fl (open "E:\\_Support\\_Usenet\\20180508 Allen Jessup Lines by Sta-Off from file\\142_152.txt" "r"))
  (setq l1 (read-line fl))
  (while (and l1)
  
  (setq sppos (vl-string-position 32 l1))
    (setq sta (substr l1 1 sppos))
    (setq off (substr l1 (+ sppos 2) ))
	(vlax-invoke-method DES_Alignment 'PointLocation (atof sta) (atof off) 'x 'y)
	(setq xy (list x y))
	
	(vl-cmdf "Point" xy)
	
	(setq l1 (read-line fl))
	
	
	
  
  );end while
  (close fl) 
  (princ)
  );end defun&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 May 2018 01:12:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7988794#M147987</guid>
      <dc:creator>tcorey</dc:creator>
      <dc:date>2018-05-09T01:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple lines by station offset</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7988810#M147988</link>
      <description>&lt;P&gt;Better yet, this draws the lines:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:go ( / DES_Alignment fl l1 sppos sta off xy l1) 
  (setq DES_Alignment (vlax-ename-&amp;gt;vla-object (car (entsel "\nSelect Alignment: "))))
  

  (while (not (= (vlax-get-property DES_Alignment 'ObjectName) "AeccDbAlignment"))
    (setq DES_Alignment (vlax-ename-&amp;gt;vla-object (car (entsel "\nSelect Alignment: "))))
    )
  (setq fl (open "E:\\_Support\\_Usenet\\20180508 Allen Jessup Lines by Sta-Off from file\\142_152.txt" "r"))
  (setq l1 (read-line fl))
  (setq lins (ssadd))
  (while (and l1)
  
  (setq sppos (vl-string-position 32 l1))
    (setq sta (substr l1 1 sppos))
    (setq off (substr l1 (+ sppos 2) ))
	(vlax-invoke-method DES_Alignment 'PointLocation (atof sta) (atof off) 'x 'y)
	(setq xy (list x y))
	
	(vl-cmdf "Point" xy)
	(ssadd (entlast) lins)
	
	
	(setq l1 (read-line fl))
	
	
	
  
  );end while
  (setq ctr 0
		len (sslength lins)
		)
		(while (&amp;lt; ctr len)
		(setq p1 (vlax-get (vlax-ename-&amp;gt;vla-object (ssname lins ctr)) 'Coordinates))
		
		(setq p2 (vlax-get (vlax-ename-&amp;gt;vla-object (ssname lins (+ ctr 1))) 'Coordinates))
		(if (and p2) (vl-cmdf "Line" p1 p2 ""))
		(setq ctr (1+ ctr))
		)
  (close fl) 
  (princ)
  );end defun
  
  
  &lt;/PRE&gt;</description>
      <pubDate>Wed, 09 May 2018 01:30:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7988810#M147988</guid>
      <dc:creator>tcorey</dc:creator>
      <dc:date>2018-05-09T01:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple lines by station offset</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7989844#M147989</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/655764"&gt;@TerryDotson&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;f course the coordinates won't match yours since I had to make up an alignment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 12:13:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7989844#M147989</guid>
      <dc:creator>AllenJessup</dc:creator>
      <dc:date>2018-05-09T12:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple lines by station offset</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7990011#M147990</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/47135"&gt;@tcorey&lt;/a&gt;&amp;nbsp;Thank you. However I'm getting an error that is confusing me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Select Alignment: Point&lt;BR /&gt;Current point modes: PDMODE=0 PDSIZE=0.00000&lt;BR /&gt;Specify a point:&lt;BR /&gt;Command: Point&lt;BR /&gt;Current point modes: PDMODE=0 PDSIZE=0.00000&lt;BR /&gt;Specify a point:&lt;BR /&gt;Command: Point&lt;BR /&gt;Current point modes: PDMODE=0 PDSIZE=0.00000&lt;BR /&gt;Specify a point:&lt;BR /&gt;Command: Point&lt;BR /&gt;Current point modes: PDMODE=0 PDSIZE=0.00000&lt;BR /&gt;Specify a point:&lt;BR /&gt;Command: Point&lt;BR /&gt;Current point modes: PDMODE=0 PDSIZE=0.00000&lt;BR /&gt;Specify a point:&lt;BR /&gt;Command: Point&lt;BR /&gt;Current point modes: PDMODE=0 PDSIZE=0.00000&lt;BR /&gt;Specify a point:&lt;BR /&gt;Command: ; error: Automation Error. Invalid input&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not too good at lisp. But it looks like it stops at: (vl-cmdf "Point" xy). I tried setting PDMODE and PDSIZE to 1..0 but it just repeats the error with 1.00000 instead of 0.00000.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I changed the function name and the path in the code. I'll attach the file I'm using if you want to check what I have done.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 13:11:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7990011#M147990</guid>
      <dc:creator>AllenJessup</dc:creator>
      <dc:date>2018-05-09T13:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple lines by station offset</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7990583#M147991</link>
      <description>&lt;P&gt;Automation error. That's a version problem, I think. What version are you using?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using 2018.2/2019. Both work. When I run the routine,&amp;nbsp; I get an expected error at the end, but the lines &lt;STRONG&gt;are&lt;/STRONG&gt; drawn.&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;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;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>Wed, 09 May 2018 16:11:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7990583#M147991</guid>
      <dc:creator>tcorey</dc:creator>
      <dc:date>2018-05-09T16:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple lines by station offset</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7990592#M147992</link>
      <description>&lt;P&gt;I'm using 2017&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 16:14:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7990592#M147992</guid>
      <dc:creator>AllenJessup</dc:creator>
      <dc:date>2018-05-09T16:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple lines by station offset</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7990652#M147993</link>
      <description>&lt;P&gt;I found an omission that may have been causing that automation error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the LISP, with the omission fixed and with a fix for&amp;nbsp;a benign error I was getting after the lines finished being added.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:go ( / DES_Alignment fl l1 sppos sta off xy l1) &lt;BR /&gt;  (vl-load-com)
  (setq DES_Alignment (vlax-ename-&amp;gt;vla-object (car (entsel "\nSelect Alignment: "))))
 

  (while (not (= (vlax-get-property DES_Alignment 'ObjectName) "AeccDbAlignment"))
    (setq DES_Alignment (vlax-ename-&amp;gt;vla-object (car (entsel "\nSelect Alignment: "))))
    )
  (setq fl (open "E:\\_Support\\_Usenet\\20180508 Allen Jessup Lines by Sta-Off from file\\142_152.txt" "r"))
  (setq l1 (read-line fl))
  (setq lins (ssadd))
  (while (and l1)
  
  (setq sppos (vl-string-position 32 l1))
    (setq sta (substr l1 1 sppos))
    (setq off (substr l1 (+ sppos 2) ))
	(vlax-invoke-method DES_Alignment 'PointLocation (atof sta) (atof off) 'x 'y)
	(setq xy (list x y))
	
	(vl-cmdf "Point" xy)
	(ssadd (entlast) lins)
	
	
	(setq l1 (read-line fl))
	
	
	
  
  );end while
  (setq ctr 0
		len (sslength lins)
		)
		(while (&amp;lt; ctr len)
		(setq p1 (vlax-get (vlax-ename-&amp;gt;vla-object (ssname lins ctr)) 'Coordinates))
		(if (&amp;lt; (+ ctr 1) len) 
			(progn
				(setq p2 (vlax-get (vlax-ename-&amp;gt;vla-object (ssname lins (+ ctr 1))) 'Coordinates))
				(vl-cmdf "Line" p1 p2 "")
				)
			)
		
		
		(setq ctr (1+ ctr))
		)
  (close fl) 
  (princ)
  );end defun&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 May 2018 16:41:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7990652#M147993</guid>
      <dc:creator>tcorey</dc:creator>
      <dc:date>2018-05-09T16:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple lines by station offset</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7990825#M147994</link>
      <description>&lt;P&gt;Now it's:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Select Alignment: ; error: no function definition: GETDOC&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 17:41:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7990825#M147994</guid>
      <dc:creator>AllenJessup</dc:creator>
      <dc:date>2018-05-09T17:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple lines by station offset</title>
      <link>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7990854#M147995</link>
      <description>&lt;P&gt;Get the code again. I saw that and edited it out of my response.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 17:56:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-forum/create-multiple-lines-by-station-offset/m-p/7990854#M147995</guid>
      <dc:creator>tcorey</dc:creator>
      <dc:date>2018-05-09T17:56:59Z</dc:date>
    </item>
  </channel>
</rss>

