Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 832 Bytes

LengthN.md

File metadata and controls

43 lines (33 loc) · 832 Bytes

LengthN

Description

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

Parameters

Name Type Description
c CRITERIA Search criteria.

Examples

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))

Version

Availability: from Vectorworks 2012

Category