How to get cylinder surface radius
1990chs
Member Posts: 44
**
I can get the face by the following codes. But in the face, no radius property.
face_id = 35 face = self.analysis.GeoData.GeoEntityById(face_id)
So how to get the cylinder surface radius in ACT ?
Tagged:
0
Best Answer
-
A direct Radius property on cylinders and circles was implemented in V23.2. Before this there is some undocumented ways.
0
Answers
-
It seems can be calculated by egde length
import units faceR = units.ConvertUnit(face.Edges[0].Length /(2*math.pi), 'm','mm')
But using this way, the calculated radius may be not precise due to float precision.
So is there the direction API to get the cylinder surface radius ?0