Sets the elevation of the indicated Story. Returns whether the elevation was successfully set. If the elevaton change would cause Layers associated with the Story to overlap Layers associated with another Story, then the change in elevation will be prevented.
FUNCTION SetStoryElevationN(
story : HANDLE;
elevation : REAL): BOOLEAN;def vs.SetStoryElevationN(story, elevation):
return BOOLEAN| Name | Type | Description |
|---|---|---|
| story | HANDLE | The Story whose elevation is to be set. |
| elevation | REAL | The elevation to set the Story to. The elevation is in document units. |
resultOK := SetStoryElevationN(story, 1.0);import vs
# Sets the elevation of the indicated Story.
story = vs.FSActLayer() # handle to the first selected object on the active layer
elevation = 0.0
ok = vs.SetStoryElevationN(story, elevation)
if ok:
vs.Message('SetStoryElevationN succeeded')
else:
vs.Message('SetStoryElevationN failed')VS Functions: CreateStory | GetStoryElevationN
Availability: from Vectorworks 2025