Tagged: scripting, spaceclaim
-
-
March 31, 2021 at 9:36 am
Guillaume ANFOSSI
SubscriberHello,
Do you know how to identify by script if a selected body is at the root or if the body belongs to a component ?
Thanks,
-
March 31, 2021 at 11:53 am
Subashni Ravichandran
Ansys EmployeeHello GUICAD
Let me check with my team on this and get back to you.
-
April 7, 2021 at 12:16 pm
Subashni Ravichandran
Ansys EmployeeHello GUICAD
Have you tried recording the script to find out?
-
April 7, 2021 at 12:26 pm
Guillaume ANFOSSI
SubscriberHello Subashni,
Here is what I would like to do:
-the user makes a selection of a face. (ok)
-if the body to which the face belongs is at the root then do "operation 1"
-if the body to which the face belongs is in a component then do "operation 2"So the goal is according to the selection made by the user, to know if the body is at the root or placed in a component.
Thanks
-
April 8, 2021 at 12:20 pm
Subashni Ravichandran
Ansys EmployeeHello GUICAD
As I'm not an expert with scripting, I checked with my Team on this and here is a sample script that identifies bodies based on location either root or components and then moves them to root and reorganize with the volume of the body. (check image)
You may take ideas from this and maybe develop a script to identify the body based on face selection.
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
-
3694
-
2558
-
1765
-
1234
-
590
© 2023 Copyright ANSYS, Inc. All rights reserved.