Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 1.41 KB

File metadata and controls

53 lines (42 loc) · 1.41 KB

ResetDefStoryLevels

Description

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

Parameters

Name Type Description
bDeleteExisting BOOLEAN Whether to delete existing default story levels before reloading the original defaults.

Remarks

{ _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.

Examples

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')

See Also

VS Functions: GetLevelTemplateName | SetLevelTemplateName | GetLevelTemplateInfo | GetNumLevelTemplates

Version

Availability: from Vectorworks 2015

Category