Returns the Story that the indicated Layer is associated with. Returns NULL if the Layer is not associated with a Story.
FUNCTION GetStoryOfLayer(layer : HANDLE): HANDLE;def vs.GetStoryOfLayer(layer):
return HANDLE| Name | Type | Description |
|---|---|---|
| layer | HANDLE | The Layer for which the associated Story is returned. |
VAR
story:HANDLE;
BEGIN
story:=GetStoryOfLayer(ActLayer);BEGIN
{ get current. }
storyH := GetStoryOfLayer( layerH );import vs
# Returns the Story that the indicated Layer is associated with.
layer = vs.ActLayer() # handle to the active design layer
objHandle = vs.GetStoryOfLayer(layer)
if objHandle is not None:
vs.Message('Created object handle: ' + str(objHandle))VS Functions: GetLayerForStory | GetNumStories | CreateStory | AssociateLayerWithStory
Availability: from Vectorworks 2012