.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
DescriptionSee ObjArea for a replacement function.
Function HArea returns the area of the referenced object.
h :HANDLE) : REAL;
def vs.HArea(h): return REAL
h HANDLE Handle to object.
Remarks(Orso, 2011 Jan. 27): HArea is affected by the application preference "2D Conversion Resolution" (PrefInt 55): 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 HArea and restore the user value at end of script. (tested VW 2010 and 2011).
(Orso, 2010 Apr. 13): Replaced by ObjArea. HArea still works, but will always use the current settings for length primary units, while ObjArea will use the settings for Area units, which might be different. See preference flags 176-179 in the SDK.
VersionHArea is obsolete as of VectorWorks12.5
Availability: from All Versions