EmphasizeIModelElements Class @beta

An implementation of IModelDisplayReferenceFeatureOverrideProvider for emphasizing selected elements through simple color/transparency appearance overrides.

Implements

Methods

Name Description
addFeatureOverrides(overrides: FeatureSymbology.Overrides): void Establish active feature overrides to emphasize elements and apply color/transparency overrides.  
clearAlwaysDrawnElements(): boolean Clear always drawn elements.  
clearEmphasizedElements(): boolean Clear emphasized elements.  
clearEmphasizedIsolatedElements(setToAlwaysDrawn: boolean): boolean Clear emphasized isolated elements.  
clearHiddenElements(): boolean Clear hidden elements.  
clearIsolatedElements(): boolean Clear isolated elements.  
clearNeverDrawnElements(): boolean Clear never drawn elements.  
clearOverriddenElements(keyOrIds?: number | Id64Arg): boolean Clear color/transparency overrides from elements.  
createDefaultAppearance(): FeatureAppearance Create default appearance to use for emphasizeElements when not supplied by caller.  
createOverrideKey(color: ColorDef, override: FeatureOverrideType): number | undefined Get override key from color and override type  
emphasizeElements(ids: Id64Arg, defaultAppearance?: FeatureAppearance, replace: boolean = true): boolean Set the element IDs to be always drawn normally with all other elements in the view overridden to draw using a default appearance.  
emphasizeSelectedElements(ref: IModelDisplayReference, defaultAppearance?: FeatureAppearance, replace: boolean = true, clearSelection: boolean = true): boolean Set the currently selected elements to be always drawn normally with all other elements in the view overridden to draw using a default appearance.  
fromJSON(props: EmphasizeElementsProps): boolean Initialize from JSON representation.  
getAlwaysDrawnElements(): Id64Set | undefined Get the IDs of the currently always drawn elements.  
getEmphasizedElements(): Id64Set | undefined Get the IDs of the currently emphasized elements.  
getEmphasizedIsolatedElements(): Id64Set | undefined Get the IDs of the currently emphasized isolated elements.  
getHiddenElements(): Id64Set | undefined Get the IDs of the currently hidden elements.  
getIsolatedElements(): Id64Set | undefined Get the IDs of the currently isolated elements.  
getNeverDrawnElements(): Id64Set | undefined Get the IDs of the currently never drawn elements.  
getOverriddenElements(): Map<number, Id64Set> | undefined Get the map of current elements with color/transparency overrides.  
getOverriddenElementsByKey(key: number): Id64Set | undefined Get the IDs of current elements with the specified color/transparency override.  
getOverrideFromKey(key: number): { color: ColorDef, overrideType: FeatureOverrideType } Get color and override type for the given key.  
hideElements(ids: Id64Arg, replace: boolean = false): boolean Set the element IDs to be never drawn.  
isolateElements(ids: Id64Arg, replace: boolean = true): boolean Set the element IDs to be always drawn exclusively.  
isolateSelectedElements(ref: IModelDisplayReference, replace: boolean = true, clearSelection: boolean = true): boolean Set the currently selected elements to be always drawn exclusively.  
overrideElements(ids: Id64Arg, color: ColorDef, override: FeatureOverrideType = FeatureOverrideType.ColorOnly, replace: boolean = false): boolean Set the element IDs to display with a color/transparency override.  
overrideSelectedElements(ref: IModelDisplayReference, color: ColorDef, override: FeatureOverrideType = FeatureOverrideType.ColorOnly, replace: boolean = false, clearSelection: boolean = true): boolean Set the currently selected elements to display with a color/transparency override.  
setAlwaysDrawnElements(ids: Id64Arg, exclusive: boolean = true, replace: boolean = true): boolean Set the element IDs to be always drawn.  
setNeverDrawnElements(ids: Id64Arg, replace: boolean = true): boolean Set the element IDs to be never drawn.  
toJSON(): EmphasizeElementsProps Serialize to JSON representation.  
clear(ref: IModelDisplayReference, inactiveOnly: boolean = false): void Static Drop the EmphasizeIModelElements provider currently registered with the specified IModelDisplayReference, if any is registered.  
get(ref: IModelDisplayReference): EmphasizeIModelElements | undefined Static Return the EmphasizeIModelElements provider currently registered with the specified IModelDisplayReference, if one is already registered.  
getOrCreate(ref: IModelDisplayReference): EmphasizeIModelElements Static Return the EmphasizeIModelElements provider currently registered with the specified IModelDisplayReference, or register a new one and return it.  

Properties

Name Type Description
defaultAppearance Accessor FeatureAppearance | undefined Establish a default appearance to apply to elements without overrides.  
defaultAppearance Accessor Static ReadOnly FeatureAppearance    
defaultAppearance Setter defaultAppearance(appearance: FeatureAppearance): void    
isActive Accessor ReadOnly boolean    
unanimatedAppearance Accessor FeatureAppearance | undefined Establish a default appearance to apply to elements that are not animated by the view's RenderSchedule.Script.  
unanimatedAppearance Setter unanimatedAppearance(appearance: FeatureAppearance): void    
wantEmphasis Accessor boolean If true, all overridden and emphasized elements will also have the "emphasis" effect applied to them.  
wantEmphasis Setter wantEmphasis(value: boolean): void    

Defined in

Last Updated: 26 November, 2026