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