Vectorworks, Inc Employee Julian_Carr Posted March 1, 2022 Vectorworks, Inc Employee Share Posted March 1, 2022 I need to get a handle to a viewport, given an object within the viewport's annotation. I thought it would be easy. Using GetParent() on the object in the annotation, returns a handle to the annotation group (type = 11). Using GetParent() on that group returns a nill handle. I feel like I'm missing something? Quote Link to comment
Pat Stanford Posted March 1, 2022 Share Posted March 1, 2022 GetVPGroupParentObjects - Groups VectorWorks11.0 VectorScript Declaration: FUNCTION GetVPGroupParent ( groupHandle:HANDLE ) :HANDLE ; Python: def vs.GetVPGroupParent(groupHandle): return HANDLE Description: Gets the viewport that is the parent of specified viewport group. Parameters: groupHandlehandle to a viewport group (crop, annotation, etc) Result: Returns a handle to the viewport object (type 122) that is the parent of the specified group, or nil if unsuccessful. 1 Quote Link to comment
Vectorworks, Inc Employee Julian_Carr Posted March 1, 2022 Author Vectorworks, Inc Employee Share Posted March 1, 2022 Thanks Pat. I knew it must be there somewhere. 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.