Hello,
I’d like to know equivalent method/API in Rhinocommon(C#) ,
to select by name from Named Construction Plane for Panel (GUI Interface ).
Hi @k.saegusa,
What exactly are you looking to do? Do you want to write your own named construction plane panel? Or are you just looking to save/restore named construction planes?
– Dale
Hi @dale , thank you.
I’m just looking to restore a named construction plane by name from my plugin / Rhinocommon C#
Hi @k.saegusa,
Here is a simple command example:
protected override Result RunCommand(RhinoDoc doc, RunMode mode)
{
var view = doc.Views.ActiveView;
if (null == view)
return Result.Failure;
if (0 == doc.NamedConstructionPlanes.Count)
{
RhinoApp.WriteLine("No named construction planes to restore.");
return Result.Nothing;
}
view.ActiveViewport.SetConstructionPlane(doc.NamedConstructionPlanes[0]);
view.Redraw();
return Result.Success;
}
– Dale
Thank you, but I want to know how to update all views. (like named panel )
It seems that this sample does not work well when Rhino option setting => Link Views CPlane .