How to Enum the names of NamedCPlane in RhinoCommon

I’d like to know how to enum the names of NamedCPlane in RhinoCommon (C#).

How about this:

protected override Result RunCommand(RhinoDoc doc, RunMode mode)
{
  foreach (var cplane in doc.NamedConstructionPlanes)
    RhinoApp.WriteLine(cplane.Name);
  return Result.Success;
}

1 Like

Thank you very much.