You can get to an object by programmatically navigating the Mechanical tree.
The root node of the tree is ExtAPI.DataModel.Project. Each
tree node has children that you can access by calling the property
Children. This returns all of the child nodes in the
project.
You can also call nested properties, such as Model,
Geometry, Mesh, or
Analyses, to access all of the instances of a given
object or tree level.
Connection = ExtAPI.DataModel.Project.Model.Children[3]
Mesh = ExtAPI.DataModel.Project.Model.Mesh