Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.2 KB

File metadata and controls

46 lines (36 loc) · 1.2 KB

SetClass

Description

Procedure SetClass assigns a class to the referenced object.

PROCEDURE SetClass(
				h         : HANDLE;
				className : STRING);
def vs.SetClass(h, className):
    return None

Parameters

Name Type Description
h HANDLE Handle to object.
className STRING Name of class to assign to object.

Remarks

If you use SetClass to set the class of an object to the 'None' class, and the 'None' class has been renamed, there are two possible outcomes. If the user has renamed the 'None' class, and then created a new class named 'None' (bad idea, by the way), the class of the object will be set to 'None'. If there is not actually a class named 'None', the class of the object will be set to the original 'None' class, whatever it is named now.

Note that if a handle to group is used, all objects within the group will receive the same class assignment as the group [Julian].

Examples

VectorScript

PROCEDURE Example;
BEGIN
SetClass(FSActLayer, 'None');
END;
RUN(Example);

Python

Version

Availability: from All Versions

Category