Properties

AutoDelete

True if the content is automatically deleted when not in use.
public bool AutoDelete { get; }
inherited fromFile3dmRenderContent

ChildSlotName

The render content's child slot name.
public string ChildSlotName { get; }
inherited fromFile3dmRenderContent

ComponentStatus

Gets or sets the component status of the model component.
public virtual ComponentStatus ComponentStatus { get; set; }
inherited fromModelComponent

DeletedName

Gets the name of a component that is deleted.
public string DeletedName { get; }
inherited fromModelComponent

Disposed

Indicates if this object has been disposed or the document it originally belonged to has been disposed.
public bool Disposed { get; }
inherited fromCommonObject

File3dmParent

The parent File3dm of the entire hierarchy.
public File3dm File3dmParent { get; }
inherited fromFile3dmRenderContent

Filename

#Since v8.0
If the texture has a file name, returns that file name. Otherwise returns an empty string.
public string Filename { get; }

GroupId

The content's group id.
public Guid GroupId { get; }
inherited fromFile3dmRenderContent

HasId

Returns a value indicating whether the component has an ID.
public bool HasId { get; }
inherited fromModelComponent

HasIndex

Returns a value indicating whether the component has an Index.
public bool HasIndex { get; }
inherited fromModelComponent

HasName

Returns a value indicating whether the component has a Name.
public bool HasName { get; }
inherited fromModelComponent

HasUserData

Gets true if this class has any custom information attached to it through UserData.
public bool HasUserData { get; }
inherited fromCommonObject

Hidden

True if the content is hidden.
public bool Hidden { get; }
inherited fromFile3dmRenderContent

Id

Gets or sets the ID of the current instance.
public virtual Guid Id { get; set; }
inherited fromModelComponent
InvalidOperationExceptionWhen setting the ID failed. This usually happened because the instance ID is already locked.

IdIsLocked

Returns a value indicating whether the component ID is already locked.
public bool IdIsLocked { get; }
inherited fromModelComponent

Index

Gets or sets the model component index attribute.
public virtual int Index { get; set; }
inherited fromModelComponent
InvalidOperationExceptionWhen setting the Index failed. This usually happens because the instance Index is already locked.

IndexIsLocked

Returns a value indicating whether the component Index is already locked.
public bool IndexIsLocked { get; }
inherited fromModelComponent

InstanceDefinitionModelSerialNumber

When a component is in a model as part of the information required for a linked instance definition, this value identifies the linked instance definition reference model.
[CLSCompliant(false)] public virtual uint InstanceDefinitionModelSerialNumber { get; }
inherited fromModelComponent
Remarks: Reference components are not saved in .3dm archives. Typically this value is set and locked by the code that adds a component to a model. This value is not saved in .3dm archives.

IsChild

True if this is a child of another render content (i.e., has a parent; is not top-level).
public bool IsChild { get; }
inherited fromFile3dmRenderContent

IsComponentStatusLocked

The component status itself can be locked. This returns an indication.
public bool IsComponentStatusLocked { get; }
inherited fromModelComponent

IsDeleted

true if the component is deleted. Deleted components are kept by the document for undo purposes.
public virtual bool IsDeleted { get; }
inherited fromModelComponent

IsDocumentControlled

If true this object may not be modified. Any properties or functions that attempt to modify this object when it is set to "IsReadOnly" will throw a NotSupportedException.
public virtual bool IsDocumentControlled { get; }
inherited fromCommonObject

IsReference

Gets a value indicting whether this component is a referenced component. Referenced components are part of referenced documents.
public virtual bool IsReference { get; }
inherited fromModelComponent

IsSystemComponent

True if this model component is a system constant.

An incomplete list of system constant model components is below:

  • ON_ModelComponent::Unset

  • ON_InstanceDefinition::Empty

  • ON_Linetype::Unset
  • ON_Linetype::Continuous
  • ON_Linetype::ByLayer
  • ON_Linetype::ByParent

  • ON_Layer::Unset
  • ON_Layer::Default

  • ON_TextStyle::Unset
  • ON_TextStyle::Default
  • ON_TextStyle::ByLayer
  • ON_TextStyle::ByParent

  • ON_DimStyle::Unset
  • ON_DimStyle::Default
  • ON_DimStyle::DefaultInchDecimal
  • ON_DimStyle::DefaultInchFractional
  • ON_DimStyle::DefaultFootInchArchitecture
  • ON_DimStyle::DefaultMillimeterSmall
  • ON_DimStyle::DefaultMillimeterLarge
  • ON_DimStyle::DefaultMillimeterArchitecture
public bool IsSystemComponent { get; }
inherited fromModelComponent

IsTopLevel

True if this is a top-level render content (i.e., has no parent; is not a child).
public bool IsTopLevel { get; }
inherited fromFile3dmRenderContent

IsValid

Tests an object to see if it is valid.
public virtual bool IsValid { get; }
inherited fromCommonObject

Kind

the kind of render content as a string.
public string Kind { get; }
inherited fromFile3dmRenderContent

ModelSerialNumber

A value identifying the model that manages this component.
[CLSCompliant(false)] public virtual uint ModelSerialNumber { get; }
inherited fromModelComponent
Remarks: If the component is being managed by a model, this value identifies the model. In Rhino, this value is the document runtime serial number. Typically this value is set and locked by the code that adds a component to a model. This value is not saved in .3dm archives.

Name

Gets or sets the name
public virtual string Name { get; set; }
inherited fromModelComponent
InvalidOperationExceptionWhen setting the Name failed. This usually happens because the instance Name is already locked.

NameIsLocked

Returns a value indicating whether the component Name is already locked.
public bool NameIsLocked { get; }
inherited fromModelComponent

Notes

The content's notes.
public string Notes { get; }
inherited fromFile3dmRenderContent

Parent

The parent content or null if this is the top level object.
public File3dmRenderContent Parent { get; }
inherited fromFile3dmRenderContent

PlugInId

The content's plug-in id.
public Guid PlugInId { get; }
inherited fromFile3dmRenderContent

Reference

True if the content is a reference content.
public bool Reference { get; }
inherited fromFile3dmRenderContent

ReferenceModelSerialNumber

When a component is in a model for reference, this value identifies the reference model.
[CLSCompliant(false)] public virtual uint ReferenceModelSerialNumber { get; }
inherited fromModelComponent
Remarks: Reference components are not saved in .3dm archives. Typically this value is set and locked by the code that adds a component to a model. This value is not saved in .3dm archives.

RenderEngineId

The content's render-engine id.
public Guid RenderEngineId { get; }
inherited fromFile3dmRenderContent

Tags

The content's tags.
public string Tags { get; }
inherited fromFile3dmRenderContent

TopLevel

The top-level parent content. Returns this if this is the top-level item.
public File3dmRenderContent TopLevel { get; }
inherited fromFile3dmRenderContent

TypeId

The unique id of the content type.
public Guid TypeId { get; }
inherited fromFile3dmRenderContent

TypeName

The internal name of the content type.
public string TypeName { get; }
inherited fromFile3dmRenderContent

UserData

List of custom information that is attached to this class.
public UserDataList UserData { get; }
inherited fromCommonObject

UserDictionary

Dictionary of custom information attached to this class. The dictionary is actually user data provided as an easy to use shareable set of information.
public ArchivableDictionary UserDictionary { get; }
inherited fromCommonObject

Methods

ChildSlotAmount

Gets the amount property for the texture in the specified child slot.
public double ChildSlotAmount(
childSlotName
The child slot name of the texture.
)
inherited fromFile3dmRenderContent
The amount, typically from 0.0 to 100.0; 0.0 if the slot has no amount.

ChildSlotOn

True if a particular child slot is 'on'.
public bool ChildSlotOn(
child_slot_name
)
inherited fromFile3dmRenderContent

ClearId

Resets the HasId property of the model component to false, if possible.
public void ClearId()
inherited fromModelComponent
InvalidOperationExceptionIf the ID is locked.

ClearIndex

Resets the HasIndex property of the model component to false, if possible.
public void ClearIndex()
inherited fromModelComponent
InvalidOperationExceptionIf the index is locked.

ClearName

Resets the HasName property of the model component to false, if possible.
public void ClearName()
inherited fromModelComponent
InvalidOperationExceptionIf the name is locked.

ConstructConstObject

Assigns a parent object and a sub-object index to this.
protected void ConstructConstObject(
parentObject,
The parent object.
subobjectIndex
The sub-object index.
)
inherited fromCommonObject

DataCRC

Increments the Cyclic Redundancy Check value by this instance.
[CLSCompliant(false)] public uint DataCRC(
currentRemainder
The current remainder value.
)
inherited fromModelComponent
The updated remainder value.

DeleteChild

Deletes any existing child with the specified child slot name. True if successful, else false.
public bool DeleteChild(
child_slot_name
)
inherited fromFile3dmRenderContent

Dispose

Actively reclaims unmanaged resources that this instance uses.
public void Dispose()
inherited fromCommonObject

Dispose

For derived class implementers.

This method is called with argument true when class user calls Dispose(), while with argument false when the Garbage Collector invokes the finalizer, or Finalize() method.

You must reclaim all used unmanaged resources in both cases, and can use this chance to call Dispose on disposable fields if the argument is true.

Also, you must call the base virtual method within your overriding method.

protected virtual void Dispose(
disposing
true if the call comes from the Dispose() method; false if it comes from the Garbage Collector finalizer.
)
inherited fromCommonObject

EnsurePrivateCopy

If you want to keep a copy of this class around by holding onto it in a variable after a command completes, call EnsurePrivateCopy to make sure that this class is not tied to the document. You can call this function as many times as you want.
public void EnsurePrivateCopy()
inherited fromCommonObject

FindChild

The child with the specified child slot name, or null if no such child exists.
public File3dmRenderContent FindChild(
child_slot_name
)
inherited fromFile3dmRenderContent

GetObjectData

Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
[SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)] public virtual void GetObjectData(
info,
The System.Runtime.Serialization.SerializationInfo to populate with data.
context
The destination (see System.Runtime.Serialization.StreamingContext) for this serialization.
)
inherited fromCommonObject

GetParameter

Gets a named parameter. The parameter value or null if not found.
[CLSCompliant(false)] public IConvertible GetParameter(
param
)
inherited fromFile3dmRenderContent

IsValidWithLog

Determines if an object is valid. Also provides a report on errors if this object happens not to be valid.
public bool IsValidWithLog(
out string
log
A textual log. This out parameter is assigned during this call.
)
inherited fromCommonObject
true if this object is valid; false otherwise.

LockId

Locks the component Id property.
public void LockId()
inherited fromModelComponent

LockIndex

Locks the component Index property.
public void LockIndex()
inherited fromModelComponent

LockName

Locks the component Name property.
public void LockName()
inherited fromModelComponent

NonConstOperation

For derived classes implementers.

Defines the necessary implementation to free the instance from being constant.

protected virtual void NonConstOperation()
inherited fromCommonObject

OnSwitchToNonConst

Is called when a non-constant operation first occurs.
protected virtual void OnSwitchToNonConst()
inherited fromCommonObject

SetChild

Sets a copy of another render content as the child in the specified child slot, replacing any existing child in that slot.
public bool SetChild(
child,
The render content to copy into the child slot.
childSlotName
The child slot name.
)
inherited fromFile3dmRenderContent
True if successful, else false.

SetChildSlotAmount

Sets the amount property for the texture in the specified child slot.
public bool SetChildSlotAmount(
childSlotName,
The child slot name of the texture.
amount
The texture amount. Values are typically from 0.0 to 100.0.
)
inherited fromFile3dmRenderContent
True if successful, else false.

SetChildSlotOn

Sets the on-ness property for the texture in the specified child slot.
public bool SetChildSlotOn(
childSlotName,
The child slot name of the texture.
on
Value for the on-ness property.
)
inherited fromFile3dmRenderContent
True if successful, else false.

SetParameter

Sets a named parameter. True if the parameter was set, else false.
public bool SetParameter(
param,
value
)
inherited fromFile3dmRenderContent

ToJSON

Create a JSON string representation of this object
public string ToJSON()
inherited fromCommonObject

ToString

Returns the name of the model component type, and then its name and index.
public override string ToString()
inherited fromModelComponent
Remarks: This is provided as a visual aid. Do not rely on this for serialization.
Object.ToString

ToTexture

#Since v8.0
Get a simulated texture that approximates this texture's appearance.
public Texture ToTexture()

XML

Gets the render content's state as an XML string.
public string XML(
recursive
)
inherited fromFile3dmRenderContent