Sometimes you will want to query an object's properties - that you found in a drawing. How do you do that?
Let us suppose we have a single part. Then we need to:
- Get the Drawing
- Get the part identifier
- Select it in the model
SinglePartDrawing singlePartDrawing = (SinglePartDrawing)drawing;
Tekla.Structures.Model.ModelObject modelObject = model.SelectModelObject(singlePartDrawing.PartIdentifier);
Tekla.Structures.Model.Part part = (Tekla.Structures.Model.Part)modelObject;