<?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: COGO points to civilcad AS5 in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12896112#M11944</link>
    <description>&lt;P&gt;For any one, the AS5 format was Civilcad's version of a dxf file, its a text output of the Civilcad dwg, I am not sure why needed as Civilcad reads a Dxf and DWG.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Civilcad has been superseded by Magnet.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2024 02:04:07 GMT</pubDate>
    <dc:creator>Sea-Haven</dc:creator>
    <dc:date>2024-07-16T02:04:07Z</dc:date>
    <item>
      <title>COGO points to civilcad AS5</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12887991#M11940</link>
      <description>&lt;P&gt;Has anyone tried to export from Civil3d to Civilcad AS5.&amp;nbsp; I have some very old customisation that take an AS5 and process it in Autocad to produce a detail survey with very little interaction. It would take a great deal of time , money and expertise, none of which we have at the moment, to update these routines to function with Civil3d cogo points. ( i dont even know where to find them in the mess of folders and files- it all just gets copied from computer to computer as it gets added to over 30 years).&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have a lisp that exports the points to a CSV with the right format for AS5 (see below) but I am having trouble with the first part which is the list of Layers.&amp;nbsp; Here how it should look:&lt;/P&gt;&lt;P&gt;[VERSION]&lt;BR /&gt;1.0&lt;BR /&gt;[LAYERS]&lt;BR /&gt;L=$$DEFAULT,SC=0.000,P1=-1,P2=-1,T=8192&lt;BR /&gt;L=4,SC=0.000,P1=-1,P2=-1,T=8192&lt;BR /&gt;L=603,SC=0.000,P1=-1,P2=-1,T=8192&lt;BR /&gt;L=950,SC=0.000,P1=-1,P2=-1,T=8192&lt;/P&gt;&lt;P&gt;[POINTS]&lt;BR /&gt;ID=c9,X=1969.1270000,Y=4981.9790000,Z=0.0000000,C=&lt;BR /&gt;L=603,P=15,S=0,XS=1.000,YS=1.000,R=0.000,T=0&lt;BR /&gt;ID=c8,X=1939.1290000,Y=4977.0060000,Z=0.0000000,C=&lt;BR /&gt;L=603,P=15,S=0,XS=1.000,YS=1.000,R=0.000,T=0&lt;BR /&gt;ID=c736,X=1950.1760000,Y=4966.3660000,Z=0.0000000,C=&lt;BR /&gt;L=950,P=15,S=0,XS=1.000,YS=1.000,R=0.000,T=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but so far i only have this (adapted form code I found but can't remember where so sorry if it's yours and I don't give you credit) which gives me the list of points in the correct format but not the header and list of layers.&lt;/P&gt;&lt;P&gt;Alot of the fields are superfluous and/or don't exist in COGO so they are just entered as text to keep correct format and number of fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun c:cogoExport ( / ss fileName f n)&lt;BR /&gt;(setq ss (ssget '(( 0 . "AECC_COGO_POINT"))))&lt;BR /&gt;(setq fileName (getfiled "Export to" "" "csv" 1))&lt;BR /&gt;(if (and ss fileName)&lt;BR /&gt;(progn&lt;BR /&gt;(setq f (open fileName "w"))&lt;BR /&gt;(setq n 0)&lt;BR /&gt;(repeat (sslength ss)&lt;BR /&gt;(setq cogo (vlax-ename-&amp;gt;vla-object (ssname ss n)))&lt;BR /&gt;(setq line (cogo:pntToString cogo))&lt;BR /&gt;(write-line line f)&lt;BR /&gt;(setq n (+ n 1))&lt;BR /&gt;)&lt;BR /&gt;(close f)&lt;BR /&gt;(princ (strcat "\nPoints have been exported. Quantity: " (itoa n)))&lt;BR /&gt;)&lt;BR /&gt;(princ "\nCommand Canceled.")&lt;BR /&gt;)&lt;BR /&gt;(princ)&lt;BR /&gt;)&lt;BR /&gt;(defun cogo:pntToString (cogo / ID easting northing elev rawDesc ID layer)&lt;BR /&gt;(setq ID (rtos (vlax-get-property cogo 'Number) 2 0))&lt;BR /&gt;(setq easting (rtos (vlax-get-property cogo 'Easting) 2 3))&lt;BR /&gt;(setq northing (rtos (vlax-get-property cogo 'Northing) 2 3))&lt;BR /&gt;(setq elev (rtos (vlax-get-property cogo 'Elevation) 2 3))&lt;BR /&gt;(setq rawDesc (vlax-get-property cogo 'RawDescription))&lt;BR /&gt;(setq layer (vlax-get-property cogo 'Layer))&lt;BR /&gt;(strcat "ID=" ID ",X=" easting ",Y=" northing ",Z=" elev ",C=" rawDesc "\n" "L=" layer ",P=15,S=0,XS=1.000,YS=1.000,R=0.000,T=0" )&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, 10 Jul 2024 02:27:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12887991#M11940</guid>
      <dc:creator>richard_saunders42BV4</dc:creator>
      <dc:date>2024-07-10T02:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: COGO points to civilcad AS5</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12888029#M11941</link>
      <description>I found where i got the code. It was this forum posted by &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1633394"&gt;@hippe013&lt;/a&gt; cogoexport &lt;A href="https://forums.autodesk.com/t5/civil-3d-customization/exporting-cogo-points-with-layer-information-amp-marker-rotation/m-p/11441588#M22226" target="_blank"&gt;https://forums.autodesk.com/t5/civil-3d-customization/exporting-cogo-points-with-layer-information-amp-marker-rotation/m-p/11441588#M22226&lt;/A&gt;</description>
      <pubDate>Wed, 10 Jul 2024 03:11:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12888029#M11941</guid>
      <dc:creator>richard_saunders42BV4</dc:creator>
      <dc:date>2024-07-10T03:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: COGO points to civilcad AS5</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12888170#M11942</link>
      <description>&lt;P&gt;I am a ex Civilcad State Rep, PM me can discuss more, are you in AUS ?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 05:39:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12888170#M11942</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-07-10T05:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: COGO points to civilcad AS5</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12896106#M11943</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15773168"&gt;@richard_saunders42BV4&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Looks like you got it.&amp;nbsp; So what's the problem?&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2024 23:56:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12896106#M11943</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-07-13T23:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: COGO points to civilcad AS5</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12896112#M11944</link>
      <description>&lt;P&gt;For any one, the AS5 format was Civilcad's version of a dxf file, its a text output of the Civilcad dwg, I am not sure why needed as Civilcad reads a Dxf and DWG.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Civilcad has been superseded by Magnet.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 02:04:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12896112#M11944</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-07-16T02:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: COGO points to civilcad AS5</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12897120#M11945</link>
      <description>&lt;P&gt;Read the question.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2024 22:27:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12897120#M11945</guid>
      <dc:creator>richard_saunders42BV4</dc:creator>
      <dc:date>2024-07-14T22:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: COGO points to civilcad AS5</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12897121#M11946</link>
      <description>&lt;P&gt;looks like none of you people read the questions.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2024 22:28:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12897121#M11946</guid>
      <dc:creator>richard_saunders42BV4</dc:creator>
      <dc:date>2024-07-14T22:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: COGO points to civilcad AS5</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12897130#M11947</link>
      <description>&lt;P&gt;Yes in Aus. New boss won't buy magnet but I have 30 years of Civilcad/Magnet to AutoCAD cutomisations that make life very easy. If I could just start with an as5. I no longer have access to the authors of that code and they weren't great at documentation. It would take me years to dismantle code to rewrite (and I am not a coder). If I can just get this little thing working, I would be able to carry on as if nothing changed for the few years until I retire. But I have a hard time getting any one to read the whole question before answering. I have the bulk of it with the help of code I found on here. Just need the last piece of the puzzle&amp;nbsp;&lt;STRONG&gt;as described in the original question&lt;/STRONG&gt; and I am there. As I said, I am not a coder.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2024 22:37:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12897130#M11947</guid>
      <dc:creator>richard_saunders42BV4</dc:creator>
      <dc:date>2024-07-14T22:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: COGO points to civilcad AS5</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12897153#M11948</link>
      <description>&lt;P&gt;Still confused Civilcad can export a dwg and yes it creates some objects that you do not want in a dwg, I got around these problems via a lisp, it changed layer names, removed the point cross, changed some of the linetypes to an equivalent CAD name, plus much more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sounds like what you want. Please let me know can provide the program.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again ex Civilcad VIC/TAS state manager understand what is in a Civilcad export dwg.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2024 23:09:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12897153#M11948</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-07-14T23:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: COGO points to civilcad AS5</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12897181#M11949</link>
      <description>&lt;P&gt;1. I do NOT have Civilcad/ Magnet anymore. New boss won't buy it.&lt;/P&gt;&lt;P&gt;2. I DO have a suite of routines developed over 30 years by multiple authors which use a Civilcad AS5 as a starting point and produce a detail plan in no time.&lt;/P&gt;&lt;P&gt;3. I have been using these routines for over 10 years and they (with me using them) are extremely efficient.&lt;/P&gt;&lt;P&gt;4. I have 90% of the code I need to achieve what I want. Just need someone to read the entire question and help me finish it.&lt;/P&gt;&lt;P&gt;5. If no one is willing the read the entire question, that's fine. I will figure it out eventually. I was just hoping I could &lt;STRONG&gt;get some help with the coding&lt;/STRONG&gt; because&amp;nbsp;I am old ..really b*oody old, and learning doesn't happen the way it used to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2024 23:41:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12897181#M11949</guid>
      <dc:creator>richard_saunders42BV4</dc:creator>
      <dc:date>2024-07-14T23:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: COGO points to civilcad AS5</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12897242#M11950</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15773168"&gt;@richard_saunders42BV4&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Okay, I've read it again.&lt;/P&gt;&lt;P&gt;It seems you have the the POINTS written correctly.&amp;nbsp; But do you still need guidance on the LAYERS portion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are these lines always written...?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;L=$$DEFAULT,SC=0.000,P1=-1,P2=-1,T=8192&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;L=4,SC=0.000,P1=-1,P2=-1,T=8192&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I ask mainly because I don't see a point with a layer named 4.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I must also caution you about any rawDesc that contains one or more commas.&amp;nbsp; It could screw up your format.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You should probably introduce a variable symbol for rawDesc and add...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(while (vl-string-search "," rawDesc)(setq rawDesc (vl-string-subst ";" "," rawDesc)))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 01:26:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12897242#M11950</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-07-15T01:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: COGO points to civilcad AS5</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12897252#M11951</link>
      <description>Thanks for having another look at this for me John. I appreciate it greatly. Yes that is exactly it.&lt;BR /&gt;L=[the layer name of the exported cogo point]. The other parameters seem to be irrelevant to what I need but still need to be written ,as is, to each line.&lt;BR /&gt;So there will be a single line written for each layer.</description>
      <pubDate>Mon, 15 Jul 2024 01:21:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12897252#M11951</guid>
      <dc:creator>richard_saunders42BV4</dc:creator>
      <dc:date>2024-07-15T01:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: COGO points to civilcad AS5</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12897794#M11952</link>
      <description>&lt;P&gt;You need a AS5 file and the corresponding dwg file so you can see how they work together. Here is a full AS5 file. Think of it as Civilcad's version of a dxf file.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 09:10:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12897794#M11952</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-07-15T09:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: COGO points to civilcad AS5</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12899296#M11953</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15773168"&gt;@richard_saunders42BV4&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Here is my first try at what I think you want (untested).&lt;/P&gt;&lt;P&gt;You be the tester and let me know.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;|  Example
[VERSION]
A1.0
[LAYERS]
L=$$DEFAULT,SC=0.000,P1=-1,P2=-1,T=8192
L=4,SC=0.000,P1=-1,P2=-1,T=8192
L=603,SC=0.000,P1=-1,P2=-1,T=8192
L=950,SC=0.000,P1=-1,P2=-1,T=8192

[POINTS]
ID=c9,X=1969.1270000,Y=4981.9790000,Z=0.0000000,C=
L=603,P=15,S=0,XS=1.000,YS=1.000,R=0.000,T=0
ID=c8,X=1939.1290000,Y=4977.0060000,Z=0.0000000,C=
L=603,P=15,S=0,XS=1.000,YS=1.000,R=0.000,T=0
ID=c736,X=1950.1760000,Y=4966.3660000,Z=0.0000000,C=
L=950,P=15,S=0,XS=1.000,YS=1.000,R=0.000,T=0
|;

(defun cogo:pntToString (cogo / ID easting northing elev rawDesc ID)
  (setq ID (rtos (vlax-get-property cogo 'Number) 2 0))
  (setq easting (rtos (vlax-get-property cogo 'Easting) 2 4))
  (setq northing (rtos (vlax-get-property cogo 'Northing) 2 4))
  (setq elev (rtos (vlax-get-property cogo 'Elevation) 2 4))
  (setq rawDesc (vlax-get-property cogo 'RawDescription))
  (while (vl-string-search "," rawDesc)(setq rawDesc (vl-string-subst ";" "," rawDesc)))
  (setq layer (strcase (vlax-get-property cogo 'Layer)))
  (strcat "ID=" ID ",X=" easting ",Y=" northing ",Z=" elev ",C=" rawDesc "\n" "L=" layer ",P=15,S=0,XS=1.000,YS=1.000,R=0.000,T=0" )
)

;; Embellished by John Uhden for @richard_saunders42BV4 7/15/2024
(defun c:cogoExport ( / ss fileName f n layers lines)
  (setq ss (ssget '((0 . "AECC_COGO_POINT"))))
  (setq fileName (getfiled "Export to" "" "csv" 1))
  (and ss fileName
    (setq f (open fileName "w"))
    (setq n 0)
    (repeat (sslength ss)
      (setq cogo (vlax-ename-&amp;gt;vla-object (ssname ss n)))
      (setq line (cogo:pntToString cogo))
      (setq lines (cons line lines))
      (if (not (vl-position layer layers (setq layers (cons layer layers)))))
      (setq n (+ n 1))
    )
    (setq layers (append layers (list "4" "$$DEFAULT")))
    (setq layers (mapcar '(lambda (x)(strcat "L=" x ",SC=0.000,P1=-1,P2=-1,T=8192"))(reverse layers)))
    (setq layers (cons "[LAYERS]" layers))
    (write-line "[VERSION]" f)
    (write-line "A1.0" f)
    (foreach line layers (write-line line f))
    (write-line f)
    (write-line "[POINTS]" f)
    (foreach line (reverse lines) (write-line line f))
    (close f)
    (princ (strcat "\nPoints have been exported. Quantity: " (itoa n)))
  )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 21:07:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12899296#M11953</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-07-15T21:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: COGO points to civilcad AS5</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12899408#M11954</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3930636"&gt;@john.uhden&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A couple of syntax errors but got my head going in the right direction. Here's what I ended up with that works.&lt;/P&gt;&lt;DIV&gt;(defun cogo:pntToString (cogo / ID easting northing elev rawDesc layer)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; (setq ID (rtos (vlax-get-property cogo 'Number) 2 0))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; (setq easting (rtos (vlax-get-property cogo 'Easting) 2 4))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; (setq northing (rtos (vlax-get-property cogo 'Northing) 2 4))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; (setq elev (rtos (vlax-get-property cogo 'Elevation) 2 4))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; (setq rawDesc (vlax-get-property cogo 'RawDescription))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; (while (vl-string-search "," rawDesc)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; (setq rawDesc (vl-string-subst ";" "," rawDesc))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; )&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; (setq layer (strcase (vlax-get-property cogo 'Layer)))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; (list (strcat "ID=" ID ",X=" easting ",Y=" northing ",Z=" elev ",C=" rawDesc "\n" "L=" layer ",P=15,S=0,XS=1.000,YS=1.000,R=0.000,T=0") layer)&lt;/DIV&gt;&lt;DIV&gt;)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;(defun c:cogoExport ( / ss fileName f n layers lines result)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; (setq ss (ssget '((0 . "AECC_COGO_POINT"))))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; (setq fileName (getfiled "Export to" "" "csv" 1))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; (setq layers '())&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; (setq lines '())&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; (and ss fileName&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; (setq f (open fileName "w"))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; (setq n 0)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; (repeat (sslength ss)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (setq cogo (vlax-ename-&amp;gt;vla-object (ssname ss n)))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (setq result (cogo:pntToString cogo))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (setq line (car result))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (setq layer (cadr result))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (setq lines (cons line lines))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (if (not (vl-position layer layers))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (setq layers (cons layer layers))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (setq n (+ n 1))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; )&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; (setq layers (append layers (list "4" "$$DEFAULT")))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; (setq layers (mapcar '(lambda (x) (strcat "L=" x ",SC=0.000,P1=-1,P2=-1,T=8192")) (reverse layers)))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; (setq layers (cons "[LAYERS]" layers))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; (write-line "[VERSION]" f)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; (write-line "A1.0" f)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; (foreach line layers (write-line line f))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; (write-line "" f)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; (write-line "[POINTS]" f)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; (foreach line (reverse lines) (write-line line f))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; (close f)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; (princ (strcat "\nPoints have been exported. Quantity: " (itoa n)))&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; )&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; (princ)&lt;/DIV&gt;&lt;DIV&gt;)&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 Jul 2024 22:26:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12899408#M11954</guid>
      <dc:creator>richard_saunders42BV4</dc:creator>
      <dc:date>2024-07-15T22:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: COGO points to civilcad AS5</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12901817#M11955</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15773168"&gt;@richard_saunders42BV4&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;YAY!! I am thrilled to hear of your success.&amp;nbsp; Good job!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 23:45:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/cogo-points-to-civilcad-as5/m-p/12901817#M11955</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2024-07-16T23:45:21Z</dc:date>
    </item>
  </channel>
</rss>

