The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.
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();
}
}
}