Returns the total 3D volume of the specified component, minus any holes in the 3D object.
FUNCTION ComponentVolume(
c : CRITERIA;
index : INTEGER): REAL;def vs.ComponentVolume(c, index):
return REAL| Name | Type | Description |
|---|---|---|
| c | CRITERIA | The search criteria string. |
| index | INTEGER | The index of the component. |
resultVal := ComponentVolume(c, 1);import vs
# Returns the total 3D volume of the specified component, minus any holes in
# the 3D object.
c = "(SEL=TRUE)" # selection criteria - all selected objects
index = 1
vol = vs.ComponentVolume(c, index)
vs.Message('ComponentVolume returned: ' + str(vol))Availability: from Vectorworks 2011