Returns whether the graphic attributes of the specified class will be used at object creation.
FUNCTION GetClUseGraphic(className : STRING): BOOLEAN;def vs.GetClUseGraphic(className):
return BOOLEAN| Name | Type | Description |
|---|---|---|
| className | STRING | Name of class. |
Returns whether the class is set to use its graphic attributes at object creation.
BEGIN
SetClass (pluginH, userClassName);
IF GetClUseGraphic (userClassName) THEN SetAttrsByClass (pluginH);
END;
IF GetClUseGraphic (UserClassName) <> TmpClassInfo.UseAtCreation THEN
SetClUseGraphic (UserClassName, TmpClassInfo.UseAtCreation);
{
SetClPenFore (UserClassName, DecimalToColorIndex(TmpClassInfo.PenColor));
SetClLW (UserClassName, TmpClassInfo.LW);
SetClLSN (UserClassName, TmpClassInfo.LS);
IF GetClUseGraphic (UserClassName) <> TmpClassInfo.UseAtCreation THEN
BEGIN
IF GetClUseGraphic (UserClassName) THEN
BEGIN
gClassList [classIndex].UseAtCreation := TRUE;
WriteToClassWS (classIndex, 7, 1, '');
ENDif vs.GetTypeN( vs.GetObject( userClassName ) ) == 94:
vs.SetClass( pluginH, userClassName )
if vs.GetClUseGraphic( userClassName ):
SetAttrsByClass( pluginH )Availability: from VectorWorks8.0