Can alignment landxml data import with grasshopper scripts?

Hello, everyone

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.

Have a good day, everyone!
Thanks for supporting!

Hi @EiZin,

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)

1 Like

Hello,

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?

Thanks a million for supporting! Have a good day!

You could try the native read file component from grasshopper, and have a look into what it looks like. XML is generally wel readable.
Or use Notepad.