I would like to ask you a question concerned with the grasshopper scripts. I have the data of landxml ( alignment and profiles are included). I would like to import this data into rhino, using grasshopper scripts. I also tried the scripts of the Bison add in but I cannot be able to import my landxml data. Is there any add in or scripts I could try? If you have any better ideas, could you explain it to me to be able to import my data.
You can convert the xml files to json, with JSwan and then use the read JSON components to extract the geometry data. https://www.food4rhino.com/en/app/jswan
or you could try Heron (via package manager)
When I tried the Heron package, Import Vector, I got the error message as shown in the picture below. Is there any setting or component that I could try? I also tried JSwan component to change xml to json file.I got the error message like the attachment picture.
How could I continue to be able to see my landxml file?
Is there any alignment Landxml data sample that you could share it to me? If it is possible to share with gh scripts, I will be happy. I also tried with the native read file component but my alignment data cannot be found at rhino view. Thank for sharing
information concerned with Notepad. I will also try it.
I tried another alignment landxml data and It can be changed to Json file. I extracted the Json data with Deserialize Json component. I did not know how could I get the preview at rhino using the extracted Json data. Is there any component that I could try? If you have any good ideas, could you explain it to me? Thanks for supporting a lot!
You will need to unpack the Json, and look what is in there. Landxml is quite complex structured.
If you want an easier way you could try/buy this plug-in: https://www.food4rhino.com/en/app/endpoints
Below you can find an example of how to convert the landxml text file to geometry.