Clears default story levels and repopulates the list from XML data files on disk.
FUNCTION ResetDefStoryLevels(bDeleteExisting : BOOLEAN): BOOLEAN;def vs.ResetDefStoryLevels(bDeleteExisting):
return BOOLEAN| Name | Type | Description |
|---|---|---|
| bDeleteExisting | BOOLEAN | Whether to delete existing default story levels before reloading the original defaults. |
{ _c_ 2018.10.22} This, as of VW 2019, uses the default content from the Application folder. And nothing else. Not even that in the User Folder. { _c_ 2022/10/10} In VW 2023 the default contents from workgroup folders or user folder are used before the default contents from the application folder.
resultOK := ResetDefStoryLevels(TRUE);import vs
# Clears default story levels and repopulates the list from XML data files on
# disk.
bDeleteExisting = True
ok = vs.ResetDefStoryLevels(bDeleteExisting)
if ok:
vs.Message('ResetDefStoryLevels succeeded')
else:
vs.Message('ResetDefStoryLevels failed')VS Functions: GetLevelTemplateName | SetLevelTemplateName | GetLevelTemplateInfo | GetNumLevelTemplates
Availability: from Vectorworks 2015