Ansys Products

Ansys Products

Discuss installation & licensing of our Ansys Teaching and Research products.

Using Mechanical Scripting to Select Named Selection & Hide Bodies in Group.

    • mark.hynd
      Subscriber

      Hi, I'm trying to use the Mechanical scripting to select a named selection & Hide Bodies in Group. I know I can use the .visible function but this seems to hide the faces and not the bodies from the geometry tab. What I want to use through scripting is shown below:

      Thank you.

    • mohan.urs
      Ansys Employee

      Hey 

      I don't see a direct function to do this. But you can use the snippet from this ansys help link
      https://ansyshelp.ansys.com/public///Views/Secured/corp/v242/en/act_script/act_script_examples_suppress_bodies.html

      Just replace the suppress function to Hidden and that should do the trick.

      Regards,
      Mohan Urs

Viewing 1 reply thread
  • You must be logged in to reply to this topic.