Click or drag to resize

ManifestTableFindId Method (Guid, ModelComponentType)

Uses the guid to find a model component. Deleted objects cannot be found by id. The guid is the value that is stored in the .Id property. In a single document, no two active objects have the same guid. If an object is replaced with a new object, then the guid persists. For example, if the _Move command moves an object, then the moved object inherits its guid from the starting object. If the Copy command copies an object, then the copy gets a new guid. This guid persists through file saving/openning operations. This function will not find grip objects.

Namespace:  Rhino.FileIO
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public abstract ModelComponent FindId(
	Guid id,
	ModelComponentType type
)

Parameters

id
Type: SystemGuid
ID of model component to search for.
type
Type: Rhino.DocObjectsModelComponentType
The type to be searched. If this is Unset then all types are searched.

Return Value

Type: ModelComponent
Reference to the rhino object with the objectId or null if no such object could be found.
Version Information

Rhino for Windows

Supported in: 6.1 BETA
See Also