Christian Eckel 0 Posted July 22, 2020 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! Quote Share this post Link to post
JBenghiat 356 Posted July 22, 2020 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. Quote Share this post Link to post
Pat Stanford 1,547 Posted July 22, 2020 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. Quote Share this post Link to post
Christian Eckel 0 Posted July 22, 2020 Thanks for this great and quick answers! I think I got it now Quote Share this post Link to post