Jump to content

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


twk

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

 

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