Deletes the nth Story Level Template from the current file. For example, if 3 is passed in, it will delete the 3rd Story Level Template in the file.
FUNCTION DeleteLevelTemplate(index : INTEGER): BOOLEAN;def vs.DeleteLevelTemplate(index):
return BOOLEAN| Name | Type | Description |
|---|---|---|
| index | INTEGER | The index of the Story Level Template to be deleted. |
VAR
success:BOOLEAN;
BEGIN
success := DeleteLevelTemplate(3);resultOK := DeleteLevelTemplate(1);import vs
# Deletes the nth Story Level Template from the current file.
index = 1
ok = vs.DeleteLevelTemplate(index)
if ok:
vs.Message('DeleteLevelTemplate succeeded')
else:
vs.Message('DeleteLevelTemplate failed')VS Functions: GetNumStoryTemplates | GetLevelTemplateName | SetLevelTemplateName | CreateLevelTemplate | GetLevelTemplateInfo
Availability: from Vectorworks 2015