Returns the length of an object. If more than one object matches the search criteria, the function will return the sum of all the matching object lengths.
FUNCTION LengthN(c : CRITERIA): REAL;def vs.LengthN(c):
return REAL| Name | Type | Description |
|---|---|---|
| c | CRITERIA | Search criteria. |
LengthValue:=LengthN(C='CrossMembers');
{returns the length of all objects in class 'CrossMembers'}resultVal := LengthN(c);import vs
# Returns the length of an object.
c = "(SEL=TRUE)" # selection criteria - all selected objects
distance = vs.LengthN(c)
vs.Message('LengthN returned: ' + str(distance))Availability: from Vectorworks 2012