Jump to content
Sign in to follow this  
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 2

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

 

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.

×