Tagged: scripting, spaceclaim
October 11, 2018 at 8:03 am
October 12, 2018 at 5:37 amNaresh PatreAnsys Employee
Below is a simple script to get the distance of local coordinate system w.r.t global origin:
part = GetRootPart()
#access local coordinate system
temp = part.CoordinateSystems
#access origin of coordinate system
a = temp.Frame.Origin
#note - the values of origin are returned in Meter units
#calculate distance from global origin
dist = math.sqrt((a*a)+(a*a)+(a*a))
October 12, 2018 at 5:58 amGuillaume ANFOSSISubscriber
Thanks Naresh !
- 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.
- Copy user settings to new release
- Electric Heating – Ansys AIM
- Dwg export error
- problem to access on the spaceclaim help
- Unexpected graphics error
- Discovery Getting Crashed
- BUG to correct is important
- Error messages running solver
- Critical error
- Discovery Live freezes with multiple load cases while topology optimization
© 2023 Copyright ANSYS, Inc. All rights reserved.