Here's some background: I am trying to move geometry as smoothly as possible between GIS and Grasshopper. I am in the midst of writing a python script that will output dxf files from GIS (as DXF_R14). Then I would import the DXF file into rhino and bring objects into Grasshopper by their object ID. The challenge in moving the geometry is retaining a specific order to the geometry, so that I can associate any list of data that I want with that geometry, whether it is in GIS or Grasshopper.
It occurred to me that Rhino files have id's for all the objects, and it is possible to "name" objects with scripting tools in Rhino, in order to give them a particular object id. Maybe, possibly, I can find a way to give the geometry specific object ids in the dxf file, using python.
My question is:
if I give object ids to geometry in a dxf file, will the ids persist when I import the dxf file into rhino? Or, can rhino read object ids from dxf files, or does it rename all the geometry with new ids?
I still don't know if I can give specific ids to the dxf file, but if I can . . . . and if I can read those ids using grasshopper . . . . then it would be an awesome way to reorder geometry when I move it between GIS and Grasshopper. It would save a ton of time.
Any help is hugely appreciated!
Tags: