<?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 LISP or Pogram to Push Civil 3D Points to excel and back to civil 3D in Civil 3D Customization Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10134228#M7208</link>
    <description>&lt;P&gt;Has anyone come across a program or LISP that can take currently selected civil 3D points and copy the point, northing, easting, elevation, and description directly into an excel file (potentially a file that is currently open)? Ideally, I am also looking for the functionality to push PNEZD points from excel directly back into civil 3d.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The idea/work flow I have in mind is this: 1) take a selection of points from civil 3d and push into excel, 2) perform calculations on those points in excel including creating new points via calculations 3) push the new set of points back into civil 3d.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to perform calculations on points in excel but be able to see those points quickly in civil 3d to do quality control/see the results.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Mar 2021 20:58:10 GMT</pubDate>
    <dc:creator>timothy.mckinney</dc:creator>
    <dc:date>2021-03-05T20:58:10Z</dc:date>
    <item>
      <title>LISP or Pogram to Push Civil 3D Points to excel and back to civil 3D</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10134228#M7208</link>
      <description>&lt;P&gt;Has anyone come across a program or LISP that can take currently selected civil 3D points and copy the point, northing, easting, elevation, and description directly into an excel file (potentially a file that is currently open)? Ideally, I am also looking for the functionality to push PNEZD points from excel directly back into civil 3d.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The idea/work flow I have in mind is this: 1) take a selection of points from civil 3d and push into excel, 2) perform calculations on those points in excel including creating new points via calculations 3) push the new set of points back into civil 3d.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to perform calculations on points in excel but be able to see those points quickly in civil 3d to do quality control/see the results.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 20:58:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10134228#M7208</guid>
      <dc:creator>timothy.mckinney</dc:creator>
      <dc:date>2021-03-05T20:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: LISP or Pogram to Push Civil 3D Points to excel and back to civil 3D</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10134269#M7209</link>
      <description>&lt;P&gt;You can create point group of selected points, select them in any points window and copy and paste to excel. Getting them back to C3d is another matter, I think this can only be done importing points whether by a lisp or manually.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 21:21:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10134269#M7209</guid>
      <dc:creator>cwr-pae</dc:creator>
      <dc:date>2021-03-05T21:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: LISP or Pogram to Push Civil 3D Points to excel and back to civil 3D</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10136810#M7210</link>
      <description>&lt;P&gt;Forefront Design Specialist has Survey Mapper that can automate that and the draw-up with all your layers, linetypes and blocks set up to 31 attributes.&amp;nbsp; Survey freedom! tool.&amp;nbsp;&lt;A href="https://www.forefrontdesignspecialist.com/survey-mapper.html" target="_blank"&gt;https://www.forefrontdesignspecialist.com/survey-mapper.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Or you can purchase that lisp you need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 14:47:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10136810#M7210</guid>
      <dc:creator>paul.reichert</dc:creator>
      <dc:date>2021-03-07T14:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: LISP or Pogram to Push Civil 3D Points to excel and back to civil 3D</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10137145#M7211</link>
      <description>&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;(defun c:Civiltocsv (/ pnts i obj pnt eastng northng elev player FEAT FEATUR FILE2OPEN F_OPEN LN LNP LST OLDBLIPMODE OLDLAYER OLDSNAP)
  (vl-load-com)

	(if (setq pnts (ssget '((0 . "AECC_COGO_POINT")))) ;select COGO points
	  (PROGN
	  (repeat (setq i (sslength pnts))
           (setq obj  (vlax-ename-&amp;gt;vla-object (ssname pnts (setq i (1- i)))))

           (setq pnt (vlax-get obj 'number)
              eastng (vlax-get obj 'easting)
              northng (vlax-get obj 'northing)
              elev (vlax-get obj 'elevation)
;;;              player (vlax-get obj 'layer)
           ) ;end of setq
	
	        (setq FEAT(LIST pnt eastng northng elev))
	        (setq FEATUR(CONS FEAT FEATUR))	
		
   ) ;end of repeat
          (setq lst(apply 'append FEATUR))

      (setq file2open (vl-filename-mktemp "Civiltocsv" (getvar 'dwgprefix) ".csv"))
      (setq f_open (open file2open "w"))
	(princ "NU" f_open)
        (princ ";" f_open)
        (princ "X" f_open)
        (princ ";" f_open)
	(princ "Y" f_open)
        (princ ";" f_open)
        (princ " Z" f_open)
        (princ ";" f_open)
        (princ "\n" f_open)
	 
      (repeat (/ (length lst) 4)
        (princ (rtos (car lst) 2 3) f_open)
        (princ ";" f_open)
        (princ (rtos (cadr lst) 2 3) f_open)
        (princ ";" f_open)
	(princ (rtos (caddr lst) 2 3) f_open)
        (princ ";" f_open)
        (princ (rtos (cadddr lst) 2 3) f_open)
        (princ ";" f_open)
        (princ "\n" f_open)
	(setq lst (cddddr lst))
      )
      (close f_open)
	 (startapp "explorer" file2open);opin excel
	  
   (princ "No point selected!")
  )) ;end of if
 (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&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="التقاط.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/889856i2EE73BBF3D5D19B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="التقاط.PNG" alt="التقاط.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 18:53:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10137145#M7211</guid>
      <dc:creator>hosneyalaa</dc:creator>
      <dc:date>2021-03-07T18:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: LISP or Pogram to Push Civil 3D Points to excel and back to civil 3D</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10137202#M7212</link>
      <description>&lt;P&gt;Interesting idea that falls in line with a previous request we've had for our &lt;A title="Productivity Tools fo Civil3D" href="https://www.dotsoft.com/c3dtools.htm" target="_blank" rel="noopener"&gt;C3DTools&lt;/A&gt;.&amp;nbsp; Here is what we have planned.&amp;nbsp; The tool would have a create option that would take all CogoPoints in the drawing and write them directly out to a XLSx file, the file name being the same as the drawing name.&amp;nbsp; Then whenever you open a drawing later (or when commanded) if the spreadsheet exists it would read the external file, adjust any points that had changed, remove any that were missing and add any that were added to the spreadsheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course on drawing close (only if any CogoPoints were changed, removed or added) it would need to update the spreadsheet to keep them synchronized.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe add a setting for automatic or on prompted approval for the load / change drawing.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 19:40:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10137202#M7212</guid>
      <dc:creator>TerryDotson</dc:creator>
      <dc:date>2021-03-07T19:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: LISP or Pogram to Push Civil 3D Points to excel and back to civil 3D</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10138461#M7213</link>
      <description>&lt;LI-CODE lang="csharp"&gt; 

(defun c:csvTOCivil (/ C3D C3DDOC D DATA F FILEPATH I LN OCOGO OK POINTS)
  (vl-load-com)
  
  (if (setq FilePath (getfiled "Select TEXT file to read :"
			       (getvar "dwgprefix")
			       "csv"
			       4
		     )
      )
    (progn



      (defun getC3D	()
    (vl-load-com)
    (setq C3D (strcat "HKEY_LOCAL_MACHINE\\"
		      (if vlax-user-product-key
			(vlax-user-product-key)
			(vlax-product-key)
		      )
	      )
	  C3D (vl-registry-read C3D "Release")
	  C3D (substr
		C3D
		1
		(vl-string-search
		  "."
		  C3D
		  (+ (vl-string-search "." C3D) 1)
		)
	      )
	  C3D (vla-getinterfaceobject
		(vlax-get-acad-object)
		(strcat "AeccXUiLand.AeccApplication." C3D)
	      )
    )
    (setq C3Ddoc (vla-get-activedocument C3D))
  )

      (getC3D)
      (setq points (vlax-get C3Ddoc 'points))

      
      (if filepath
	(progn
	  (setq f (open FilePath "r"))
	  (setq ln (read-line f))
	  
	  (while (setq ln (read-line f))
	    (setq data (cons (str2list ln ";") data))
	    )
	  (close f)
	  (setq data (reverse data))
	  
	
	  (setq i -1)
	  
	  (while (&amp;lt; (setq i (1+ i)) (length data))
	    
	    (PROGN
	      (setq d (nth i data)
		    OK NIL)
	      (vlax-for s points
		(if (equal (vlax-get s 'number) (FIX (atof (nth 0 d))))
		  (PROGN
		    (vla-put-elevation s (atof (nth 3 d)))
		    (setq OK 1)
         	    );;   (PROGN
		  ;;   (PROGN
		  );;IF
		);;vlax-for
	      (if (/= OK 1)
		(PROGN
		    (setq oCogo(vlax-invoke points 'add (list (atof (nth 1 d)) (atof (nth 2 d)) (atof (nth 3 d)))))
		    (setq OK NIL)
         	    )
		)

	      
	      );;   (PROGN
	    );;Vwhile
	  );   (PROGN
	);;IF
      );(PROGN
    );;IF
  ); ; ;;;; defun  ;;;;  

;;;str2list by John Uhden, as posted to the adesk customization newsgroup a long time ago
(defun Str2List	(str pat / i j n lst)
  (cond
    ((/= (type str) (type pat) 'STR))
    ((= str pat) '(""))
    (T
     (setq i 0
	   n (strlen pat)
     )
     (while (setq j (vl-string-search pat str i))
       (setq lst (cons (substr str (1+ i) (- j i)) lst)
	     i	 (+ j n)
       )
     )
     (reverse (cons (substr str (1+ i)) lst))
    )
  )
)

&lt;/LI-CODE&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="012.gif" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/890062i230FB63A0E9BF02A/image-size/large?v=v2&amp;amp;px=999" role="button" title="012.gif" alt="012.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 11:24:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10138461#M7213</guid>
      <dc:creator>hosneyalaa</dc:creator>
      <dc:date>2021-03-08T11:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: LISP or Pogram to Push Civil 3D Points to excel and back to civil 3D</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10149536#M7214</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9456674"&gt;@paul.reichert&lt;/a&gt;Thank you for the recommendation, I will take a look at this.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 19:41:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10149536#M7214</guid>
      <dc:creator>timothy.mckinney</dc:creator>
      <dc:date>2021-03-11T19:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: LISP or Pogram to Push Civil 3D Points to excel and back to civil 3D</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10149541#M7215</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6591997"&gt;@hosneyalaa&lt;/a&gt;This is great. I am working with this now and may just make a couple tweeks to get this going. Really appreciate the help.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 19:43:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10149541#M7215</guid>
      <dc:creator>timothy.mckinney</dc:creator>
      <dc:date>2021-03-11T19:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: LISP or Pogram to Push Civil 3D Points to excel and back to civil 3D</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10149543#M7216</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/655764"&gt;@TerryDotson&lt;/a&gt;this good to hear, excited to see what the final tool looks like!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 19:44:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10149543#M7216</guid>
      <dc:creator>timothy.mckinney</dc:creator>
      <dc:date>2021-03-11T19:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: LISP or Pogram to Push Civil 3D Points to excel and back to civil 3D</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10194711#M7217</link>
      <description>&lt;P&gt;Whilst reading / writing csv is one way why not just go direct, something like Getexcel.lsp has all the code required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did do recently a macro in excel that will read a csv, ok so you say so ! But it has a keyword detect so will make new sheets so you could write a csv using description wildcards&amp;nbsp; each going to a different sheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just ask its over at Lisp section.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 04:57:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10194711#M7217</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2021-03-29T04:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: LISP or Pogram to Push Civil 3D Points to excel and back to civil 3D</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10195442#M7218</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6254908"&gt;@Sea-Haven&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you for the clarification&lt;BR /&gt;But posting the code is simple&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 11:00:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/lisp-or-pogram-to-push-civil-3d-points-to-excel-and-back-to/m-p/10195442#M7218</guid>
      <dc:creator>hosneyalaa</dc:creator>
      <dc:date>2021-03-29T11:00:03Z</dc:date>
    </item>
  </channel>
</rss>

