Page 1 of 1

Count number of paths with a specific spot color

Posted: Wed Sep 07, 2022 2:50 pm
by magnussandstrom
I would like to know the number of paths in a page with the spot color named Cut. I know I can use the 'Number of path on page' but how do I make it only count paths with the spot color 'Cut'?

Re: Count number of paths with a specific spot color

Posted: Wed Sep 07, 2022 3:05 pm
by freddyp
Run the following Action List:
Select line art, select spot color Cut, AND, Log selection "This is a cut line"/Log as warning.

The PitStop Pro Navigator will tell you how many instances there are of that particular message.

If it is in the context of Switch, run the Action List and make sure to create an XML report. In the Metadata you can then query the XML report with the following XPath to give you the number of messages:
count(/EnfocusReport/PreflightReport/Warnings/PreflightReportItem/StringContext[BaseString='This is a cut line'])

Re: Count number of paths with a specific spot color

Posted: Thu Sep 08, 2022 9:38 am
by magnussandstrom
Thanks Freddy, this was exactly what I was trying to do!