Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 924 Bytes

VolumeN.md

File metadata and controls

44 lines (34 loc) · 924 Bytes

VolumeN

Description

Returns the volume of the items matching the specified criteria. If more than one object matches the search criteria, the sum of all the volumes of the matching objects will be returned.

VolumeN will only return volumes on objects which support the solids modelling functions.

FUNCTION VolumeN(c : CRITERIA): REAL;
def vs.VolumeN(c):
    return REAL

Parameters

Name Type Description
c CRITERIA Search criteria.

Examples

totalVol:=VolumeN((C='Empty Space'));
resultVal := VolumeN(c);
import vs

# Returns the volume of the items matching the specified criteria.
c = "(SEL=TRUE)"  # selection criteria - all selected objects

vol = vs.VolumeN(c)
vs.Message('VolumeN returned: ' + str(vol))

Version

Availability: from Vectorworks 2012

Category