I am looking for a way to export SVG files from Rhino that retain the Object Name. This will allow me to bring floor plans from Rhino into Power BI that attach back to room data created in Excel using Synoptic Designer.
Currently, I can bring a Rhino floor plan into Illustrator via either .ai or .svg export and manually add object names to attach to closed room polylines. I would much rather automate this using Grasshopper and export the .svg file including object names into Synoptic to then visualize in Power BI.
Does anyone know how the Rhino exporter writes .svg files so I can properly attach data before exporting?
What I want is to export a Rhino file to either an Illustrator or an .svg file such that the name comes in automatically (in this example, that would mean every polyline currently shown as “<Pa.th>” in Illustrator would instead be the room number). I can get Grasshopper to apply attributes in basically whatever configuration is needed to accomplish this, as long as the exporter retains the right data in the .svg file.
Yes, would love to see this implemented. I cannot think of a good workaround as of now; years ago Doodlebug for Grasshopper maybe could have assisted in naming objects inside of an Illustrator file, thereby relying instead on the Illustrator SVG exporter which would be better for Synoptic. Without being able to export this info to SVG from Rhino, I don’t know how to accomplish this workflow.
I have to believe there is some way to script the Path ID or Title with one of these, can anyone out there think of a workaround? I can send each path to a new Rhino layer and then to Illustrator, but that send each path to an SVG Group which Synoptic doesn’t seem to like inside of Power BI.
Yes it is mine it is why I asked. You are the first to ask and it is very simple to do it I manage to do it tonight in the project I have for Rhino 6.
It put in an ID attribute having the Rhinoceros Object Name.
Not really tested !! Seems to work on Rhino6
This is great, thank you! Except I am seeing that it retains layers by grouping SVG geometries; Synoptic seems to prefer simple files with just paths and no groups. Would it be possible to have the exporter only include the item name? Otherwise all geometries seem to be put under a layer name.
Yes this is one of the advantage of my plugin other the Rhino plugin !!
Let’s wait some day to see if Rhino team could add the Name in the ID. They use it when reading SVG so they could also output it when exporting. And they also didn’t use the grouping !