Remapping Textures in Rhino

Hello,

I am trying to overcome the issue when I load objects from Revit Speckle into Rhino, any mappings that have been applied to the objects are wiped clean. I have made a C++ plugin that allows the Rhino user to save all the texture mappings in the model before loading from Speckle, then they can restore the texture mappings after the update.
This first pass works well, however I am struggling to make it work for blocks. Everything I’ve tried in the Rhino API results in access violation exceptions and ultimately crashes Rhino.
I know this is more of a Rhino issue than Speckle and I have posted a question in the Rhino forum but I thought I would raise it here too as it would help users with their Speckle workflows.
RestoreTextureMappings

1 Like