Skip to content

Latest commit

 

History

History
53 lines (44 loc) · 1.04 KB

File metadata and controls

53 lines (44 loc) · 1.04 KB

GetSymRot

Description

Function GetSymRot returns the rotation angle (in degrees) of the referenced symbol or plug-in object.

FUNCTION GetSymRot(symHd : HANDLE): REAL;
def vs.GetSymRot(symHd):
    return REAL

Parameters

Name Type Description
symHd HANDLE Handle to symbol.

Examples

BEGIN
	SysBeep;
	createErrorMessage2 (errorText, x0, y0);
	HRotate (LNewObj, x0, y0, -GetSymRot (pluginH));
	getData := FALSE;
END	{of NOT validPathAndFile}

BEGIN
	getData := FALSE;
	createErrorMessage2( errorText, kErrMsgTextSize, GetFontID( kErrMsgTextFont ), kErrMsgWidth, gX0, gY0, kBeep );
	HRotate( LNewObj, gX0, gY0, -GetSymRot( gPluginH ) );
END

BEGIN
	SysBeep;
	createErrorMessage2 (errorText, x0, y0);
	HRotate (LNewObj, x0, y0, -GetSymRot (pluginH));
	getData := FALSE;
END
if vs.P__Custom_Rot:
	pioRotation = vs.P__Custom_Rot_Value
else:
	pioRotation = vs.GetSymRot( gObjHandle )

Version

Availability: from All Versions

Category