Skip to content

Latest commit

 

History

History
57 lines (48 loc) · 1.1 KB

File metadata and controls

57 lines (48 loc) · 1.1 KB

GetArc

Description

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)

Parameters

Name Type Description
h HANDLE Handle to arc.
startAngleR REAL Returns start angle of arc.
arcAngleR REAL Returns sweep angle of arc.

Remarks

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).

Examples

==== VectorScript ====

PROCEDURE GetArcSetArcExample;
VAR
h :HANDLE;
startAng, sweepAng :REAL;
BEGIN
h := FSActLayer;
GetArc(h, startAng, sweepAng);
SetArc(h, startAng, sweepAng + 10);
END;
RUN(GetArcSetArcExample);

==== Python ====

def GetArcSetArcExample():
	h = vs.FSActLayer()
	if h != None:
		startAng, sweepAng = vs.GetArc(h)
		vs.SetArc(h, startAng, sweepAng + 10)
GetArcSetArcExample()

Version

Availability: from All Versions

Category

  • Objects - 2D