Forgot password?

Create an account!

Forum

« back

General – how to read a list of points from a *.txt

Messages

Please log in to write a message.

  • 3. caldescm (Sep 07, 2011 10.20):

    thanks

  • 2. Johannes (Sep 07, 2011 10.17):

    Hi, try the following code...

            Dim fso, filename, myfile
           
            Set fso = CreateObject("Scripting.FileSystemObject")

            FileName = "d:\testfile.txt"
            Set myfile = fso.OpenTextFile(FileName, 1)

            Call Rhino.PrintEx("start .... ")
            Do While myfile.AtEndOfStream <> True
                    Call Rhino.PrintEx (myFile.ReadLine)
            Loop
            Call Rhino.PrintEx("end .... ")

    msdn.microsoft.com/en-us/library/h7se9d4f%28v=vs.85%29.aspx
    rhinoscript.org/scripts/10

    johannes

  • 1. caldescm (Sep 07, 2011 10.07):

    Hi,
    we would like to know if Rhino is able to import/read a list of points from a text file (organized in three columns, X Y Z).

    Thanks in advance.

Recommend

Why are these buttons gray?