Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 838 Bytes

File metadata and controls

45 lines (34 loc) · 838 Bytes

Name2Index

Description

Function Name2Index returns the internal index number for the specified object.

FUNCTION Name2Index(name : STRING): LONGINT;
def vs.Name2Index(name):
    return LONGINT

Parameters

Name Type Description
name STRING Name of object.

Remarks

Returns the internal index for the object associated with the specified name.

(Joel Sciamma 2006.08.11): If the name does not exist, Name2Index returns zero.

Examples

VectorScript

NameIndex := Name2Index('objectName');

Python

See Also

VS Functions: SetSkylight | CreateSkylight | AddCavity

Version

Availability: from VectorWorks 8.0

Category