Jump to content
Christian Eckel

return Handle

Recommended Posts

Hello everyone,

I'm quite new to Vectorskript and I'm a bit confused by the HANDLE variables.


What I'm serching is a funktion like for example GetViewporthandle("name of viewport as String) that returns the HANDLE of this viewport.

Same for other objects, Databases oder Tables.


Thank you!

Share this post

Link to post

You should be able to find a number of discussions on handles in the archive. 

Think of a handle as a unique identifier for an object that is valid for the run of the script. It is technically the memory address for the object, so not something that is persistent between sessions or that you would ever want to store.  

Share this post

Link to post

Pay attention to Josh's comments above.


The function you are looking for is GetObject('String Name') and returns a handle to the object.


For Viewports note that everything is stored in Groups (Annotation Group, Crop Group) inside the VP object.

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...