How to make same unit for Volume type "Double" and "Quantity" ?
Happy Kumar
Member Posts: 15
**
in Structures
Below code will give me System double means in m^3 example : 3.65249415887984E-06
sm=ExtAPI.SelectionManager
b=sm.CurrentSelection.Ids
c=ExtAPI.DataModel.GeoData.GeoEntityById(body)
d=c.Volume.GetType()
d
Below code will give me double means example : '0 [mm mm mm]'
geometry = ExtAPI.DataModel.Project.Model.Geometry
listPart = geometry.GetChildren(DataModelObjectCategory.Part,True)
b=part.Volume.GetType()
b
0
Answers
-
Hi
This is a very good discussion that explains what you are seeing.
https://discuss.ansys.com/discussion/2283/volume-of-a-body-in-mechanical
Hope it helps
0 -
You might also be interested in this post: https://discuss.ansys.com/discussion/comment/3320#Comment_3320?utm_source=community-search&utm_medium=organic-search&utm_term=mechanical+units
0