[TypeName("Model Block Definition")] [TypeDescription("Rhino model block definition")] public sealed class ModelInstanceDefinition : ModelComponentContent, IGH_BakeAwareData, IGH_PreviewData, IGH_PreviewMeshData
Represents a Rhino block definition. Wraps the functionality of the InstanceDefinition type.

Constructors

ModelInstanceDefinition

#
public ModelInstanceDefinition()

ModelInstanceDefinition

#
public ModelInstanceDefinition(
Attributes
attributes
)

ModelInstanceDefinition

#
public ModelInstanceDefinition(
id
)

ModelInstanceDefinition

#
public ModelInstanceDefinition()

Fields

Serial

protected internal int Serial
inherited fromModelData

Properties

Attribs

#
protected ModelInstanceDefinition.Attributes Attribs { get; set; }

BoundingBox

#
[Browsable(false)] public BoundingBox BoundingBox { get; }
Explicit

IGH_PreviewData.ClippingBox

#
BoundingBox ClippingBox
ClippingBox

DefaultAttributes

#
protected override ModelData.Attributes DefaultAttributes { get; }

DisplayName

[Browsable(false)] public string DisplayName { get; }
inherited fromModelData
DisplayName

FilePath

#
public string FilePath { get; }

Id

public Guid? Id { get; }
inherited fromModelContent

IsReferencedData

protected bool IsReferencedData { get; }
inherited fromModelContent
IsReferencedData

IsReferencedDataLoaded

protected bool IsReferencedDataLoaded { get; }
inherited fromModelContent

IsValid

#
public override bool IsValid { get; }

IsValidWhyNot

#
protected override string IsValidWhyNot { get; }

Name

public virtual ModelContentName Name { get; }
inherited fromModelContent

Notes

public string Notes { get; }
inherited fromModelContent

Objects

#
public IReadOnlyList<ModelObject> Objects { get; }

Parent

public ModelContentName Parent { get; }
inherited fromModelContent

Tags

public ModelTags Tags { get; }
inherited fromModelContent

TypeDescription

protected string TypeDescription { get; }
inherited fromModelData
TypeDescription

TypeName

[Browsable(false)] public virtual string TypeName { get; }
inherited fromModelData
TypeName

Unset

#
public static ModelInstanceDefinition Unset { get; }

UpdateType

#
public InstanceDefinitionUpdateType? UpdateType { get; }

Url

#
public string Url { get; }

UrlDescription

#
public string UrlDescription { get; }

UserText

public ModelUserText UserText { get; }
inherited fromModelComponentContent

Methods

AsFrozen

Try to obtain a dereferenced snapshot of itself.
public ModelContent AsFrozen(
deep = true
Determines whether or not referenced content should also be frozen.
)
inherited fromModelContent
Itself if it is already dereferenced.

BakeGeometry

#
public bool BakeGeometry(
doc,
att,
ref Guid
obj_guid
)
BakeGeometry

Cast

#
public static ModelInstanceDefinition Cast(
source
)

CastTo<T>

#
public override bool CastTo<T>(
ref T
target
)
Explicit

IGH_PreviewMeshData.DestroyPreviewMeshes

#
void DestroyPreviewMeshes()
Explicit

IGH_PreviewData.DrawViewportMeshes

#
void DrawViewportMeshes()
DrawViewportMeshes
Explicit

IGH_PreviewData.DrawViewportWires

#
void DrawViewportWires()
DrawViewportWires

Equals

public bool Equals()
inherited fromModelContent

Equals

public bool Equals(
other
)
inherited fromModelData

Equals

public override bool Equals(
other
)
inherited fromModelContent
ModelData.Equals

GetBoundingBox

#
public BoundingBox GetBoundingBox(
xform
)

GetHashCode

public override int GetHashCode()
inherited fromModelContent
Explicit

IGH_PreviewMeshData.GetPreviewMeshes

#
Mesh[] GetPreviewMeshes()
GetPreviewMeshes

InternaliseData

protected bool InternaliseData()
inherited fromModelContent

LoadReferencedData

protected virtual bool LoadReferencedData()
inherited fromModelContent
LoadReferencedData

Read

protected override bool Read(
reader
)
inherited fromModelContent
ModelData.Read
Read

RenderItem

protected virtual bool RenderItem(
graphics,
area,
alpha
)
inherited fromModelContent

RuntimeId

protected internal Guid? RuntimeId(
document
)
inherited fromModelContent

ToAttributes

#
public ModelInstanceDefinition.Attributes ToAttributes()

ToDetails

public string ToDetails()
inherited fromModelData

TooltipString

public override string TooltipString()
inherited fromModelContent

ToString

public override string ToString()
inherited fromModelContent

UnloadReferencedData

protected virtual void UnloadReferencedData()
inherited fromModelContent

Write

protected override bool Write(
writer
)
inherited fromModelContent
ModelData.Write
Write

Convertors