Skip to content

Latest commit

 

History

History
61 lines (50 loc) · 1.49 KB

File metadata and controls

61 lines (50 loc) · 1.49 KB

SetClassN

Description

Procedure SetClassN assigns a class to the referenced object.
If the third parameter 'descIntoGroup' is set to true all objects within the group will receive the same class assignment as the group,
otherwise only the group itself will be affected.

PROCEDURE SetClassN(
				h             : HANDLE;
				className     : STRING;
				descIntoGroup : BOOLEAN);
def vs.SetClassN(h, className, descIntoGroup):
    return None

Parameters

Name Type Description
h HANDLE Handle to object.
className STRING Name of class to assign to object.
descIntoGroup BOOLEAN Assign the same class to all objects inside the group.

Examples

{ select an object on drawing }
SetClassN(FSActLayer, 'Class Name-1', FALSE);
			SetClUseTexture (gClassSpeakers,FALSE);
			SetClUseGraphic (gClassSpeakers,FALSE);
		END;
	wrkClsSpeakers := Concat(gClassSpeakers);
	SetClassN(hSymbolPartsGroup,gClassSpeakers,FALSE);
	IF ((gClassSpeakers<>'')&(gClassSpeakers<>' ')) THEN NameClass (Concat(ActClass));
END;
import vs

# Procedure SetClassN assigns a class to the referenced object.
h = vs.FSActLayer()  # handle to the first selected object on the active layer
className = 'None'
descIntoGroup = True

vs.SetClassN(h, className, descIntoGroup)

See Also

VS Functions: SetClass

Version

Availability: from Vectorworks 2018

Category