Using ACT, how can I create a spring between two remote points?
Pernelle Marone-Hitz
Member, Moderator, Employee Posts: 871
✭✭✭✭
Answers
-
Let's assume two remote points have already been created through:
MyRemotePoint1=ExtAPI.DataModel.Project.Model.AddRemotePoint() MyRemotePoint2=ExtAPI.DataModel.Project.Model.AddRemotePoint()
and that appropriate scoping a position of the remote points is defined.
A spring can be inserted through:
Connections=ExtAPI.DataModel.Project.Model.Connections NewSpring=Connections.AddSpring()
The stiffness can be defined by:
NewSpring.LongitudinalStiffness=Quantity('10 [N mm^-1]')
The scoping method can be changed with the following commands:
NewSpring.InternalObject.MobileGeometryDefineBy = GeometryDefineByType.RemotePoint NewSpring.InternalObject.ReferenceGeometryDefineBy = GeometryDefineByType.RemotePoint
The appropriate remote points can be scoped through:
NewSpring.InternalObject.MobileRemotePointSelection = MyRemotePoint1.Id NewSpring.InternalObject.ReferenceRemotePointSelection = MyRemotePoint2.Id
7