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