How to scope a joint to Joint probe?
Ayush Kumar
Member, Moderator, Employee Posts: 457
✭✭✭✭
Answers
-
joint_probe = solution.AddJointProbe() bc = joint_probe.PropertyByName("BoundaryConditionSelection") # Get the Joint Object Id needed bc.InternalValue = ExtAPI.DataModel.GetObjectsByType(Ansys.ACT.Automation.Mechanical.Connections.Joint)[2].ObjectId
4 -
A simpler solution now exists (tested in 2021R2):
connections = ExtAPI.DataModel.Project.Model.Connections joints = connections.GetChildren(DataModelObjectCategory.Joint,True) analysis = ExtAPI.DataModel.Project.Model.Analyses[0] for joint in joints: joint_probe = analysis.Solution.AddJointProbe() joint_probe.BoundaryConditionSelection = joint
0