Properties
ComponentStatus
Disposed
HasUserData
| InvalidOperationException | When setting the ID failed. This usually happened because the instance ID is already locked. |
IdIsLocked
IndexIsLocked
InstanceDefinitionModelSerialNumber
IsComponentStatusLocked
IsDocumentControlled
IsLinkedType
IsSystemComponent
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
ModelSerialNumber
| InvalidOperationException | When setting the Name failed. This usually happens because the instance Name is already locked. |
NameIsLocked
ReferenceModelSerialNumber
SourceArchiveRelativePath
UrlDescription
UserData
UserDictionary
Methods
ClearId
| InvalidOperationException | If the ID is locked. |
ClearIndex
| InvalidOperationException | If the index is locked. |
ClearName
| InvalidOperationException | If the name is locked. |
ConstructConstObject
| definedViewportProjection (DefinedViewportProjection) | The view projection. |
| displayMode (DisplayMode) | The display mode. |
| bitmapSize (Size) | The bitmap size in pixels. |
| applyDpiScaling (bool) | Specify true to apply DPI scaling (Windows-only). |
| definedViewportProjection (DefinedViewportProjection) | The view projection. |
| displayMode (DisplayMode) | The display mode. |
| bitmapSize (Size) | The bitmap size in pixels. |
| definedViewportProjection (DefinedViewportProjection) | The view projection. |
| bitmapSize (Size) | The bitmap size in pixels. |
| applyDpiScaling (bool) | Specify true to apply DPI scaling (Windows-only). |
| definedViewportProjection (DefinedViewportProjection) | The view projection. |
| bitmapSize (Size) | The bitmap size in pixels. |
| definitionObjectId (Guid) | Id of one of this definition's objects to draw selected. |
| viewportProjection (DefinedViewportProjection) | The view projection. |
| displayMode (DisplayMode) | The display mode. |
| bitmapSize (Size) | The bitmap size in pixels. |
| applyDpiScaling (bool) | Specify true to apply DPI scaling (Windows-only). |
| displayModeId (Guid) | The id of the display mode to draw with. |
| viewportProjection (DefinedViewportProjection) | The view projection. |
| isometricCamera (IsometricCamera) | The isometric camera angle. |
| drawDecorations (bool) | Specify true to draw viewport decorations, such as grid and axes. |
| bitmapSize (Size) | The bitmap size in pixels. |
| applyDpiScaling (bool) | Specify true to apply DPI scaling (Windows-only). |
DataCRC
| currentRemainder (uint) | The current remainder value. |
DeleteAllUserStrings
DeleteUserString
| key (string) | The key of the user string to delete. |
Dispose
Dispose
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.
| disposing (bool) | true if the call comes from the Dispose() method; false if it comes from the Garbage Collector finalizer. |
EnsurePrivateCopy
Equals
#GetObjectData
| info (SerializationInfo) | The System.Runtime.Serialization.SerializationInfo to populate with data. |
| context (StreamingContext) | The destination (see System.Runtime.Serialization.StreamingContext) for this serialization. |
GetObjectIds
| wheretoLook (int) | 0 = get top level references in active document. 1 = get top level and nested references in active document. 2 = check for references from other instance definitions. |
| key (string) | id used to retrieve the string. |
GetUserStrings
| wheretoLook (int) | 0 = check for top level references in active document. 1 = check for top level and nested references in active document. 2 = check for references in other instance definitions. |
IsValidWithLog
| log (out string) | A textual log. This out parameter is assigned during this call. |
LockId
LockIndex
LockName
NonConstOperation
Defines the necessary implementation to free the instance from being constant.
| index (int) | 0 <= index < ObjectCount. |
OnSwitchToNonConst
SetUserString
ToJSON
| options (SerializationOptions) |
ToString
| otherIdefIndex (int) | index of another instance definition. |
| layerIndex (int) | The index of layer to search for. |
| linetypeIndex (int) | The index of linetype to search for. |