Jump to content

Recommended Posts

Hello all, hopefully somebody can help me out. This is the line of code we have for the 2023 software which works great. "tag_options = gom.app.project.all_element_tags" however trying to run the script on 2022 software gives us this issue attached. Cant seem to find the variable for project tags in the 2022 software, does anybody know the correct variable for tags in the 2022 software. Any help is appreciated, thanks 👍

image.png

Edited
Link to comment
https://qualityforum.zeiss.com/topic/3953-different-variables-from-2022-to-2023/
Share on other sites

Hello George,

the tag 'all_element_tokens' has been added for SW2023 and does not exist in SW2022.

I don't know whether there is a convenient way to get all tags in SW2022 and prior versions, but for every element there is a token 'tags' which should give you a list of tag scene names in which the element is visible.

E.g., with gom.app.project.inspection['Point 1'].tags you can get all tag scenes where Point 1 is visible. Obviously that might be only a subset of all tags, but maybe this is useful if you have find some workaround.

  • 2 weeks later...
×
×
  • Create New...