This tip comes from Troy. He has provided a simple Dynamo definition to set the element Mark to Element ID. It is very fast, and I have tested it on a fairly large data set. As usual though, ‘use at your own risk’ etc.

I posted about how Bonus Tools can handle this too, over here.

How to use it:

  1. Install Dynamo (currently 7.5)
  2. Start Revit, open a project
  3. Open Dynamo, then open DuplicateMarkValuesFromID file from here
  4. Click Run…

Basically, it iterates through each Category in the left most part of the diagram, and sets the Mark parameter to the Element ID. If you aren’t using Mark for anything else, this will instantly clear duplicate mark warnings for those Categories. You could expand or reduce the list by adding or removing Categories and All Elements of Category node sets.

I made a trimmed down version for one Category (Sprinklers), but you can use this to choose a specific Category if you just want to do one at a time.

Thanks to this email from Troy:
Here you go. Feel free to post it and use it as you wish. It is fairly straightforward.

At the left is all of the categories I was checking in my model (mostly mechanical and plumbing). To add or change them just copy and paste the two left boxes, then add an array to the list create. The list count and watch to the top are just there to tell me how many items are being modified. I did about 30,000 objects in all of 30 seconds in one button push.

I’m no expert with Dynamo but I just did this with a spare hour I had int he morning.

I obviously take no responsibility for any damage it may do to any projects, files or computers etc etc.

Regards,
Troy

For some projects, Revit Warnings become a metric in model audit processes (this may be regardless of how much impact those warnings may have in real terms). For example, perhaps your model has become populated with many “Elements have duplicate ‘Mark’ values“. How can we fix these quickly?

I explored a number of options, and I think I have found the easiest. In one particular situation, the Mark value was not important for documentation, and it was simply necessary to make them unique to clear the warnings. What if we could also grab some otherwise unavailable information and apply it to the item? Like Element ID or GUID?

Bonus Tools can do that. Here’s the steps:

  1. Get Bonus Tools
  2. Open your RVT model, check the Warnings dialog, and see what Category is affected
  3. In Bonus Tools 1 ribbon, start Copy Parameter tool
  4. Pick options as per screenshot below

After clicking Ok, the tool will quickly copy the unique ID into the Mark parameter. You can now tag it or schedule it (keeping in mind that it is a static value and may need to be updated from time to time). What I like is how quickly the tool runs – it can do an entire category of thousands of elements in a minute or so.

Note: you could also use Bonus Tools to:

  1. Export multiple categories to Excel using a Multi-Category Schedule – “Export Schedule to Excel”)
  2. Adjust the Mark quickly in Excel with autofill, and 
  3. Re-import to Revit. This method is a bit slower, but you can have more control over how the parameter looks, and you can span multiple categories with unique-yet-readable Mark values.

There have been various other automated ways suggested to fix this over the years, such as:
Automatic Numbering of Elements Within Revit 2015 – Cadline Community 
using element positioning

Revit OpEd: Duplicate Mark Values
using Model Review
 
UPDATE: Recent updates to Bonus Tools include

  • new “Show Warnings” tool (applies a temporary Hide/Isolate after you select a html warning export from Revit) and 
  • a “Renumber Categories” tool (select multiple elements on different categories and it will renumber all elements on those categories by pushing the Element ID into the Mark parameter. It is very fast)