Erik Kostson
Ansys Employee

Hi - actually this is not well exposed yet (and in the the act documentation it is hard to find things many times).

The good part is that the scoping method can be changed through:

pret = ExtAPI.DataModel.Project.Model.Analyses[0].AddBoltPretension()
pret.InternalObject.GeometryDefineBy = 19    # 0=geometry selection, 1=named selection, 19=beam connection, 21=pretension section
pret.InternalObject.BeamConnectionSelection = beam_ID


beam_ID one can get by many ways say one is:

beam = ExtAPI.DataModel.GetObjectsByName(‘My Beam’)
beam_ID = beam.ObjectId


All the best