VS:ObjArea

From Vectorworks Developer
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix

Description

Function ObjArea returns the area of the referenced object.

FUNCTION ObjArea(
h :HANDLE) : REAL;
def vs.ObjArea(h):
    return REAL

Parameters

h HANDLE Handle to object.

Remarks

(Orso, 2011 Jan. 27): ObjArea is affected by the application preference "2D Conversion Resolution" (PrefInt 55): the function will output faulty values on polylines with curved vertexes, if this preference is set to anything but "Very high" (512). It is advisable to set this preferences to 512 before using ObjArea and restore the user value at end of script. (tested VW 2010 and 2011).

Version

Availability: from VectorWorks 12.5