I’m trying to import a set of points into Rhino with as little preprocessing as possible in Grasshopper. I have the X,Y,Z coordinates in an excel file. In Excel, I can prepare the format of the points that are necessary. What is the fastest way to do it?
Fastest Way:
Take them into a textfile in this format: “X,Y,Z” = “10.5,20.3,2.3”.
Select all → CTRL+C → Go to Rhino create point → press CTRL+V = U get all points.
To create these format use the programm “Notepad +” there u can search and replace. with CTRL + F
U can also use Excel to place the maybe seperated (X Y Z data) from A B C into D in this format X,Y,Z
Way.2: Import.gh (11.9 KB)
Here is a Script, it will help u to understand how to do it with multiple files.
1.Seach and read files in a path
2.Read files
3.get the Coordinates and create Points
4.Bake the Points on a Layer with the same name of the File.
5. The script is creating polylines out of the points
6. Then u can add component “Pipe” and “cap holes” to create 3D
(U dont need to do 1-5, the script is doing everythink, simple add the Path and press the Button)
I used it to import 40 textfiles, with each 10 coordinates to create lines. With 1 click.
Text files needs only contain “X,Y,Z” “10.5,20.3,2.3” This format.
The path should only contain the textfiles.