qualitron.areas

class AreaHelperManager[source]

Bases: object

Manage Area Helper instances, including create, purge and write parameter values.

__init__()[source]

Initialize instance of the class.

bakeDishapes()[source]

Set comment parameter to mark a direct shape baked.

checkStatus()[source]

check if any areaHelper instances exist string rules of revitron filter sometimes dont work so using lookup parameter.

createDishapes()[source]

Create all selected direct shapes.

createSharedParams()[source]

Create shared parameters to direct shape category.

purgeSharedParams()[source]

purge shared parameters WIP

removeDishapes()[source]

Purge dishapes.

static selectAreas(selected)[source]

Select areas according to heighlited direct shgapes.

Parameters

selected (obj) – Heighlited direct shapes

Returns

Areas

Return type

obj

set3DView()[source]

Create 3D view and set active.

toggle()[source]

Switch direct shapes.

updateAreaDict()[source]

Update area dict. {area scheme name : {levelName : [areas]}

updateAreas(schemeName, levelName)[source]

Refresh selected areas.

updateParamDict()[source]

Update parameter dict. {areaParamName:dishapeParamName}

class LevelHandler[source]

Bases: object

Functions for handling level infos.

__init__()[source]

Initialize a level handler instance by creating level items for all levels.

getAbove(levelItem)[source]

Get the name of the first story level above the given level, if not found, return None.

getHeight(area)[source]

Get height of area based on this level, by default 3 meters.

class LevelItem(level)[source]

Bases: object

Contains infos of a level.

__init__(level)[source]

Initialize a level item instance.

Parameters

level (obj) – Revit level instance.