Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.36 KB

File metadata and controls

46 lines (36 loc) · 1.36 KB

HAreaN

Description

Compute the area of a given object, it has the same function as HArea(), but the result in case of polyline is more accurate.

FUNCTION HAreaN(ObjectHandle : HANDLE): REAL;
def vs.HAreaN(ObjectHandle):
    return REAL

Parameters

Name Type Description
ObjectHandle HANDLE It is the object we want to calculate its area.

Examples

HAreaN(object);
perim := HPerimN (objH);
area  := HAreaN  (objH);
import vs

# Compute the area of a given object, it has the same function as HArea(),
# but the result in case of polyline is more accurate.
ObjectHandle = vs.FSActLayer()  # handle to the first selected object on the active layer

area = vs.HAreaN(ObjectHandle)
vs.Message('HAreaN returned: ' + str(area))

See also in tutorials: 22. Selected Objects → Worksheet Rows, 25. Geometric Property Extraction Table, 29. Cross-Layer Summary, 30. Publish Worksheet Image on a Sheet Layer

Version

Availability: from Vectorworks 2012 Deprecated: Vectorworks 2012 Deprecated Functions

Category