Preprocessing

Preprocessing

Topics related to geometry, meshing, and CAD.

how to create batch connections using a script

    • Tmo
      Subscriber

      I can easily set up a batch connection manually by switching mesh based connection to yes, inserting a connect control to the mesh tab and choose a named selection to be considered.

      My question is how to insert the connect control by script?

      The usual proceder would be:

      Model.Mesh.Add... but there is no AddConnect method or something to create the Connect tab.


      Thanks in advance

    • Aniket
      Forum Moderator
      Assuming you are using 2021R2, Please turn on recording and required APIs should be recorded.
      https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v212/en/act_script/mech_script_record.html
      Does that record required APIs?
      -Aniket
      How to access Ansys help links
      Guidelines for Posting on Ansys Learning Forum
    • Tmo
      Subscriber
      Dear Aniket,
      thank you for your answer. I am using 2021R1 and tried already to record the workflow but (among others) batch connections wasn┬┤t recorded.
      I enabled the batch connections via script (which was also recorded) by:
      Model.Mesh.MeshBasedConnection = True
      But if i create the "connect", it is not. So I thought there shoud be a method within the Mesh object to create the Connect, but also the automatic complection in the console didn┬┤t showed me something. I checked every suggestion that pops up when typing:
      Model.Mesh.
      Is there an update within recording when switching from 2021R1 to 2021 R2 ?
      best regards Timo
Viewing 2 reply threads
  • The topic ‘how to create batch connections using a script’ is closed to new replies.