Grasshopper API
GH_ConvertFindRhinoObjectByNameAndType Method |
Search the current Rhino document for an object with a given name of a given type.
Namespace: Grasshopper.Kernel
Assembly: Grasshopper (in Grasshopper.dll)

public static RhinoObject FindRhinoObjectByNameAndType( string name, ObjectType type )
Public Shared Function FindRhinoObjectByNameAndType ( name As String, type As ObjectType ) As RhinoObject
Parameters
- name
- Type: SystemString
Name of object. - type
- Type: ObjectType
Geometry type of object.
Return Value
Type: RhinoObjectAn object that matches the name + type filter or null if no object could be found.
