VS:ResetDefStoryLevels: Difference between revisions

From Vectorworks Developer
Jump to navigation Jump to search
No edit summary
No edit summary
Line 37: Line 37:
<remark>
<remark>
{ [[User:CBM-c-|_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.
{ [[User:CBM-c-|_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.
{ [[User:Ptr]] 2022/10/10} In VW 2023 the default from the user folder is used before the default contents from the application folder.
{ [[User:CBMPtr|Ptr]] 2022/10/10} In VW 2023 the default from the user folder is used before the default contents from the application folder.
</remark>
</remark>



Revision as of 08:22, 10 October 2022

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix

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

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

Return Value

Whether clearing the previous default story levels and loading the default list from disk succeeded.

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.

{ Ptr 2022/10/10} In VW 2023 the default from the user folder is used before the default contents from the application folder.

Version

Availability: from Vectorworks 2015

See Also

VS Functions:

VS:GetLevelTemplateName | VS:SetLevelTemplateName | VS:GetLevelTemplateInfo | VS:GetNumLevelTemplates

VS Functions:

[[VS:GetLevelTemplateName]] | [[VS:SetLevelTemplateName]] | [[VS:GetLevelTemplateInfo]]

| [[VS:GetNumLevelTemplates]]