Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Space delimited file (formatted text)

17 REPLIES 17
SOLVED
Reply
Message 1 of 18
Anonymous
5665 Views, 17 Replies

Space delimited file (formatted text)

Hello,

I am PhD student in Beijing, China. My major is about Biological Sciences.

I have the data in excel format, I want to convert it into formatted text(space delimited),  I tried in excel the save as option but it did not work.
As a matter of fact I know some text editors such as notepad++ and others, but then again notepad++ and other text editors did not convert properly. It gave very strange format. I confirmed it while opening txt file in excel converted by text editor. All my efforts went in vain. May be I am missing key point in conversion.
Could you  tell me other software or way to convert excel into formatted text (space delimited)?
Looking forward!!
Best Regards,
Abdul

17 REPLIES 17
Message 2 of 18
Pointdump
in reply to: Anonymous

Abdul,

 

After saving the file as a CSV in Excel, pretty much any text editor has a "find and replace" function where you can replace the comma with a space:

 

Replace.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2024
Message 3 of 18
Anonymous
in reply to: Pointdump

@Pointdump Thank You very much, but still there is problem.

If you do not mind, I can share my file with you.

since there are 102 plant species in upper title rows, but it yields 103.

Could you please address this issue?

Best Regards,

Abdul

Message 4 of 18
Pointdump
in reply to: Anonymous

Abdul,

 

There are 103 Columns because 1 X A is necessarily blank; top row and left column are descriptive headers. If you need 102 columns X 61 rows you'll need to strip out that top row and left column.

 

1XA.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

What program are you inserting this data into?

 

Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2024
Message 5 of 18
Anonymous
in reply to: Pointdump

I am using NODF software to do some analysis about ecology.

Between I am thinking that if I strip out the left column and top row .I may use lose the title information.

What you suggest?

Best Regards,

Abdul

Message 6 of 18
Pointdump
in reply to: Anonymous

Abdul,

 

"...if I strip out the left column and top row I may use lose the title information."

 

I'm unfamiliar with NODF software, so I don't know if stripping out the descriptive headers is a good thing or not. You might look for a statistical forum to ask your question.


Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2024
Message 7 of 18
autoMick
in reply to: Anonymous

Stripping out the header rows from data files has been a frustration of mine ever since I started using Civil3d. Today I created 26 duplicate files for no other reason but to allow Civil3d to read them, but as the headers had the survey dates, benchmark references etc. embedded, I still needed to keep the originals and ensure that the new files don't get separate from this information. It would be so much simpler if Civil3d would do this::

 

http://forums.autodesk.com/t5/autocad-civil-3d-ideas/point-file-formats-to-accept-header-rows/idi-p/...

 

In the meantime, I just have duplicate files one with header data and one without.

Cheers

- Mick

Civil3d user in Australia since 2012.
Message 8 of 18
autoMick
in reply to: Anonymous

As far as text editors go, I find it very hard to look past AkelPad (google it). It has good search/replace can handle very large files and is fast.

Microsoft Excel has this great button:

Capture.PNG

and as Dave says, you can save in a whole variety of formats.

Also, if you really want to get into statistical analysis google the "R project" - takes some getting used to, but this is an incredibly flexible platform for data handling, recoding and analysis (I use the Deducer front end).

Cheers

- Mick

 

Civil3d user in Australia since 2012.
Message 9 of 18
neilyj666
in reply to: autoMick

I'm not sure what relevance this thread has to Civil 3D...as the data file doesn't look like anything that would be of use???

neilyj (No connection with Autodesk other than using the products in the real world)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2024 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
Message 10 of 18
Anonymous
in reply to: Pointdump

@Pointdump Thank you very much for your suggestion.

But still my problem is hanging. I hope to solve it as soon as possible.

Best Regards,

Abdul

Message 11 of 18
autoMick
in reply to: Anonymous

@Anonymous I'm pretty sure that @Pointdump has answered it. You should import your data into Excel, resolve the issue with your missing first header label and any other inconsistencies then export (i.e. Save As...) from Excel in the format you want. The issue doesn't seem have anything to do with Civil3d as @neilyj666 points out, and in fact I don't think Civil3d could do what you need if you wish to retain the header information - the software I mentioned in my previous post has much better capabilities.

Cheers

- Mick

Civil3d user in Australia since 2012.
Message 12 of 18
Anonymous
in reply to: autoMick

Thank you very much Mick. The above mentioned all solutions did not work.

@neilyj666,I am also fully aware that this forum is not txt editor or excel, but I was trying.

Best Regards,

Abdul

 

Message 13 of 18
autoMick
in reply to: Anonymous

Abdul, please see attached - using the techniques described above.

Regards

- Mick

 

Civil3d user in Australia since 2012.
Message 14 of 18
Anonymous
in reply to: autoMick

Dear Mick

Thank You very much. I run that format in NODF software, but again problem is not solved.

I am going to send you the txt file generated from excel by some one.

I also asked him many times how to generate accurate format, but he never told me technique, instead he sent me the accurate file.

I can send to as well, I tried to figure out how he did it, but I was kind of lost.

You may have look, this is accurate format.

Thanks

Abdul

Message 15 of 18
autoMick
in reply to: Anonymous

Try this one....

Civil3d user in Australia since 2012.
Message 16 of 18
Anonymous
in reply to: autoMick

Dear Mick, You absolutely nailed it. Thank you very much.

Could you please explain me, how you converted?

it would be great If you can show me steps by images?

Really Looking forward for that.

Best Regards,

Abdul

Message 17 of 18
autoMick
in reply to: Anonymous

OK that's great Abdul,

The original file had both spaces and tab characters, as well as spaces in the PAT Number column. So the process was to open up the csv file in Excel, rename PAT 1 to PAT01, etc. and add in a field name "PATNo" at the top. to fix up that column.

Then I saved this and opened the file in AkelPad (MS Word will do it too), I searched for all tab characters and replaced with spaces, then I searched for all double spaces and replaced with single spaces (just to make sure).

then I renamed the file extension to ".txt"

As an optional extra, I then opened the file in Excel, then used the "Text to columns" tool highlighted previously to make sure all the data parsed correctly into uniform columns.

Regards

- Mick

 

Snip below is from Akelpad, showing settings used to replace tabs with spaces - the rest I hope would be fairly straightforward.

Capture.PNG

Civil3d user in Australia since 2012.
Message 18 of 18
Anonymous
in reply to: autoMick

Dear Mick Once again I am thankful to you.

You guys are doing amazing job.

This forum is really helpful.

My all best wishes to you and experts of this forum.

I am really thankful for this masterpiece.

Best Regards,

Abdul

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report