Count number of paths with a specific spot color

Post Reply
User avatar
magnussandstrom
Advanced member
Posts: 342
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden
Contact:

Count number of paths with a specific spot color

Post 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'?
freddyp
Advanced member
Posts: 1008
Joined: Thu Feb 09, 2012 3:53 pm

Re: Count number of paths with a specific spot color

Post 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'])
User avatar
magnussandstrom
Advanced member
Posts: 342
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden
Contact:

Re: Count number of paths with a specific spot color

Post by magnussandstrom »

Thanks Freddy, this was exactly what I was trying to do!
Post Reply