DelName Object Names 

Declaration:

PROCEDURE   DelName
( name:STRING ) ;

Description:

Procedure DelName deletes an object name from a VectorWorks document. The associated object is not affected by the name deletion.

Parameters:

name Object name to be deleted.

Example:





  GetName Object Names 

Declaration:

FUNCTION   GetName
( h:HANDLE ) :STRING ;

Description:

Function GetName returns the object name of the referenced object. The function returns None if the object has no object name.

A handle to layer may not passed to this routine; to obtain a layer name, use GetLName.

Parameters:

h Handle to object.

Example:

ObjectName:=GetName(HandleToObject);



  GetObject Object Names 

Declaration:

FUNCTION   GetObject
( name:STRING ) :HANDLE ;

Description:

Function GetObject returns a handle to a named object. If the name does not exist, NIL is returned.

Parameters:

name Object name.



  Index2Name Object Names 

Declaration:

FUNCTION   Index2Name
( index:INTEGER ) :STRING ;

Description:

Function Index2Name returns the name of the object with specified index number.

Parameters:

index Object index number.



  Name2Index Object Names 

Declaration:

FUNCTION   Name2Index
( name:STRING ) :INTEGER ;

Description:

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

Parameters:

name Name of object.



  NameList Object Names 

Declaration:

FUNCTION   NameList
( index:INTEGER ) :STRING ;

Description:

Function NameList returns the specified object name from the object name list.

Parameters:

index Name list position index ( ina arange of 1 - n).

Example:





  NameNum Object Names 

Declaration:

FUNCTION   NameNum
:INTEGER ;

Description:

Function NameNum returns the number of different object names in the active VectorWorks document.




  NameObject Object Names 

Declaration:

PROCEDURE   NameObject
( objName:STRING ) ;

Description:

Procedure NameObject assigns an object name to the next object created.

Parameters:

objName Name to be assigned to object.

Example:

NameObject('Part 5257');
Rect(0,2,2,0);



  SetName Object Names 

Declaration:

PROCEDURE   SetName
(   h :HANDLE;
    name :STRING
) ;

Description:

Procedure SetName assigns a name to the referenced object.

Parameters:

h Handle to object.
name Name to be assigned to object.