1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] How do I reapply connections in ANSA software?

Discussão em 'Python' iniciado por Stack, Setembro 15, 2025.

  1. Stack

    Stack Membro Participativo

    I have two sub models that I want to assembly with GEBS. Im new in scripting. So I tried to make a script that reapplies my GEB connectors automatically.

    I have a main file with several INCLUDE files (subsystems, material cards etc), the pre created GEBS do not apply when loading the main file. I need to basically reapply again in order to make it work.

    I dont want to reapply in the main file and then save it again, risk for errors with several INCLUDEs...

    It says "Code generation completed" but do not apply my GEBs..

    from ansa import base from ansa import connections from ansa import constants

    def main(): cnctns = []

    cnctns.append(base.GetEntity(constants.LSDYNA, "GEB_BC", 100))
    cnctns.append(base.GetEntity(constants.LSDYNA, "GEB_BC", 101))
    cnctns.append(base.GetEntity(constants.LSDYNA, "GEB_BC", 102))
    cnctns.append(base.GetEntity(constants.LSDYNA, "GEB_BC", 103))

    connections.ReApplyConnections(cnctns)


    if name == 'main': main()

    Continue reading...

Compartilhe esta Página