Get Tree Object of a Body Corresponding to a Selected Body
Goal: Get the tree object corresponding to a selected
body in the graphics window.
Code:
myIds = ExtAPI.SelectionManager.CurrentSelection.Ids
geoBody = DataModel.GeoData.GeoEntityById(myIds[0])
treeBody = Model.Geometry.GetBody(geoBody)