Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 1.3 KB

File metadata and controls

50 lines (40 loc) · 1.3 KB

GetLevelElevationN

Description

Gets the elevation of a Story Level, relative to its containing Story. The elevation is in document units.

FUNCTION GetLevelElevationN(
				storyHandle : HANDLE;
				levelType   : STRING): REAL;
def vs.GetLevelElevationN(storyHandle, levelType):
    return REAL

Parameters

Name Type Description
storyHandle HANDLE The handle of the Story containing the Story Level we would like to know the elevation of.
levelType STRING The level type of the Story Level that we would like to know the elevation of.

Examples

resultVal := GetLevelElevationN(storyHandle, 'Example');
import vs

# Gets the elevation of a Story Level, relative to its containing Story.
storyHandle = vs.FSActLayer()  # handle to the first selected object on the active layer
levelType = 'Example'

value = vs.GetLevelElevationN(storyHandle, levelType)
vs.Message('GetLevelElevationN returned: ' + str(value))

See Also

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

Version

Availability: from Vectorworks 2025

Category