qualitron.view

class ElementOverrides(view, element)[source]

Bases: object

Class for handling graphical element overrides.

__init__(view, element)[source]

Inits a new ElementOverrids instance.

Parameters
  • view (object) – A Revit view element

  • element (object) – A Revit element or ElementId

clear()[source]

Clears a graphical element overrides in view.

set(color, patternId, transparency=0, overrideCutPattern=True)[source]

Sets graphical element overrides in the active view.

Parameters
  • color (int) – A list or tuple (r, g, b)

  • pattern (object) – An element id of a Revit fill pattern

  • overrideCutPattern (bool, optional) – Override cut pattern. Defaults to True.

class Isolate[source]

Bases: object

Class for handling temporary isolations.

static byCategory(categoryIds)[source]

Isolates given categories

Parameters

categoryIds (object) – A list of category ids or a single category id

static byElementIds(elementIds)[source]

Isolates given elements

Parameters

elementIds (object) – A list of element ids or a single element id

class View3dCreator[source]

Bases: object

Functions for 3D view creating.

static create(prefix='', categoryIds=[], setActive=True)[source]

create 3D view, isolate category at the same tiem

Parameters
  • prefix (str, optional) – view name prefix

  • categoryIds (list) – categories to isolate

  • setActive (bool, optional) – if 3D view set active

Returns

new 3D view

Return type

obj