db
Revit DB objects wrappers.
Attributes
Classes
BaseWrapper(obj=None)
Bases: object
Base revit databse object wrapper.
Source code in pyrevitlib/pyrevit/revit/db/__init__.py
Functions
unwrap()
compare_attr(src, dest, attr_name, case_sensitive=False)
staticmethod
Source code in pyrevitlib/pyrevit/revit/db/__init__.py
compare_attrs(src, dest, attr_names, case_sensitive=False)
staticmethod
ElementWrapper(element)
Bases: BaseWrapper
Revit element wrapper.
Source code in pyrevitlib/pyrevit/revit/db/__init__.py
Attributes
assoc_doc
property
name
property
symbol_name
property
family_name
property
id
property
unique_id
property
workset_id
property
mark
property
location
property
x
property
y
property
z
property
Functions
unwrap()
compare_attr(src, dest, attr_name, case_sensitive=False)
staticmethod
Source code in pyrevitlib/pyrevit/revit/db/__init__.py
compare_attrs(src, dest, attr_names, case_sensitive=False)
staticmethod
get_param(param_name)
ExternalRef(link, extref)
Bases: ElementWrapper
External reference wraper.
Source code in pyrevitlib/pyrevit/revit/db/__init__.py
Attributes
assoc_doc
property
symbol_name
property
family_name
property
id
property
unique_id
property
workset_id
property
mark
property
location
property
x
property
y
property
z
property
name
property
link
property
linktype
property
path
property
Functions
unwrap()
compare_attr(src, dest, attr_name, case_sensitive=False)
staticmethod
Source code in pyrevitlib/pyrevit/revit/db/__init__.py
compare_attrs(src, dest, attr_names, case_sensitive=False)
staticmethod
get_param(param_name)
safe_get_param(param_name, default=None)
ProjectParameter(param_def, param_binding=None, param_ext_def=False)
Bases: BaseWrapper
Project parameter wrapper.
Source code in pyrevitlib/pyrevit/revit/db/__init__.py
Attributes
param_def = param_def
instance-attribute
param_binding = param_binding
instance-attribute
param_binding_type = self._determine_binding_type()
instance-attribute
shared = False
instance-attribute
param_ext_def = None
instance-attribute
param_guid = ''
instance-attribute
name = self.param_def.Name
instance-attribute
param_id = getattr(self.param_def, 'Id', None)
instance-attribute
unit_type = self.param_def.GetSpecTypeId()
instance-attribute
param_type = self.param_def.ParameterType
instance-attribute
param_group = self.param_def.ParameterGroup
instance-attribute
Functions
unwrap()
compare_attr(src, dest, attr_name, case_sensitive=False)
staticmethod
Source code in pyrevitlib/pyrevit/revit/db/__init__.py
compare_attrs(src, dest, attr_names, case_sensitive=False)
staticmethod
ProjectInfo(doc)
Bases: BaseWrapper
Project information.
Source code in pyrevitlib/pyrevit/revit/db/__init__.py
Attributes
name
property
number
property
address
property
author
property
building_name
property
client_name
property
issue_date
property
org_name
property
org_desc
property
status
property
location
property
path
property
filename
property
Functions
unwrap()
compare_attr(src, dest, attr_name, case_sensitive=False)
staticmethod
Source code in pyrevitlib/pyrevit/revit/db/__init__.py
compare_attrs(src, dest, attr_names, case_sensitive=False)
staticmethod
XYZPoint(obj=None)
Bases: BaseWrapper
Wrapper for XYZ point.