Skip to content

Latest commit

 

History

History
52 lines (41 loc) · 1.48 KB

File metadata and controls

52 lines (41 loc) · 1.48 KB

AddStoryLevelN

Description

Adds a new Story Layer to the Story pointed to by 'storyHandle'. There must not be another story level in this story that matches 'levelType' or 'elevation', or the function will fail. If the layer 'layerName' already exists, it will be associated with the new Story Level.

FUNCTION AddStoryLevelN(
				storyHandle : HANDLE;
				levelType   : STRING;
				elevation   : REAL;
				layerName   : STRING): BOOLEAN;
def vs.AddStoryLevelN(storyHandle, levelType, elevation, layerName):
    return BOOLEAN

Parameters

Name Type Description
storyHandle HANDLE The handle of the story that the new level should be added to.
levelType STRING The level type of the new Story Level. This cannot be blank.
elevation REAL The elevation of the new Story Level in the story. The elevation is in document units.
layerName STRING The name of the layer to associate with the new Story Level. This is optional.

Examples

VAR

storyHandle : HANDLE
success:BOOLEAN

BEGIN

storyHandle := CreateStory('Floor 1', '-1');
success := AddStoryLevelN(storyHandle, 'Finish Floor', 0, 'Floor');

See Also

VS Functions: CreateStory | AddLevelFromTemplate | RemoveStoryLevel | SetLevelElevationN | GetLevelElevationN

Version

Availability: from Vectorworks 2025

Category