How to change Length Units in Geometry object of DataModel Tree?
Options
![Ayush Kumar](https://us.v-cdn.net/6037473/uploads/userpics/RGJ3E8O4WFAG/n98CYBYJ7H6ZS.jpg)
Ayush Kumar
Member, Moderator, Employee Posts: 419
![Ansys Employee](https://us.v-cdn.net/6037473/uploads/badges/RVRDV39KPJ91.png)
![Solution Developer Community of Practice Member](https://us.v-cdn.net/6037473/uploads/badges/274G8C56SBE6.png)
Answers
-
Manually set the unit first, retrieve the internal value of the property
CADUnits
and then use it in the Automation script. Not a very good solution, if anyone has better ideas please share:For example -
mm
:ExtAPI.DataModel.Project.Model.Geometry.PropertyByName('CADUnits').InternalValue=2
2