Procedure SetClass assigns a class to the referenced object.
PROCEDURE SetClass(
h : HANDLE;
className : STRING);def vs.SetClass(h, className):
return None| Name | Type | Description |
|---|---|---|
| h | HANDLE | Handle to object. |
| className | STRING | Name of class to assign to object. |
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].
PROCEDURE Example;
BEGIN
SetClass(FSActLayer, 'None');
END;
RUN(Example);Availability: from All Versions