<?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 Station and offset of 105 COGO points in relation to 291 alignments in Civil 3D Customization Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/station-and-offset-of-105-cogo-points-in-relation-to-291/m-p/13050496#M1259</link>
    <description>&lt;P&gt;I am working with Civil 3D and need to calculate the station and offset of 105 COGO points in relation to 291 alignments. Is there is a way to do all of this at once.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Sep 2024 17:08:19 GMT</pubDate>
    <dc:creator>K_Aboumosalam</dc:creator>
    <dc:date>2024-09-27T17:08:19Z</dc:date>
    <item>
      <title>Station and offset of 105 COGO points in relation to 291 alignments</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/station-and-offset-of-105-cogo-points-in-relation-to-291/m-p/13050496#M1259</link>
      <description>&lt;P&gt;I am working with Civil 3D and need to calculate the station and offset of 105 COGO points in relation to 291 alignments. Is there is a way to do all of this at once.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 17:08:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/station-and-offset-of-105-cogo-points-in-relation-to-291/m-p/13050496#M1259</guid>
      <dc:creator>K_Aboumosalam</dc:creator>
      <dc:date>2024-09-27T17:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Station and offset of 105 COGO points in relation to 291 alignments</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/station-and-offset-of-105-cogo-points-in-relation-to-291/m-p/13050722#M1260</link>
      <description>&lt;P&gt;It can be written in LISP using the COM API or it can be written in C# or VB using the .NET API. Using either API you can get the necessary information from the Cogo Point to use in the calculation of the station and offset from the alignment. What do you imagine for the output?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 19:02:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/station-and-offset-of-105-cogo-points-in-relation-to-291/m-p/13050722#M1260</guid>
      <dc:creator>hippe013</dc:creator>
      <dc:date>2024-09-27T19:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Station and offset of 105 COGO points in relation to 291 alignments</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/station-and-offset-of-105-cogo-points-in-relation-to-291/m-p/13051057#M1261</link>
      <description>&lt;P&gt;Can you attached example drawing&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 22:46:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/station-and-offset-of-105-cogo-points-in-relation-to-291/m-p/13051057#M1261</guid>
      <dc:creator>hosneyalaa</dc:creator>
      <dc:date>2024-09-27T22:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Station and offset of 105 COGO points in relation to 291 alignments</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/station-and-offset-of-105-cogo-points-in-relation-to-291/m-p/13051316#M1262</link>
      <description>&lt;P&gt;Thanks for your help, I just need the information to be like this:&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Point Number&lt;/TD&gt;&lt;TD&gt;Easting&lt;/TD&gt;&lt;TD&gt;Northing&lt;/TD&gt;&lt;TD&gt;Elevation&lt;/TD&gt;&lt;TD&gt;Raw Description&lt;/TD&gt;&lt;TD&gt;Compare to Alignment&lt;/TD&gt;&lt;TD&gt;Compared Station&lt;/TD&gt;&lt;TD&gt;Compared Easting&lt;/TD&gt;&lt;TD&gt;Compared Northing&lt;/TD&gt;&lt;TD&gt;Compared Elevation&lt;/TD&gt;&lt;TD&gt;Compared Offset (XY)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sat, 28 Sep 2024 04:29:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/station-and-offset-of-105-cogo-points-in-relation-to-291/m-p/13051316#M1262</guid>
      <dc:creator>K_Aboumosalam</dc:creator>
      <dc:date>2024-09-28T04:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Station and offset of 105 COGO points in relation to 291 alignments</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/station-and-offset-of-105-cogo-points-in-relation-to-291/m-p/13051320#M1263</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 817px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1415452i9D589DB579471171/image-dimensions/817x554?v=v2" width="817" height="554" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have attached a screenshot as a ref.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Sep 2024 04:30:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/station-and-offset-of-105-cogo-points-in-relation-to-291/m-p/13051320#M1263</guid>
      <dc:creator>K_Aboumosalam</dc:creator>
      <dc:date>2024-09-28T04:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Station and offset of 105 COGO points in relation to 291 alignments</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/station-and-offset-of-105-cogo-points-in-relation-to-291/m-p/13054822#M1264</link>
      <description>&lt;P&gt;Most of your export values are self-explanatory, however, some of them could use further clarification.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Compare Alignment = Name of Alignment, simple enough&lt;/P&gt;&lt;P&gt;Compared Station = Station Value of the Cogo, but what happens when there is no station solution? Use the closest point?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Compared Easting = I assume that this is the easting of the point on Alignment, but what value should be used when no solution exists?&amp;nbsp;Use the closest point?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Compared Northing = same as above compared Easting, what value when no solution exists?&amp;nbsp;Use the closest point?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Compared Elevation = not sure what you want here, the elevation of the input cogo point?&lt;/P&gt;&lt;P&gt;Compared Offset (XY) = not sure what you want for this, the (XY) is throwing me off, typically the offset value is the distance from the point directly to the alignment, and if that is the case, what value for when there is no station solution?&amp;nbsp;Use the closest point?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be helpful to clarify the above values.&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>Mon, 30 Sep 2024 13:35:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/station-and-offset-of-105-cogo-points-in-relation-to-291/m-p/13054822#M1264</guid>
      <dc:creator>hippe013</dc:creator>
      <dc:date>2024-09-30T13:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Station and offset of 105 COGO points in relation to 291 alignments</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/station-and-offset-of-105-cogo-points-in-relation-to-291/m-p/13056304#M1265</link>
      <description>&lt;P&gt;Compare Alignment = Name of Alignment, simple enough &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;Correct&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Compared Station = Station Value of the Cogo, but what happens when there is no station solution? Use the closest point? &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;No, please keep it blank.&amp;nbsp;if no intersection between the point and an aligment the value shall be blank.&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Compared Easting = I assume that this is the easting of the point on Alignment, but what value should be used when no solution exists?&amp;nbsp;Use the closest point?&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;please keep it blank.&amp;nbsp;if no intersection between the point and an aligment the value shall be blank.&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Compared Northing = same as above compared Easting, what value when no solution exists?&amp;nbsp;Use the closest point?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;please keep it blank.&amp;nbsp;if no intersection between the point and an aligment the value shall be blank.&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Compared Elevation = not sure what you want here, the elevation of the input cogo point?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;Need the elevation of the new point on alignment.&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Compared Offset (XY) = not sure what you want for this, the (XY) is throwing me off, typically the offset value is the distance from the point directly to the alignment, and if that is the case, what value for when there is no station solution?&amp;nbsp;Use the closest point? &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;Yes, I mean the direct value from point to alignment, if no intersection between the point and an aligment the value shall be blank.&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 04:53:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/station-and-offset-of-105-cogo-points-in-relation-to-291/m-p/13056304#M1265</guid>
      <dc:creator>K_Aboumosalam</dc:creator>
      <dc:date>2024-10-01T04:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Station and offset of 105 COGO points in relation to 291 alignments</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/station-and-offset-of-105-cogo-points-in-relation-to-291/m-p/13057447#M1266</link>
      <description>&lt;P&gt;We can ignore the fact that you will end up with 30,555 results by comparing 105 cogo points with 291 alignments.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let us consider an example and work out the details using LISP and the COM API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hippe013_0-1727791839816.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1416475i2CC018B48518D8E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hippe013_0-1727791839816.png" alt="hippe013_0-1727791839816.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the figure above point 'A' lies in an area where there is not a solution for the station &amp;amp; offset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Point 'A' Coordinates (X Y) and the following method:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(vlax-invoke-method align 'StationOffset x y 'Station 'Offset)&lt;/LI-CODE&gt;&lt;P&gt;Station = 0.0&lt;/P&gt;&lt;P&gt;Offset = 0.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can get the closest point ("point on line" pol) on the alignment using the following method:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(setq pol (vlax-curve-getClosestPointTo align (list x y)))&lt;/LI-CODE&gt;&lt;P&gt;then using that point 'pol' we can get the station &amp;amp; offset again using this point.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(vlax-invoke-method align 'StationOffset (car pol) (cadr pol) 'Station2 'Offset2)&lt;/LI-CODE&gt;&lt;P&gt;Station2 = 50.11&lt;/P&gt;&lt;P&gt;Offset2 = 0.00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, we could say that since station &amp;amp; station2 are not equal that point 'A' lands in an area where there is no solution, however if using the method I describe above on point 'B' we will see that station and station2 will be both 0.0.&amp;nbsp; So, what I am getting at, is it will be difficult to determine when the values should be blank. For point 'A' we can determine that it lies in a bad area as Station and Station2 will not be equal, however, for point 'B' it is not as clear.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Utilizing LISP and the COM API it will be difficult to determine which points have valid station &amp;amp; offset values for a given alignment. We could just run the with the first method and just insert whatever values we get from the StationOffset method. You will have zeros for your station &amp;amp; offset for points that don't have a solution. If you are okay with this, we can write this in LISP using the COM API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It might be advantageous to use .NET API for a multitude of reasons. One being that using the station offset method in the .NET API will throw an exception will for both points 'A' &amp;amp; 'B'. We can catch this exception and therefor leave them blank. Are you familiar with coding in the .NET API?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lastly, your compared elevation, I still don't understand what you want for this value.&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;Need the elevation of the new point on alignment."&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The alignment is two-dimensional, I am not understanding what elevation, other than the source elevation, you are looking to achieve. Could you clarify further?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 14:59:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/station-and-offset-of-105-cogo-points-in-relation-to-291/m-p/13057447#M1266</guid>
      <dc:creator>hippe013</dc:creator>
      <dc:date>2024-10-01T14:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Station and offset of 105 COGO points in relation to 291 alignments</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/station-and-offset-of-105-cogo-points-in-relation-to-291/m-p/13058013#M1267</link>
      <description>&lt;P&gt;Here is an example code for you to test. I've made an attempt to include error traps, but I am sure someone will find something.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:CogoToAlignmentReport ( / pntSS alignSS fileName file i cnt cogo j align line)
  (princ "\nSelect Cogo Points: ")
  (setq pntSS (ssget '(( 0 . "AECC_COGO_POINT"))))
  (if pntSS
    (progn
      (princ "\nSelect Alignments: ")
      (setq alignSS (ssget '(( 0 . "AECC_ALIGNMENT"))))
      (if alignSS
	(progn
	  (setq fileName (getfiled "Export Cogo / Alignment Report" "" "csv" 1))
	  (if fileName
	    (progn
	      (setq file (open fileName "w"))
	      (if file
		(progn
		  (setq i 0)
		  (setq cnt 0)
		  (repeat (sslength pntSS)
		    (setq cogo (vlax-ename-&amp;gt;vla-object (ssname pntSS i)))
		    (setq j 0)
		    (repeat (sslength alignSS)
		      (setq align (vlax-ename-&amp;gt;vla-object (ssname alignSS j)))
		      (setq line (cogo:PrintCogoStationOffset cogo align 3))
		      (write-line line file)
		      (setq j (+ j 1))
		      (setq cnt (+ cnt 1))
		      );repeat alignSS
		    (setq i (+ i 1))
		    );repeat pntSS
		  (close file)
		  (princ (strcat "\nSuccessfully exported " (itoa cnt) " lines to file."))
		  )
		(princ "\nError: Could not open File.")
		);If File
	      )
	    (princ "\nError: Could not obtain File Name.")
	    );If filename
	  )
	(princ "\nError: Must have an Alignment Selection.")
	);If alignSS
      )
    (princ "\nError: Must have a Cogo Point Selection.")
    );If pntSS
  (princ)
  );defun 
  



;Arguments:
;cogo - CogoPoint as a VLA-OBJECT
;align - Alignment as a VLA-OBJECT
;prec - Desrired precision as an Integer
;Returns: a String of comma separated values
(defun cogo:PrintCogoStationOffset (cogo align prec)
  (setq pn (vlax-get-property cogo 'Number)) 
  (setq x (vlax-get-property cogo 'Easting))
  (setq y (vlax-get-property cogo 'Northing))
  (setq z (vlax-get-property cogo 'Elevation))
  (setq desc (vlax-get-property cogo 'RawDescription))
  (vlax-invoke-method align 'StationOffset x y 'Station 'Offset)
  (vlax-invoke-method align 'PointLocation station 0.0 'polX 'polY)
  (setq name (vlax-get-property align 'Name))

  (setq str (strcat (itoa pn) ","
		    (rtos x 2 prec) ","
		    (rtos y 2 prec) ","
		    (rtos z 2 prec) ","
		    desc ","
		    name ","
		    (rtos station 2 prec) ","
		    (rtos polX 2 prec) ","
		    (rtos polY 2 prec) ","
		    (rtos z 2 prec) ","
		    (rtos offset 2 prec)))
  )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 01 Oct 2024 19:16:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/station-and-offset-of-105-cogo-points-in-relation-to-291/m-p/13058013#M1267</guid>
      <dc:creator>hippe013</dc:creator>
      <dc:date>2024-10-01T19:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Station and offset of 105 COGO points in relation to 291 alignments</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/station-and-offset-of-105-cogo-points-in-relation-to-291/m-p/13059010#M1268</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Thank you so much for your help! Most of my alignments are straightforward without complex curves, so I felt that Method One would be a perfect fit for my needs.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;Need the elevation of the new point on alignment."&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;As for the elevation of the new point on the alignment, I can easily address that later. My main objective was to determine the elevation of the COGO point from the surface, which I can retrieve directly from the surface data when necessary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I tested the code, and it works flawlessly! I genuinely appreciate your assistance—you’ve saved me a tremendous amount of time. Even though I completed the task using a different method, I know this code will be incredibly valuable for my future projects. I can't thank you enough!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 07:43:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/station-and-offset-of-105-cogo-points-in-relation-to-291/m-p/13059010#M1268</guid>
      <dc:creator>K_Aboumosalam</dc:creator>
      <dc:date>2024-10-02T07:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Station and offset of 105 COGO points in relation to 291 alignments</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/station-and-offset-of-105-cogo-points-in-relation-to-291/m-p/13059707#M1269</link>
      <description>&lt;P&gt;I am happy that it worked for you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 13:26:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/station-and-offset-of-105-cogo-points-in-relation-to-291/m-p/13059707#M1269</guid>
      <dc:creator>hippe013</dc:creator>
      <dc:date>2024-10-02T13:26:27Z</dc:date>
    </item>
  </channel>
</rss>

