Procedure GetArc returns the start and sweep angle of the referenced arc or round wall.
PROCEDURE GetArc(
h : HANDLE;
VAR startAngleR : REAL;
VAR arcAngleR : REAL);def vs.GetArc(h):
return (startAngleR, arcAngleR)| Name | Type | Description |
|---|---|---|
| h | HANDLE | Handle to arc. |
| startAngleR | REAL | Returns start angle of arc. |
| arcAngleR | REAL | Returns sweep angle of arc. |
On round walls, this call won't detect if the wall is reversed or not (should return the inverse of the angle, if the wall is reversed).
PROCEDURE GetArcSetArcExample;
VAR
h :HANDLE;
startAng, sweepAng :REAL;
BEGIN
h := FSActLayer;
GetArc(h, startAng, sweepAng);
SetArc(h, startAng, sweepAng + 10);
END;
RUN(GetArcSetArcExample);def GetArcSetArcExample():
h = vs.FSActLayer()
if h != None:
startAng, sweepAng = vs.GetArc(h)
vs.SetArc(h, startAng, sweepAng + 10)
GetArcSetArcExample()Availability: from All Versions