How to define Quantity in Mechanical scripting when using CPython?
Rohith Patchigolla
Member, Moderator, Employee Posts: 178
✭✭✭✭
in Structures
The method used by default (Ironpython) doesn't seem to work. Eg: Quantity("10 [mm]")
Tagged:
0
Answers
-
The below should do the trick for defining Quantity in Cpython (which can be activated in Mechanical through Beta options). From v24R2, one would not need the below workaround.
Ansys.Core.Units.Quantity("10 [mm]")
1