Cylinder height?

Cylinder height?

Anonymous
適用対象外
426件の閲覧回数
2件の返信
メッセージ1/3

Cylinder height?

Anonymous
適用対象外

How to get the height of a cylinder using API? If it is a full cylinder I can get the height by using the area from API. But i am having cut cylinders(cut along the height) so what can be the way to get the height/depth of the cylinder? .

0 件のいいね
427件の閲覧回数
2件の返信
返信 (2)
メッセージ2/3

Anonymous
適用対象外

 

One way to do this is to obtain the two ends of the cylinder as either Edge or EdgeProxy objects and then cast those to 'Circle' types. Now you can use the 'Center' property of the 'Circle' objects to get the distance. 
c# example with units conversion:
           
    double depth = m_Application.UnitsOfMeasure.ConvertUnits(circle.Center.DistanceTo(circle2.Center), "cm", "in");
    
Bob Summe
   
Software Developer   
75 Gilcreast Road Suite 311
Londonderry, NH 03053

 

0 件のいいね
メッセージ3/3

Anonymous
適用対象外

Thanks buddy

I think it will work

0 件のいいね