Returns information on the given story layer template
FUNCTION GetStoryLayerInfo(
index : INTEGER;
VAR name : STRING;
VAR scaleFactor : REAL;
VAR layerLevelType : STRING;
VAR eleveationOffset : REAL;
VAR defaultWallHeight : REAL): Boolean;def vs.GetStoryLayerInfo(index):
return (Boolean, name, scaleFactor, layerLevelType, eleveationOffset, defaultWallHeight)| Name | Type | Description |
|---|---|---|
| index | INTEGER | Index of story. |
| name | STRING | Returns with Name of story layer template |
| scaleFactor | REAL | Returns with Scale Factor of story layer template |
| layerLevelType | STRING | Returns with Level Type of story layer template |
| eleveationOffset | REAL | Returns with the Elevation Offset of story layer template |
| defaultWallHeight | REAL | Returns with the Default Wall Height of story layer template |
foundLevelType := FALSE;
foundLevel := 0;
storyTemplates := GetNumStoryLayerTemplates;
for storyIndex := 1 to storyTemplates DO BEGIN
OK := GetStoryLayerInfo( storyIndex, levelName, levelScale, levelType, levelElev, levelWallHeight );
if levelType = storyLevel THEN BEGIN
foundLevelType := TRUE;
foundLevel := storyIndex;
ENDimport vs
# Returns information on the given story layer template.
index = 1
ok, name, scaleFactor, layerLevelType, eleveationOffset, defaultWallHeight = vs.GetStoryLayerInfo(index)
vs.Message('GetStoryLayerInfo returned: ' + str((ok, name, scaleFactor, layerLevelType, eleveationOffset, defaultWallHeight)))Availability: from Vectorworks 2012