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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

J-Link and getStartAngle and getEndAngle of an Arc

msi
1-Newbie
1-Newbie

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