Represents block instance reference. Wraps the functionality of the InstanceReferenceGeometry type.
Constructors
GH_InstanceReference
#Default constructor.
public GH_InstanceReference()
Remarks: Creates an invalid instance reference
GH_InstanceReference
#Create a duplicate of another instance reference.
public GH_InstanceReference()
GH_InstanceReference
other
instance reference to duplicate
Remarks: This constructor also copies reference data.
GH_InstanceReference
#Create a new instance reference to a Rhino instance reference object with the specified ID.
GH_InstanceReference
#Create a new instance reference with the specified instance-reference-geometry and instance-definition.
public GH_InstanceReference()
iref,
instance reference geometry to reference.
idef
instance definition to reference.
GH_InstanceReference
#Create a new instance reference with the specified instance-reference-geometry.
public GH_InstanceReference()
GH_InstanceReference
#Create a transformed instance reference of the specified instance-definition.
public GH_InstanceReference()
xform,
instance reference to duplicate
idef
instance definition object to reference.
Fields
m_value
protected T m_value
Properties
InstanceDefinition
#IsGeometryLoaded
#Gets the load state of this instance reference object. The instance reference is considered to be loaded when the local instance is not null.
Overrides: GH_GeometricGoo<T>.IsGeometryLoaded
IsReferencedGeometry
#Gets a value indicating whether or not this geometry is referenced. Not all IGH_GeometricGoo implementations support referenced geometry.
Overrides: GH_GeometricGoo<T>.IsReferencedGeometry
IsValid
#Gets the validity of this instance reference. If the instance reference is referenced but cannot be loaded, the instance reference is not valid.
Overrides: GH_GeometricGoo<T>.IsValid
IsValidWhyNot
#Gets a string describing the state of "invalidness". If the instance is valid, then this property should return Nothing or String.Empty.
Overrides: GH_Goo<T>.IsValidWhyNot
Value
Gets or sets the value of this type. Note that if the type has a ReferenceID this value might get destroyed in the future.
public override T Value { get; set; }
Overrides: GH_Goo<T>.Value
Methods
Implements: AppendRenderGeometry
CastFrom
#Remote to Local caster function. This stuff is complex, don't concern yourself with casting logic.
Overrides: GH_GeometricGoo<T>.CastFrom
CastTo<Q>
Attempt a cast to type Q.
Remarks: If false, the target instance contents are not guaranteed to be valid.
Returns: True on success, false on failure.
Implements: CastTo
CastTo<T>
#Local to Remote caster function. This stuff is complex, don't concern yourself with casting logic.
Overrides: GH_GeometricGoo<T>.CastTo
ClearCaches
#Clears all volatile caches for this instance. The boundingbox is cleared, and if the instance reference is referenced, the local instance of the instance reference is erased.
public override void ClearCaches()
Overrides: GH_GeometricGoo<T>.ClearCaches
void DestroyPreviewMeshes()
Implements: DestroyPreviewMeshes
DuplicateGeometry
#Create a duplicate of this GH_InstanceReference.
Overrides: GH_GeometricGoo<T>.DuplicateGeometry
LoadGeometry
#If the geometry is referenced and not yet loaded, attempts to load the geometry.
Returns: True if the geometry is loaded (or if it was already loaded), False on failure.
Overrides: GH_GeometricGoo<T>.LoadGeometry
LoadGeometry
#If the instance reference is referenced and not yet loaded, attempts to load the instance reference.
Returns: True if the instance reference is loaded (or if it was already loaded), False on failure.
Overrides: GH_GeometricGoo<T>.LoadGeometry
ToString
#Format the instance reference using default grasshopper formatting logic.
Overrides: GH_Goo<T>.ToString