Jump to content

New Functions 2016/2017: vs.GetProjectUserNames(), vs.GetResourceTags()

Recommended Posts

Greetings all,

Functions mentioned in title [vs.GetProjectUserNames(), vs.GetResourceTags()]  return NoneTypes, not sure whether this is broken.


From the DevWiki: http://developer.vectorworks.net/index.php/VS:GetProjectUserNames

Description : Get a list of userids that are part of the current project.

def vs.GetProjectUserNames():
    return (BOOLEAN, userArray)

userArray | ARRAY : Array of userids as strings

However, upon running this in a Project File, I get a Boolean of True, but a NoneType for userArray. Not sure how to iterate through list of results.


This is the same with vs.GetResourceTags():

From the DevWiki: 

Description : Gets the tags attached to the specified resource.

def vs.GetResourceTags(handle):
    return tags

tags | ARRAY : Array of tags


Running this on Symbol Definition handle, with tags attached yields a NoneType as well. The Symbol Definition has got tag(s), and running vs.GetNumResourceTags(some_handle) returns the correct number of tags attached to this resource.


Any insight would help, @orso b. schmid/ @Pat Stanford


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


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.