[Ma...] Posted Wednesday at 07:11 AM Share Posted Wednesday at 07:11 AM 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 Friday at 09:26 AM Share Posted Friday at 09:26 AM (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 Friday at 09:27 AM Link to comment Share on other sites More sharing options...
[Ma...] Posted Friday at 11:41 AM Author Share Posted Friday at 11:41 AM 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 ) 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