How & When Were Your Revit Objects Created?

Oscar suggested that Revit could have an “action log” that, as an instructor, he could use to find out if students are cheating by “copying the assignment or parts of it from another student”. Here’s a look at how the Revit API solve this problem.

When every element is created, the time and tool used (for example the Wall command, Mirror, Rotate, or Paste…) are secretly and invisibly stored on the element. A user-visible command copies that data into a standard Revit parameter. So if Oscar has all his students run Revit with this tool installed, he can check their work by running the command and seeing how many elements were created with each command.

You can download this tool for free and if you like it, please help makes these free tools possible by supporting Boost Your BIM at Patreon or taking one of our video courses on the Revit API.


4 thoughts on “How & When Were Your Revit Objects Created?

  1. Hi Harry, is it possible with the API to know if something was pasted from another model and if so, can that model name be appended to the “FROM WHERE” parameter? This would help nail down that the elements weren’t being pasted from within the same model as in your video example.

    • Hi Dan,
      You could try to do something with that DocumentChangedEventArgs.GetTransactionNames Method, but the Revit model is in a read-only state in the DocumentChangedEvent, so you would need to combine that with an Idling event or something like that if you want to write this info back into the Revit model.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s