I have a PNEZD .txt file that was used to bring into C3D using Points From a File.
After this, figures were brought in using Import Survey Data with the option Process Linework Sequence= By Import Order.
Some Raw Description edits were then made within the dwg file.
Finally, an Export Points (back to a PNEZD txt file) was made.This file has the Points listed numerically 1-10000.
If a user wanted to Import this file, it wouldn't come in correctly because it has lost the "Import Order".
Is there any way that this "order" could be preserved? Is there a different process that could be used?
Kinda learning this on my own, so bear with me.
Solved! Go to Solution.
Solved by tcorey. Go to Solution.
I have never heard of a way, but you might be able to get creative with excel?
Post your original import file for us to play with.
The points in particular are the centerline of road points (CLN). It seems that some CLN was picked up by survey (1000 point #'s) and then some was picked up again later (23000 point #'s). Example: 1338 and 23170 area is "filling in" the CLN line.
I would suggest creating a point group with the points you want, assuming pt numbers are incrementally correct. Then you can either export the group, or renumber the points and then export.
Another option would be to ignore/remove the points you have and use Create Points>Polyline Vertices - Automatic. This will create points with sequential point numbers.
The following code will export your points in the order of creation, without regard to point number.
;routine exports points in order of creation, not point number order ;|Copyright (c) Timothy K. Corey Delta Engineering Systems Redding, CA for use by Autodesk AutoCAD Civil 3D discussion group participants. You may distribute the code as-is but you may not sell it for any reason|; (defun c:go (/ fl ls len ctr p pvl info) (vl-load-com) (setq fl (open "c:\\ExportedPoints.txt" "w")) (setq ls (ssget "x" (list (cons 0 "AECC_COGO_POINT"))) len (sslength ls) ctr (- len 1) ) (while (>= ctr 0) (setq p (ssname ls ctr) pvl (vlax-ename->vla-object p) ) (ptInfo) (write-line Info fl) (setq ctr (- ctr 1)) ) (close fl) (princ) );end defun (defun ptInfo(/ nor eas z no desc) (setq Nor (vlax-get-property pvl 'Northing) Eas (vlax-get-property pvl 'Easting) Z (vlax-get-property pvl 'Elevation) No (vlax-get-property pvl 'Number) Desc (vlax-get-property pvl 'Description) Info (strcat (itoa no) "," (rtos Nor) "," (rtos Eas) "," (rtos Z) "," Desc) ) (princ) );end PtInfo
Best regards,
Tim
Thanks Tim. I'd like to try this but have no idea how to run this or any code. If it is something easy I'd give it a try, but if it's going down another track I would rather not. I think I have some more learning and testing to do in C3D survey area. Thanks.
I would edit the input file with necesary edits. I do this commonly do this for survey data so as to preserve and document any edits made to the data. Typically I comment out the original line, copy and past it to the next line and make an edit there.
Hello Tom,
Copy the code I posted. Paste into a Notepad document. Save the file as ExportPointsinCreationOrder.lsp.
When in AutoCAD Civil 3D, use the Appload command to find and load ExportPointsinCreationOrder.lsp. Once it has been loaded, type Go and it will run.
I didn't take the time to make dialog calls so it just creates a file called ExportedPoints.txt in C:\. The format is P,N,E,Z,D.
Tim
Hello,
i created lisp but it does not worj. What exacly i have to put in notepad file-all text u wroted?
Another question-i created cross section of the road. how i export points from that cross section in notepad. I need it for another program. Data must iclude station and elevation .
regards