Sample Code Revit Batch Processor 1.1.11 documentation
Bases: BoundingBoxBase
A 2D bounding box class.
point1 (Point2
, optional) – A 3D point describing a corner of bounding box, defaults to None
point2 (Point2
, optional) – A 3D point describing diagonal opposite corner of bounding box, defaults to None
j ([str], optional) – A json formatted string, representing an instance of this class, defaults to None
ValueError – “Either two Point2 instances or a JSON string with point data needs to be provided.”
TypeError – “point1 expected Point2 instance. Got type instead.
TypeError – “point2 expected Point2 instance. Got type instead.”
Update the size of the bounding box by points
Check if the bounding box contains a given point.
The length of the bounding box in X direction.
float: Length in X
The length of the bounding box in Y direction.
float: Length in Y
The length ration of the bounding box edges by dividing length in X by length in Y direction
ValueError: Division by 0 if length of Y is 0
float: Edge ration
Bases: BoundingBoxBase
A 3D bounding box class.
point1 (Point3
, optional) – A 3D point describing a corner of bounding box, defaults to None
point2 (Point3
, optional) – A 3D point describing diagonal opposite corner of bounding box, defaults to None
j ([str], optional) – A json formatted string, representing an instance of this class, defaults to None
ValueError – “Either two Point2 instances or a JSON string with point data needs to be provided.”
TypeError – “point1 expected Point3 instance. Got type instead.”
TypeError – “point2 expected Point3 instance. Got type instead.”
Read-only property for minimum z value.
Read-only property for maximum z value.
Update the size of the bounding box by points
The length of the bounding box in X direction.
float: Length in X
The length of the bounding box in Y direction.
float: Length in Y
The length of the bounding box in Z direction.
float: Length in Z
Bases: Base
Base implementation of a bounding box.
TypeError – “Input must be a JSON string or a dictionary.”
ValueError – “JSON must contain ‘point1’ and ‘point2’ keys.”
Read-only property to access the parsed JSON data.
Read-only property for minimum x value.
Read-only property for maximum x value.
Read-only property for minimum y value.
Read-only property for maximum y value.
Bases: object
Contains property names used in geometry classes
Supports matrices from 1 x 1 up to 4 x 4.
Bases: Base
A basic matrix class. Matrices up to size of 4x4 are supported only.
rows (int, optional) – Number of rows, defaults to None
cols (int, optional) – Number of columns, defaults to None
elements ([[float]], optional) – The matrix, defaults to None
j (str or dic, optional) – A json formatted settings string or dictionary, defaults to None
TypeError – Thrown if row is not an integer and no json is provided
TypeError – Thrown if cols is not an integer and no json is provided
ValueError – Thrown if matrix size exceeds 4 x 4 or is rows or columns is less than 1
ValueError – Thrown if elements provided do not match rows and cols count
Read-only property for the number of rows.
Read-only property for the number of columns.
Read-only property for the matrix data.
Bases: VectorBase
A 2D vector class
x (double) – Delta x
y (double) – Delta y
Bases: VectorBase
A 3D vector class
x (double) – Delta x
y (double) – Delta y
z (double) – Delta z