Hi
I'm adding the remote force and assigning a named selection edge as a scoping method.
Then I need to set X an Y coordinates to be equal to Centroids X and Y of the same edge. At the moment they are located at the origin of the global coordinate system.
MESH = ExtAPI.DataModel.Project.Model.Mesh
ANALYSIS = ExtAPI.DataModel.Project.Model.Analyses[0]
select_NS_load = DataModel.GetObjectsByName('load')
add_force = ANALYSIS.AddRemoteForce() # force
add_force.Name = 'force'
add_force.Location = select_NS_load[0]
How to to return the coordinates of the named selection point/edge like below?
add_force.XCoordinate = CentroidX of the select_NS_load[0].Geometry
same for YCoordinate
