Procedure IsTextStyleByClass returns whether the class text style is used for the referenced object. [Dieter@DWorks]: This doesn't seem to be working on polygons. I assume this only works on text objects?
FUNCTION IsTextStyleByClass(objectId : HANDLE): BOOLEAN;def vs.IsTextStyleByClass(objectId):
return BOOLEAN| Name | Type | Description |
|---|---|---|
| objectId | HANDLE | handle to object |
resultOK := IsTextStyleByClass(objectId);import vs
# Procedure IsTextStyleByClass returns whether the class text style is used
# for the referenced object.
objectId = vs.FSActLayer() # handle to the first selected object on the active layer
ok = vs.IsTextStyleByClass(objectId)
if ok:
vs.Message('IsTextStyleByClass succeeded')
else:
vs.Message('IsTextStyleByClass failed')VS Functions: SetTextStyleRef | GetTextStyleRef | SetTextStyleRefN | GetTextStyleRefN | SetTextStyleByClass | SetTextStyleByClassN | IsTextStyleByClass | IsTextStyleByClassN
Availability: from Vectorworks 2015