TAGGED: macros-scripting, spaceclaim
-
-
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 pmAniketForum ModeratorWhich of the mass properties are you looking for?
-Aniket
How to access Ansys help links
Guidelines for Posting on Ansys Learning Forum
April 19, 2022 at 2:03 pmErik KostsonAnsys EmployeeTo get volume of a part on the tree see this:
volume = GetRootPart().Bodies[0].Shape.Volume
Also the MeasureHelper functionality can help with that.
selection = BodySelection.Create(GetRootPart().Bodies[0])
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
Erik
May 19, 2022 at 12:33 pmFirasBejarSubscriberThank you that solved my issue
RegardsViewing 3 reply threads- The topic ‘How to extract volume properties using scripting in SpaceClaim?’ is closed to new replies.
Ansys Innovation SpaceTrending discussions- GPU List for Ansys Discovery Explore Mode
- Data Center Simulation
- Automating Name Selections in SpaceClaim for Large Grid Arrays
- Unable to attach geometry 2024 R2
- Getting Mesh Faces With Specified Normal Via SpaceClaim Scripting (V241)
- How to convert xyz coordinates to 3d model(propeller).
- How to provide blade angles in bladegen.
- DXF file loaded incorrectly
- Crash by using Script Editor
- plugin error failed to import assembly from spaceclaim
Top Contributors-
1131
-
468
-
455
-
225
-
201
Top Rated Tags© 2024 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.
-