AutoCAD Civil 3D General

Reply
Contributor
jdw44
Posts: 14
Registered: ‎12-23-2011
Message 1 of 8 (426 Views)

Import points from a file

426 Views, 7 Replies
01-03-2012 08:57 AM

In Civil 3d 2010 I got an error saying "Error parsing value line 1 ect and invalid characters.

I'm importing a point.xyz file using PNEZD (space delimited). The file seems to look ok.

Product Support
Jason.Hickey
Posts: 336
Registered: ‎06-06-2010
Message 2 of 8 (422 Views)

Re: Import points from a file

01-03-2012 09:08 AM in reply to: jdw44

Can you post a part of the point file? You say it's an XYZ file, which typically doesn't have point numbers (the P in PNEZD) or descriptions (the D) - if it's truly a easting, northing, elevation file (XYZ) then you'll need to change to that format to get it to import - if it's looking for a component that's not in the file format, then it won't work.



Jason Hickey
Premium Services Specialist
Autodesk, Inc.

*Expert Elite*
antoniovinci
Posts: 1,576
Registered: ‎06-03-2011
Message 3 of 8 (409 Views)

Re: Import points from a file

01-03-2012 09:46 AM in reply to: Jason.Hickey

I guess you should open your point list in Notepad, and erase the first line probably containing the field names...

*Expert Elite*
neilyj
Posts: 3,671
Registered: ‎08-01-2008
Message 4 of 8 (399 Views)

Re: Import points from a file

01-03-2012 10:02 AM in reply to: jdw44

It would be useful if C3D could read files which still had header information in the first line e.g. if the first line didn't fit the template for PENZD or ENZ or whatever, then just ignore the line and process the next one

neilyj
(No connection with Autodesk other than using the products in the real world)


IDSP Premium 2015 (mainly Civil 3D 2015 UKIE & Infraworks with some limited 3ds Max Design)
Win 7 Pro x64, 240Gb SSD, 1Tb HDD
32Gb Ram Intel Xeon CPU E5-2650 v2 @ 2.6GHz (32 CPUs), ~2.6GHz
NVIDIA Quadro K4000, Dual 27" Monitor, Dell T5610
Product Support
Jason.Hickey
Posts: 336
Registered: ‎06-06-2010
Message 5 of 8 (393 Views)

Re: Import points from a file

01-03-2012 10:19 AM in reply to: neilyj

You can ignore commented lines in the point file format - and the new point file import dialog parses the file for you for a visual confirmation of the format.



Jason Hickey
Premium Services Specialist
Autodesk, Inc.

Active Contributor
rdawson
Posts: 26
Registered: ‎05-21-2008
Message 6 of 8 (389 Views)

Re: Import points from a file

01-03-2012 10:24 AM in reply to: jdw44

I would be glad to take a look if you will paste a few lines of your file.

Contributor
jdw44
Posts: 14
Registered: ‎12-23-2011
Message 7 of 8 (343 Views)

Re: Import points from a file

01-03-2012 03:46 PM in reply to: jdw44

Deleting first line seems to work Thanks to everyone

*Expert Elite*
neilyj
Posts: 3,671
Registered: ‎08-01-2008
Message 8 of 8 (317 Views)

Re: Import points from a file

01-04-2012 06:54 AM in reply to: Jason.Hickey

Thanks for this - never really noticed that option before so I just put a # in front of the No. in my point file and the line was ignored:smileyhappy:

neilyj
(No connection with Autodesk other than using the products in the real world)


IDSP Premium 2015 (mainly Civil 3D 2015 UKIE & Infraworks with some limited 3ds Max Design)
Win 7 Pro x64, 240Gb SSD, 1Tb HDD
32Gb Ram Intel Xeon CPU E5-2650 v2 @ 2.6GHz (32 CPUs), ~2.6GHz
NVIDIA Quadro K4000, Dual 27" Monitor, Dell T5610

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Civil 3D Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for AutoCAD Civil 3D helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Civil 3D

Twitter

Facebook

Blogs