Tekla Open API

Detailed and full API reference helps you master Tekla Open API

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

ModelObjectSelectorGetObjectsByBoundingBox Method

Returns an enumerator of the given view's visible model objects that collide with the given geometrical bounding box. Note that this method uses approximate bounding boxes and thus is NOT EXACT, and may return objects not necessarily colliding with the given box but only being somewhere near to it.

Namespace:  Tekla.Structures.Model.UI
Assembly:  Tekla.Structures.Model (in Tekla.Structures.Model.dll) Version: 2018.1.0.0 (2018.1.0.0)
Syntax
public ModelObjectEnumerator GetObjectsByBoundingBox(
	Point MinPoint,
	Point MaxPoint,
	View View
)

Parameters

MinPoint
Type: Tekla.Structures.Geometry3dPoint
The minimum point of the bounding box.
MaxPoint
Type: Tekla.Structures.Geometry3dPoint
The maximum point of the bounding box.
View
Type: Tekla.Structures.Model.UIView
The view to get the objects from.

Return Value

Type: ModelObjectEnumerator
A model object enumerator of the visible model objects colliding with the given bounding box.
See Also