Jump to content
Developer Wiki and Function Reference Links ×

Get Handle to Viewport from Object in Annotation Group


Recommended Posts

  • Vectorworks, Inc Employee

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?

Link to comment

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.

  • Like 1
Link to comment

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.

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

×
×
  • Create New...