Jump to content
Patrick Winkler

Developer Tip: Using vs.Handle Attributes

Recommended Posts

Hello together,

 

when using the pydev debugger I noticed that vs.Handle provides some attributes that make scripting a bit more comfortable.

Hopefully more attributes will follow.

 

vs_Handle_Atriibutes.png.121a1da6c8ebdcb1332b9c3b4f7c11fb.png

 

def test():
    vs.CreateText('Hello!!')    
    h = vs.LNewObj() 
            
    print ('Type', h.type)
    print ('Parent', h.parent)
    print ('Parent Type', h.parent.type)
    
    

regards,

Patrick

 

  • Like 3

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.

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.


 

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