Our plugin draws entities including meshes with an RGB defined color.
When the drawing is done in Rhino 5, and then opened in Rhino 6, the meshes are not visible.
mytest.3dm (36.6 KB)
The meshes exist and are are selectable in Rhino 6 The meshes can be re coloured in Rhino 6 and show OK Other entities (polylines, lines, points) all show OK. Drawings made in Rhino 5 open OK in Rhino 5 Drawings made in Rhino 6 open OK in Rhino 6 Drawings made in Rhino 5, with the mesh color changed in the properties, show OK in Rhino 6
The attached drawing has a mesh inside a polyline, if you open it in Rhino 6 you will see the problem.
My code to set the colour is:
Dim atts As New DocObjects.ObjectAttributes atts = doc.CreateDefaultAttributes() atts.ColorSource = DocObjects.ObjectColorSource.ColorFromObject atts.ObjectColor = System.Drawing.Color.FromArgb(XXXX) ........ Dim guid As Guid = doc.Objects.AddMesh(mymesh, atts)