class RAGeometryCollection
Rocky PrePost Scripting wrapper for the collection of geometries in a project. The class represents the “Geometries” item on the project data tree. To get theRAGeometryCollection
from a RAStudy, use:
RAStudy.
Methods:
Clear()
Remove all items from the list.GetBoundingBox(time_step: ITimeStep | None, force_load: bool = False, force_orthogonal: bool = True)
Get the bounding box containing all geometries in this collection, at the given time.- Parameters:
- time_step – The time step for which the bounding box should be computed.
- force_load – If True, the bounding box will be computed by loading the geometries from the project. If False, the bounding box will only be returned if it was already computed.
- force_orthogonal – If True, the bounding box will be computed in an orthogonal coordinate system. If False, the bounding box will be computed in the original coordinate system of the geometries.
- Returns: The bounding box of all the geometries in the passed time step, or None if the box could not be computed.
GetGeometry(geometry_name)
Get a geometry from its name.- Parameters: geometry_name (unicode)