Remote Displacement, PromoteToRemotePoint()

Options
sombodyfromtheworld
sombodyfromtheworld Member Posts: 29
First Comment Name Dropper
edited December 2023 in Structures

Hi
I want to change the 'Scoping Method' to 'Remote Point' in Remote Displacement and select my existing Remote Point.

I run this code:

RP = ExtAPI.DataModel.Project.Model.AddRemotePoint() # create remote point
RD = ExtAPI.DataModel.Project.Model.Analyses[0].AddRemoteDisplacement() # create remote displacement
RD.PromoteToRemotePoint() = RP # here I need to assing my existing remote point to the scoping method in remote displacement

If I run this function RD.PromoteToRemotePoint() it creates a brand new remote point that I don't need, instead I need to select my existing remote point

Tagged:

Best Answer

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 813
    First Comment First Anniversary Ansys Employee Solution Developer Community of Practice Member
    Answer ✓
    Options

    Hi @sombodyfromtheworld , PromoteToRemotePoint() works as expected, it promotes the remote boundary condition to a remote point. This is the behavior you would get in the GUI with a RMB click on the remote displacement / promote to remote point.

    In your case, as the RP already exists, you just have to modify the scoping in the remote displacement:
    RD.Location = RP

Answers