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

Fantastic, Now it works!

I swared, I tried this ... 🙂

 

 

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.

×