I see in the sdksamples for Rhino.NET SDK how to create a new layer with a given layer_index and name.
I want to use Layer order, programmatically, from the SDK, to dictate display order.
Is there an example(s) or place to look in the SDK documentation, where I can learn how change the layer order programmatically. I’m assuming “layer order” means the same as what is shown in the GUI’s Layer window with its up and down arrow icons for changing order – and that earlier layers are displayed closer to front. (Perhaps I’m wrong in that assumption.)
(At one time there was a way in the C++ SDK to dictate display order per object. I’m assuming that’s not available to C# in Rhino.NET SDK, and that the way to programmatically bring things to front or forward or back is by layers – am I correct?)
I guess what I’m looking for in general is a pointer to documentation that shows how to programmatically specify display order.
Rhino 5 has BringForward, SendBackward, BringToFront, MoveToBack, and ClearDrawOrder commands to set draw order on objects.
Layer order is only used for display order in our “windows” display mode (not OpenGL). The only place you typically see this is when printing to vector output.
I take it BringForward, SendBackward, … ClearDrawOrder are commands only and are not available programmatically from the Rhino.NET SDK? If that’s true is there ANY programmatic way to make one of two or more objects that share the same geometric space, display “on top”?
This will be available in SR10. There will be a new DisplayOrder property on ObjectAttributes that you can use. Sorry for the incredibly long delay in getting this implemented.