DrawingViewDefinition Class

Defines a view of a DrawingModel.

Extends

Methods

Name Description
create(iModelDb: IModelDb, definitionModelId: string, name: string, baseModelId: string, categorySelectorId: string, displayStyleId: string, range: Range2d): DrawingViewDefinition Static Create a DrawingViewDefinition  
insert(iModelDb: IModelDb, definitionModelId: string, name: string, baseModelId: string, categorySelectorId: string, displayStyleId: string, range: Range2d): string Static Insert a DrawingViewDefinition  

Inherited methods

Name Inherited from Description
collectPredecessorIds(predecessorIds: Id64Set): void Protected ViewDefinition2d Collect the Ids of this element's references at this level of the class hierarchy.
collectReferenceIds(referenceIds: Set<string>): void Protected ViewDefinition2d Collect the Ids of this entity's references at this level of the class hierarchy.
delete(): void ViewDefinition2d Delete this Element from the iModel.
forEachProperty(func: PropertyCallback, includeCustom: boolean = true): void ViewDefinition2d Call a function for each property of this Entity.
getAuxiliaryCoordinateSystemId(): string ViewDefinition2d The Id of the AuxiliaryCoordinateSystem for this ViewDefinition, or an invalid Id if no ACS is defined.
ViewDefinition2d Get the class metadata for this element.
getDisplayLabel(): string ViewDefinition2d Get a display label for this Element.
getJsonProperty(nameSpace: string): any ViewDefinition2d Get a JSON property of this element, by namespace
getPredecessorIds(): Id64Set ViewDefinition2d Get the Ids of this element's references.
getReferenceIds(): Set<string> ViewDefinition2d Get the Ids of this element's references.
getToolTipMessage(): string[] ViewDefinition2d Get a list of HTML strings that describe this Element for the tooltip.
getUserProperties(namespace: string): any ViewDefinition2d Get a set of JSON user properties by namespace
insert(): string ViewDefinition2d Insert this Element into the iModel.
isDrawingView(): this is DrawingViewDefinition ViewDefinition2d Type guard for 'instanceof DrawingViewDefinition'
isSpatialView(): this is SpatialViewDefinition ViewDefinition2d Type guard for instanceof SpatialViewDefinition
isView2d(): this is ViewDefinition2d ViewDefinition2d Type guard for 'instanceof ViewDefinition2d`
isView3d(): this is ViewDefinition3d ViewDefinition2d Type guard for instanceof ViewDefinition3d
loadCategorySelector(): CategorySelector ViewDefinition2d Load this view's CategorySelector from the IModelDb.
loadDisplayStyle(): DisplayStyle ViewDefinition2d Load this view's DisplayStyle from the IModelDb.
loadDisplayStyle2d(): DisplayStyle2d ViewDefinition2d Load this view's DisplayStyle2d from the IModelDb.
removeUserProperties(nameSpace: string): void ViewDefinition2d Remove a set of JSON user properties, specified by namespace, from this Element
setAuxiliaryCoordinateSystemId(acsId: string): void ViewDefinition2d Set or clear the AuxiliaryCoordinateSystem for this ViewDefinition.
setJsonProperty(nameSpace: string, value: any): void ViewDefinition2d  
setUserProperties(nameSpace: string, value: any): void ViewDefinition2d Change a set of user JSON properties of this Element by namespace.
update(): void ViewDefinition2d Update this Element in the iModel.
createCode(iModel: IModelDb, scopeModelId: string, codeValue: string): Code Static ViewDefinition2d Create a Code for a ViewDefinition given a name that is meant to be unique within the scope of the specified DefinitionModel.
is(otherClass: undefined): boolean Static ViewDefinition2d return whether this Entity class is a subclass of another Entity class
onAllInputsHandled(_id: string, _iModel: IModelDb): void ProtectedStatic ViewDefinition2d Called on an element in a graph after all of its inputs have been processed and before its outputs are processed.
onBeforeOutputsHandled(_id: string, _iModel: IModelDb): void ProtectedStatic ViewDefinition2d Called when a root element in a subgraph is changed and before its outputs are processed.
onChildAdd(_arg: OnChildElementPropsArg): void ProtectedStatic ViewDefinition2d Called when an existing element is about to be updated so that an instance of this class will become its new parent.
onChildAdded(_arg: OnChildElementIdArg): void ProtectedStatic ViewDefinition2d Called after an existing element has been updated so that an instance of this class is its new parent.
onChildDelete(_arg: OnChildElementIdArg): void ProtectedStatic ViewDefinition2d Called when an element with an instance of this class as its parent is about to be deleted.
onChildDeleted(_arg: OnChildElementIdArg): void ProtectedStatic ViewDefinition2d Called after an element with an instance of this class as its parent was successfully deleted.
onChildDrop(_arg: OnChildElementIdArg): void ProtectedStatic ViewDefinition2d Called when an element with an instance of this class as its parent is about to be updated change to a different parent.
onChildDropped(_arg: OnChildElementIdArg): void ProtectedStatic ViewDefinition2d Called after an element with an instance of this class as its previous parent was updated to have a new parent.
onChildInsert(_arg: OnChildElementPropsArg): void ProtectedStatic ViewDefinition2d Called when a new element with an instance of this class as its parent is about to be inserted.
onChildInserted(_arg: OnChildElementIdArg): void ProtectedStatic ViewDefinition2d Called after a new element with an instance of this class as its parent was inserted.
onChildUpdate(_arg: OnChildElementPropsArg): void ProtectedStatic ViewDefinition2d Called when an element with an instance of this class as its parent is about to be updated.
onChildUpdated(_arg: OnChildElementIdArg): void ProtectedStatic ViewDefinition2d Called after an element with an instance of this the class as its parent was updated.
onDelete(arg: OnElementIdArg): void ProtectedStatic ViewDefinition2d Called before an Element is deleted.
onDeleted(_arg: OnElementIdArg): void ProtectedStatic ViewDefinition2d Called after an Element was deleted.
onInsert(arg: OnElementPropsArg): void ProtectedStatic ViewDefinition2d Called before a new Element is inserted.
onInserted(arg: OnElementIdArg): void ProtectedStatic ViewDefinition2d Called after a new Element was inserted.
onSubModelDelete(_arg: OnSubModelIdArg): void ProtectedStatic ViewDefinition2d Called when a sub-model of an instance of this class is being deleted.
onSubModelDeleted(_arg: OnSubModelIdArg): void ProtectedStatic ViewDefinition2d Called after a sub-model of an instance of this class was deleted.
onSubModelInsert(_arg: OnSubModelPropsArg): void ProtectedStatic ViewDefinition2d Called when an instance of this class is being sub-modeled by a new Model.
onSubModelInserted(_arg: OnSubModelIdArg): void ProtectedStatic ViewDefinition2d Called after an instance of this class was sub-modeled by a new Model.
onUpdate(arg: OnElementPropsArg): void ProtectedStatic ViewDefinition2d Called before an Element is updated.
onUpdated(_arg: OnElementIdArg): void ProtectedStatic ViewDefinition2d Called after an Element was updated.

Inherited properties

Name Type Inherited from Description
angle Angle ViewDefinition2d The rotation of this view.
baseModelId string ViewDefinition2d The Id of the Model displayed by this view.
categorySelectorId string ViewDefinition2d The element Id of the CategorySelector for this ViewDefinition
classFullName Accessor ReadOnly string ViewDefinition2d Get the full BIS class name of this Entity in the form "schema:class".
classFullName Accessor StaticReadOnly string ViewDefinition2d Get the full BIS class name of this Entity in the form "schema:class"
className Accessor ReadOnly string ViewDefinition2d The name of the BIS class associated with this class.
code Code ViewDefinition2d The Code for this element
delta Point2d ViewDefinition2d The delta (size) of this view, in meters, aligned with view x,y.
details Accessor ReadOnly ViewDetails ViewDefinition2d Provides access to optional detail settings for this view.
displayStyleId string ViewDefinition2d The element Id of the DisplayStyle for this ViewDefinition
federationGuid undefined | string ViewDefinition2d A FederationGuid assigned to this element by some other federated database
id string ViewDefinition2d The Id of this Entity.
iModel IModelDb ViewDefinition2d The IModelDb that contains this Entity
isInstanceOfEntity Readonly "true" ViewDefinition2d An immutable property used to discriminate between Entity and EntityProps, used to inform the TypeScript compiler that these two types
isPrivate boolean ViewDefinition2d If true, don't show this DefinitionElement in user interface lists.
jsonProperties Readonly { T } ViewDefinition2d Optional json properties of this element.
model Readonly string ViewDefinition2d The ModelId of the Model containing this element
origin Point2d ViewDefinition2d The lower-left corner of this view in Model coordinates.
parent undefined | RelatedElement ViewDefinition2d The parent element, if present, of this element.
requiredReferenceKeys StaticReadonly undefined ViewDefinition2d  
schema Static undefined ViewDefinition2d The Schema that defines this class.
schemaName Accessor ReadOnly string ViewDefinition2d The name of the BIS Schema that defines this class
userLabel undefined | string ViewDefinition2d A user-assigned label for this element.

Defined in

Last Updated: 20 June, 2023