cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

J-Link and getStartAngle and getEndAngle of an Arc

msi
2-Explorer
2-Explorer

J-Link and getStartAngle and getEndAngle of an Arc

Hi, I am a beginner of Pro/E and J-Link.


I am trying to read arc properties of a feature in thefollowing function.


I could get the center point (x,y) and the radius without problem. However, the GetStartAngle and GetEndAngle don't return the correct values. The GetStartAngle always returns ZERO, and the GetEndAngle returns number, but not seems right.


Could someone please help me on this issue?


Thank you very much!


......


import com.ptc.pfc.pfcGeometry.*;


......


public void SomeFunction() throws jxthrowable


{


ModelItems mItems;


ModelItem t;



Arc aArc;



Model currModel = session.GetCurrentModel();


if (currModel != null)


// get the boundary



{




{


if (t instanceof Arc)


aArc = (Arc)t;


y = aArc.GetCenter().get(2);


r = aArc.GetRadius();


endAngle = aArc.GetEndAngle();



}


}



}

0 REPLIES 0
Announcements


Top Tags