Julian Carr Posted October 25, 2020 Share Posted October 25, 2020 The function GetObjectTags() returns a string array of all the tags attached to a class, layer or other object that supports tags (not to be confused with Data Tags). Once you have the string array, how can you extract each tag when you don't know the separator or quantity of strings? The separator is likely to be a line feed or carriage return, but could be different on each platform. One way would be to keep extracting strings s[1], s[2], s[3], etc until there was an error, but that seems crude. Any ideas? Quote Link to comment
JBenghiat Posted October 25, 2020 Share Posted October 25, 2020 https://developer.vectorworks.net/index.php/VS:GetArrayDimensions Quote Link to comment
Julian Carr Posted October 25, 2020 Author Share Posted October 25, 2020 Thanks Josh. This enabled me to discover that the array size is fixed at 20, which means you can only apply a maximum of 20 tags to an object. Quote Link to comment
Recommended Posts
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.