Creates a new text style resource with the specified name. A handle to the new resource is returned. Once the resource is created the attributes of the text style resource should be set appropriately.
FUNCTION CreateTextStyleRes(name : STRING): HANDLE;def vs.CreateTextStyleRes(name):
return HANDLE| Name | Type | Description |
|---|---|---|
| name | STRING | The name for the new text style. |
resultH := CreateTextStyleRes('Example');import vs
# Creates a new text style resource with the specified name.
name = 'Example'
objHandle = vs.CreateTextStyleRes(name)
if objHandle is not None:
vs.Message('Created object handle: ' + str(objHandle))Availability: from Vectorworks 2014