The Ansys Innovation Space website recently experienced a database corruption issue. While service has been restored there appears to have been some data loss from November 13. We are still investigating and apologize for any issues our users may have as a result.
3D Design

3D Design

Topics related to Ansys Discovery and Ansys SpaceClaim.

Select Body Based Off Name in Tree in Space Claim

    • Robert Beggs
      Subscriber

      Hello,

      So far all the documentation I have found with space claim the only ways to select a body is by the position in the tree, or with smart variables. Is there any way to select a body based off it's name in the tree? After the body is selected I would like to activate/deactivate for physics and share topology.

    • Atharv Joshi
      Forum Moderator

      Hello Robert, 

      You can select the bodies based on their name using scripts. Please refer to the PCB example in the lesson 3 of this scripting course Scripting in Ansys Discovery | Ansys Innovation Courses for more information. Further you can use the record functionality and generate script for supressing the bodies for physics. 

      Let me know if you face any problems.

      Thanks and Regards
      Atharv

      • Robert Beggs
        Subscriber

        Hey Atharv, thanks for your help. I was able to figure out how to select bodies based off their names. I want to be able to share only certain geometry at the specified tolerance that results in no multiple shared edges (the yellow color). Is there any way to automate the process of deselecting those faces for sharing?

        • Atharv Joshi
          Forum Moderator

          Hi Robert, 

          Thanks for the update.
          Let me check share topology part at my end and get back to you. 

          Thanks and Regards
          Atharv

        • Atharv Joshi
          Forum Moderator

          Hi Robert, 

          There isn't a direct option to automate deselecting faces. You can use tolerance to identify the specific faces with specific tolerance range but for deselecting you need to write a logic which will deselect those faces. 

          options = ShareTopologyOptions()
          options.Tolerance = MM(0.02)
          result = ShareTopology.FindAndFix(options)

          You can try recording steps for deselecting, sharing topology manually and then check if you can write logic for deselecting the faces.

          Thanks and Regards
          Atharv

    • Charudatta Bandgar
      Forum Moderator

      Hello Robert,

      You can use the find option to search for a specific component in the assembly. See if this help.

      Let me know if this does not solve your specific case.

      Regards.

       

Viewing 2 reply threads
  • The topic ‘Select Body Based Off Name in Tree in Space Claim’ is closed to new replies.