How to Programmatically Select Objects in the Model (Tekla Open API)

Return a selection of objects back to the user.
We can easily select objects as an input – objects which was can iterate over and apply a series of operations or checks out. But how do we return a selection of objects back to the user?

Background: What are we trying to do?

We have programmatically identified some model objects that we want to select in the model – to attract attention to the user and to allow her to easily identify all such objects. In this particular case we will be creating some beams. And then, we will select those beams in the model. Here is a code snippet to get you started:

 


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *