API Reference

Detailed and full API reference helps you master Tekla development

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

ModelObjectSelector Methods

The ModelObjectSelector type exposes the following members.

Methods
  NameDescription
Public methodGetAllObjects
Returns an enumerator of all the model objects in the current model.
Public methodCode exampleGetAllObjectsWithType(Type)
Returns an enumerator of all the model objects in the current model with the given base type.
Public methodGetAllObjectsWithType(ModelObjectModelObjectEnum)
Returns an enumerator of all the model objects in the current model with the given type.
Public methodGetEnumerator
Returns an enumerator of all the model objects in the current model.
Public methodGetFilteredObjectsWithType
Returns an enumerator of the model objects in the current model with the given type and selected by the filter.
Public methodGetObjectsByBoundingBox
Returns an enumerator of the model objects in the current model colliding 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.
Public methodGetObjectsByFilter
Returns an enumerator of the model objects in the current model selected by the given selection filter definition.
Public methodGetObjectsByFilterName
Returns an enumerator of the model objects in the current model selected by the given selection filter.
Top
See Also