Jump to content

Documentation for Python gom package


---
 Share

Recommended Posts

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

Hi,

did you see ZEISS INSPECT 2025 App Development Documentation — App Development Documentation?
E.g.:

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
Link to comment
Share on other sites

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

 Share

×
×
  • Create New...