General Mechanical

General Mechanical

Ansys_ACT_Grouping

    • Stark
      Subscriber

      Hi..,


      I have tried the scripting to group three named selections in a single group. But I am able to create a group with only one named selection. Is there a script to create a group with two or more named  selections. If so kindly share..,


      Thanks,


      Ackshai

    • Aniket
      Ansys Employee

      This wouldn't come under standard support scope, but you can try something as below:


      objs = []


      for k in range(2): objs.append(Model.NamedSelections.Children[k])


      ExtAPI.DataModel.Tree.Group(objs)


      -Aniket


      How to access Ansys Online Help Document


      How to show full resolution image


      Guidelines on the Student Community


      How to use Google to search within Ansys Student Community


       


       


       

    • Stark
      Subscriber

      Hii Aniket,


       


      I tried using the commands you have given. But it shows the following error.


      'Tree' object has no attribute 'Group'


      Is there any other way ?


       


      Thanks,


      Ackshai

    • Aniket
      Ansys Employee

      Which version are you using?


       

    • Stark
      Subscriber

      Ansys 18.2

    • Aniket
      Ansys Employee

      I don't think this will work there you will need to upgrade to later version in order that to work.


       

Viewing 5 reply threads
  • You must be logged in to reply to this topic.