General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

Scripting with AddBeam()

    • NickFL
      Subscriber

      I do not see a Python scripting forum, so hopefully it is OK to ask here.

      I was wondering why there is no AddBeam attribute under the ConnectionGroup. I have no problem using xxx.Connections.AddBeam(), but when I try to use AddBeam with my predefined connection group, it is not allowed. From predefined connection group I can AddJoints, AddSpotWeld or AddContactRegion without trouble.

      Is there some fundamental reason why AddBeam is not allowed? This is definately not a big issue, but I am just trying to improve my understanding. Thank you in advance.

    • Erik Kostson
      Ansys Employee

       

       

       

      Hi

      See the ANSYS ACT 2023 R1
      API and XML Online Reference Guide.

      More specfic:

      Under the ConnectionGroup Class there is no method called Addbeam().

      On the other hand, and under the Connections class as you found out, that is where the Addbeam method exists.

      So this is how the API works and how we need to use it (so Addbeam method is under the Connections class and not Connection group). The API is basically just following how we define connections and connection groups in mechanical (and what can be under a connection group, e.g., only contacts, joints, spotwelds). See the help manual for this (search for connection groups and Connection Features and Operations)

       

       

      All the best

      Erik

       

       

       

       

Viewing 1 reply thread
  • The topic ‘Scripting with AddBeam()’ is closed to new replies.