Jump to content
DomC

vs.SetResourceTags(handle, tags)

Recommended Posts

Hi

Anyone has experience with this function?

 

sym_list, numItems = vs.BuildResourceList(16, 0, 0)

for sym in range(numItems):
	s = vs.GetResourceFromList(sym_list, sym+1)
	name = vs.GetName(s)
	

	#vs.SetResourceTags(s, 'Tag1','Tag2')
	ot = vs.GetResourceTags(s)
	vs.AlrtDialog(str(ot))
	

 

If I tag manually with Tag1 and Tag2 the vsGetResourceTags(s) returns ,('Tag1','Tag2'). I am not able to find the array format to tag the symbol Any Ideas?

Maybe I am to stupid. I think somewhere I have to give the index of the Tag or something like this.

 

Thanks

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