pickling
Methods and Classes to convert Revit types to serializable.
Attributes
mlogger = logger.get_logger(__name__)
module-attribute
Classes
Serializable()
EnumSerializable(enum_value)
Bases: Serializable
Source code in pyrevitlib/pyrevit/revit/db/pickling.py
NoneSerializer()
Bases: Serializable
ElementId(element_id)
Bases: Serializable
Source code in pyrevitlib/pyrevit/revit/db/pickling.py
XYZ(xyz)
Bases: Serializable
Source code in pyrevitlib/pyrevit/revit/db/pickling.py
UV(uv)
Bases: Serializable
Source code in pyrevitlib/pyrevit/revit/db/pickling.py
Line(line)
Bases: Serializable
Source code in pyrevitlib/pyrevit/revit/db/pickling.py
Attributes
api_types = DB.Line
class-attribute
instance-attribute
start = XYZ(line.GetEndPoint(0))
instance-attribute
end = XYZ(line.GetEndPoint(1))
instance-attribute
Functions
CurveLoop(crv_loop)
Bases: Serializable
Source code in pyrevitlib/pyrevit/revit/db/pickling.py
Attributes
api_types = DB.CurveLoop
class-attribute
instance-attribute
curves = []
instance-attribute
Functions
ViewOrientation3D(view_orientation_3d)
Bases: Serializable
Source code in pyrevitlib/pyrevit/revit/db/pickling.py
Attributes
api_types = DB.ViewOrientation3D
class-attribute
instance-attribute
eye = XYZ(view_orientation_3d.EyePosition)
instance-attribute
forward = XYZ(view_orientation_3d.ForwardDirection)
instance-attribute
up = XYZ(view_orientation_3d.UpDirection)
instance-attribute
Functions
Transform(transform)
Bases: Serializable
Source code in pyrevitlib/pyrevit/revit/db/pickling.py
Attributes
api_types = DB.Transform
class-attribute
instance-attribute
basis_x = XYZ(transform.BasisX)
instance-attribute
basis_y = XYZ(transform.BasisY)
instance-attribute
basis_z = XYZ(transform.BasisZ)
instance-attribute
origin = XYZ(transform.Origin)
instance-attribute
scale = transform.Scale
instance-attribute
Functions
deserialize()
Source code in pyrevitlib/pyrevit/revit/db/pickling.py
BoundingBoxXYZ(bbox_xyz)
Bases: Serializable
Source code in pyrevitlib/pyrevit/revit/db/pickling.py
Attributes
api_types = DB.BoundingBoxXYZ
class-attribute
instance-attribute
min = XYZ(bbox_xyz.Min)
instance-attribute
max = XYZ(bbox_xyz.Max)
instance-attribute
transform = Transform(bbox_xyz.Transform)
instance-attribute
Functions
ViewType(enum_value)
Bases: EnumSerializable
Source code in pyrevitlib/pyrevit/revit/db/pickling.py
Grid(gridline)
Bases: Serializable