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| 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. |
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))VS Functions: CreateStory | AddStoryLevelN | RemoveStoryLevel | AddLevelFromTemplate | SetLevelElevationN
Availability: from Vectorworks 2025