In previous posts I have told you how to:
- programatically select objects in Tekla. i.e. you have a set of parts in memory, and you want them selected.
In this post, we want to do the reverse:
- The user has already selected something, and we want to capture it.
ModelObjectSelector selector = new ModelObjectSelector();
ModelObjectEnumerator enumerator = selector.GetSelectedObjects();
foreach (ModelObject model in enumerator)
{
Console.WriteLine("iterate through what has been selected");
}