[Ma...] Posted October 8 Share Posted October 8 Hi, i am trying to obtain list of tags. Yet no success. The idea is custom dialog to perform header changes, using filter on report pages and print pdf. Unfortunately using VS code or internal editor is no help due lack of documentation. A few can be obtained through "gom.app", but once is "gom.script" used, then no hints. Is there a way to get all classes or did i miss a link to full documentation? Thanks Link to comment Share on other sites More sharing options...
[Ma...] Posted October 10 Share Posted October 10 (edited) Hi, did you see ZEISS INSPECT 2025 App Development Documentation — App Development Documentation? E.g.: User-defined Dialogs — App Development Documentation Selecting elements in scripts — App Development Documentation (selecting elements - e.g. reports by tags) After finding the wanted report pages' names ("report" in this example), you can do a PDF export: gom.script.report.export_pdf ( file='C:/Users/IQMPRINK/Documents/Q – Reporting (Result).pdf', jpeg_quality_in_percent=100, pdfa=True, reports=[gom.app.project.reports['report']]) The gom.script.report.export_pdf() comand was created by recording (see Using the App Editor — App Development Documentation). Best regards, Matthias Edited October 10 Link to comment Share on other sites More sharing options...
[Ma...] Posted October 10 Author Share Posted October 10 Please sign in to view this username. Hi and thanks. I was able to record macro to save/print pdfs - that's not the problem. I was looking for list of tags. You can prepare program with report pages, select a few ( for example stage1 ) and tag it as "stage1" - then with python button fill combobox with list of tags and then export only selected ones. I was able to find what i needed, but i think there should be more elegant way. I am using "gom.ElementSelection" with "tag" so it will select me everything with tags. I would need only report pages, but i can filter them out. But many things after "gom.script" is not accessible from VSCode nor python editor. So i we don't know what text can be used ( after "report", and so on ) 1 Link to comment Share on other sites More sharing options...
[De...] Posted October 21 Share Posted October 21 Please sign in to view this username.  - not sure I fully understand, but agree it can be challenging to search for object attributes in vscode, I find it easier to use the "insert element (f2)" in the built in script editor then transfer it over to vscode. Anyways, not sure if this is what you're after, but you can get the report page tags with: "Insert Element (f2)" Object Group -> Elements -> Reports ->Random Report returns gom.app.project.reports['report 87'].tags - [ list of tags ] *random report page  then you could do something like: you can get all tags in project with: gom.app.project.all_element_tags ...hope it helps. -devon Link to comment Share on other sites More sharing options...
[Ma...] Posted October 21 Author Share Posted October 21 Please sign in to view this username. Hi and thanks - this approach seems like the correct one ( posted python code ). And thanks for that hint with F2 key - never heard/read about it ( or i searched badly 🙂 ) I was able to obtain somehow needed informations, but only gom is telling what's inside - anything after that is no hint. This F2 can help a lot. I hope i'll learn as much as i can while i have trial version at home. Not much of free time while at work for solving coding 😕 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in