Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 961 Bytes

File metadata and controls

44 lines (35 loc) · 961 Bytes

Angle2Str

Description

Convert an angle value (in degrees) from a real number to a string using the current document formatting.

FUNCTION Angle2Str(value : REAL): STRING;
def vs.Angle2Str(value):
    return STRING

Parameters

Name Type Description
value REAL The angle value in degrees.

Examples

CASE kTextType+2*(j-1) OF
	kRealBA, kRealBA2, kRealFA, kRealFA2: BEGIN
		IF GetEditReal(dialogIDIMEdit, kTextType+2*(j-1), 2, choiceReal) THEN
			IF (selSize=1) | (choiceReal<>0) THEN
				boo:=SetLBItemInfo(dialogIDIM, kBrowser, i-1, j, Angle2Str(choiceReal), 0);
	END;
import vs

# Convert an angle value (in degrees) from a real number to a string using
# the current document formatting.
value = 1.0

text = vs.Angle2Str(value)
vs.Message('Angle2Str returned: ' + str(text))

Version

Availability: from Vectorworks 2014

Category