How can I use a remote point for my remote displacement?

Erik Kostson
Erik Kostson Member, Moderator, Employee Posts: 276
50 Answers 100 Comments Second Anniversary 25 Likes
✭✭✭✭
edited November 21 in Structures

Say we have a remote point defined, how can we using scripting assign that remote point to a remote displacement?

Comments

  • Erik Kostson
    Erik Kostson Member, Moderator, Employee Posts: 276
    50 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭
    edited November 21

    Below is one way:

    analysis=ExtAPI.DataModel.Project.Model.Analyses[0]
    
    remote_points_16=ExtAPI.DataModel.Project.Model.RemotePoints
    
    
    
    
    remote_point_30 = remote_points_16.AddRemotePoint()
    
    selection = ExtAPI.SelectionManager.CreateSelectionInfo(SelectionTypeEnum.GeometryEntities)
    selection.Ids = [28]
    remote_point_30.Location = selection
    remote_point_30.YCoordinate = Quantity(0.1, "m")
    
    
    remote_displacement_32 = analysis.AddRemoteDisplacement()
    remote_displacement_32.Location=remote_point_30
    remote_displacement_32.YComponent.Output.DiscreteValues=[Quantity(0.07, "m")]
    
This discussion has been closed.