Community Tip - You can change your system assigned username to something more personal in your community settings. X
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();
}
}
}