Text in txt file not recognized

Text in txt file not recognized

mairh_tsek
Collaborator Collaborator
1,670 Views
5 Replies
Message 1 of 6

Text in txt file not recognized

mairh_tsek
Collaborator
Collaborator

Hello all,

 

I created a .txt file with the coordinates (XYZ) and at the beginning I add also the name of the element. For example A1,555,434,2.

 

When I import the txt in dynamo the first value with the name it isn't recognized.

Can I do something in order to solve this problem?

 

Thank you in advance.

 

 

 

0 Likes
Accepted solutions (1)
1,671 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable

Has to be a CSV file in order for it to be viewed using that node. "Save as" or re-input your txt file into a csv, then import it the same way into dynamo. You may need to identify the first column as a string in order for it to register in your parameter inputs as well. 

0 Likes
Message 3 of 6

mairh_tsek
Collaborator
Collaborator

If you check the image above I used the 'importFromCSV' in order to import the txt file. And I identified the first column but I receive the warning. Is it because instead of number I have text in the first column?

 

Thanks!

0 Likes
Message 4 of 6

Anonymous
Not applicable

Get rid of the first column....it recognizes the coordinates not the label.

Message 5 of 6

Anonymous
Not applicable
Accepted solution

I am aware, but you cant use that node with a .txt file. 

That node only imports .csv files. 

 

Use the filesystem.readtext node. Then you may need to do some list management to split values from their commas into lists. 

0 Likes
Message 6 of 6

mairh_tsek
Collaborator
Collaborator

Thank you , I used the String.split node .