Pick First Selection in the Tekla API (Tekla Open API)

The AutoCAD .net/ObjectARX APIs have a handy feature called the pick first selection.

What does the pick first selection do?

Prior to running a command, the pick first selection allows the user to select some objects in the model - and the plug-in you are running is then able to use these objects that have been selected.

How can the same functionality be obtained in the Tekla API?

The question is, how to obtain a selection of objects using the Tekla API – prior to running your plug-in?

It’s really simple (if you already know how):

And that’s all it is! Hope this helps.

Written on July 18, 2017