Count # of Times a Style Is Used in a Project

This forum is for all Flare related Tips and Tricks.
Have a tip or trick you use while working in Flare? Share it here.
Post Reply
dandam
Propeller Head
Posts: 27
Joined: Wed May 02, 2012 11:36 am
Location: Overland Park, KS

Count # of Times a Style Is Used in a Project

Post by dandam »

Is there an easy way to count the number of times a particular style is used in a project (or target)?

For example, I created the styles "p.FieldName" and "p.FieldDefinition" that I use for documenting field definitions in my project. The project has thousands of field definitions spread across hundreds of topics. I want to count how many times the "p.FieldName" style is used in the project, to determine the exact number of fields I have documented.

The best idea I have so far is to use mc-auto-number-format to insert a unique string of text, such as "FieldName=", to each paragraph that uses the "p.FieldName" style. I can then generate a PDF that contains every topic in the project, and use Advanced Find in Acrobat to count the number of times the text "FieldName=" displays in the PDF. Not very graceful, admittedly.

I bet there is another, more elegant way, and I'm sure I'll be embarrassed :oops: when I learn how easy it is!
Matt Danda
MadCap Advanced Developer (MAD)
Overland Park, KS
ChoccieMuffin
Senior Propellus Maximus
Posts: 2630
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Count # of Times a Style Is Used in a Project

Post by ChoccieMuffin »

In something like FAR, do a search and replace for class="Fieldname" and class="FieldDefinition" to change them to themselves, then see how many changes are made. Should work...
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Post Reply