I wrote a stand-alone app for doing some manipulation of 3DM files. My app uses the Rhino3dmIO.Desktop toolkit, v6.30.20288.16411.
We have a number of 3DM files we want to process. These files have one or two meshes, and a point cloud. My app does rotations and/or translations of the meshes and/or point cloud depending on certain conditions. My app doesn’t detect any errors. When I open the file in Rhino after processing through my app, the meshes have disappeared but the point cloud is still there. When I debug the app, I can see the meshes in the rhinofile object.
1.) You’re using Rhino 6 but your wrote a Rhino 3 file. Probably not the best choice.
2.) I can see you’ve got a couple of instance definitions that appear to have no geometry.
3.) You may have a couple of meshes that have been added to the document as instance definition geometry.
Anyway, with some sample code, that we can run here, we might be able to help you out.
It is not clear to me how you created or modified the file, being that you have not shared any source code. But here is some code you can use to move the instance definition geometry back to normal, viewable geometry.
Once I created the new file, everything works as expected.
I’m a little confused as to what actually happened, as the existing code worked on 3DM files we received from one source. The disappearing meshes occurred when we processed 3DM files from another source.