Jump to content
Peter Vandewalle


Recommended Posts

I have not used them, but look at:


GetStoryLayerTemplateName This will get you the name of the first story in the template. Combined with GetObject might get you a handle to the first story in the file.


If that does not do what you want then perhaps GetStory of Layer might get you something your can work with.


Then there is GetStoryAbove and GetStoryBelow to move through the list.

Share this post

Link to post

Thanks for the reply, Pat.


GetStoryLayerTemplateName returns the name to the first layer in the story template. That's not a handle to the story :-(

Edited by Peter Vandewalle

Share this post

Link to post

This does the trick:


import vs
hLayer = vs.FLayer()

hStory = vs.GetStoryOfLayer(hLayer)
while (hStory == ""):
    hLayer = vs.NextLayer(hLayer)
    hStory = vs.GetStoryOfLayer(hLayer)
sStory = vs.GetName(hStory)


Thanks for the help!

Edited by Peter Vandewalle

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114


© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

  • Create New...