April 15, 2022 at 12:51 pmsirusblack07Subscriber
I would like to extract the mass property values using scripting in SpaceClaim for a specfic body selection.
Thanks,April 19, 2022 at 12:12 pmApril 19, 2022 at 2:03 pmErik KostsonAnsys EmployeeTo get volume of a part on the tree see this:
volume = GetRootPart().Bodies.Shape.Volume
Also the MeasureHelper functionality can help with that.
selection = BodySelection.Create(GetRootPart().Bodies)
volProps = MeasureHelper.MeasureVolume(selection)
To get mass with MeasureHelper one needs to assign density (properties) to the part in question.
Then one can use the MeasureHelper GetMassProperties method to get the information.
All this can be recorded via the UI and them the above calls will be visible.
Search the forum and the internet to see how to record SC scripts.
All the best
May 19, 2022 at 12:33 pmFirasBejarSubscriberThank you that solved my issue
RegardsViewing 3 reply threads
Ansys Innovation Space
- 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.
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.Trending discussions
- How to work with STL file?
- Rotate tool in ANSYS Design Modeler
- section plane
- Using Symmetry in DesignModeler and Expanding the Results
- ANSYS FLUENT – Operation would result in non manifold bodies
- drawing a geometry by importing a table of points
- material properties
- Coordinates orientation
- “contact pair has no element in it.” how to resolve this problem
- Parameters not imported into Workbench 18.2 from Solidworks/Inventor
Top Rated Tags
© 2023 Copyright ANSYS, Inc. All rights reserved.Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.