Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API Access to user history? "Show History"

13 REPLIES 13
Reply
Message 1 of 14
Samuel.Arsenault-Brassard
940 Views, 13 Replies

API Access to user history? "Show History"

The data in the "Show History" button is extremely useful to analyse the work done on a file or detect plagiarism.

Is it possible to obtain this data through the API? If not, is it possible to obtain it though BIM 360/ACC?

 

We want to obtain the name of the users and when they saved or interacted with the project.

 

History.jpg

13 REPLIES 13
Message 2 of 14

Ha. I suspect no Revit API access. I also suspect that if no Revit API access, then even less so in more removed environments such as BIM 360 or ACC.

 

However, you can certainly obtain the required information in various ways without any explicit API access to this specific functionality.

 

A pretty direct approach would be to use PostCommand to launch the built-in Show History command and then use the Windows API to harvest the data displayed in the UI form that you show in the screen snapshot:

  

  

 You can certainly also scrape the required into from the journal files, if you prefer, e.g.:

    

  

There was also a discussion here in the forum on using ~SLOG, an alternative to the journal file, for similar purposes:

  

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 3 of 14

I also asked the development team for you...

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 4 of 14

They reply: This "history" is the list of synchronizations if I am not mistaken. While journals can catch this, you can also pull it from the SLOG associated to the model and that catches all users instead of one by one (which is what the journal would return). There is a limit to the length of that history though (not sure how it compares with the history of the .rvt itself).

   

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 5 of 14

More thoughts on this:

 

A: Yes, it is the list of Syncs. I don’t think there is any Revit API to query this list.

There is/are ForgeDM APIs that query ACC/BIM 360 model history, but it is the history of the publishes that push the versions from RCM to ACC/BIM 360, so it doesn’t include info for all syncs.

 

B: Thinking outside of the box here… I removed the slog and all the associated files and the history was still extracted… Is there any chance that list of syncs is taken from the \global\history portion of the structured storage? Can that data be extracted easily?

 

If so a stand-alone app that exposes the username/time/synch number for a list of .rvt files could likely be quite valuable for a good amount of companies and educational institutions…

 

A: Right, the source for the data on Show History dialog is a stream in the RVT model, rather than the slog file. I agree it should be valuable to expose the data of sync history outside Revit, but afaik it is not feasible, as the data is binary, require Revit for the deserialization.

 

C: When writing Revit data into AEC data model during sync is available in the future, I think the history of cloud models can be filtered and queried in the AECDM.

 

As for file-based and server-based worksharing, we don't have backlog item on such request. SLOG file would be an incomplete workaround.  In my opinion, we may not invest the efforts on file-based and server-based worksharing workflow only. Cloud worksharing might be higher priority than the other two.

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 6 of 14

By the way, the development team would be interested to learn about what you would like to achieve and what kind of insights you hope to get from this.. What is the business value in this for you? Because if this is something that many customers need, we may be able to eventually provide that kind of analytics more directly.

   

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 7 of 14

@jeremy_tammik It's to get accountability :magnifying_glass_tilted_left:

 

Teachers use it to see if students copied each other's work.

I've detect firms that farmed their work to other firms without telling their clients.

I've found users who worked at 3AM, showing a lack of time management (their Revit work was also pathetic)

 

Often engineering firms don't work on models for months. The engineers don't know Revit, refuse to learn it and don't hire enough "Revit technicians" to do the work as specified in the contract. Meanwhile the architects are stuck doing the 3D work of the engineers. Or a firm will say they have 10 employees working on the project, but it's really 1-2 underpaid employees doing all the work.

 

I've also seen projects to major clients where all the users are interns that work for 2-3 months on the project and disappear. Then the client is surprised by the low quality of the Revit work and wonders why it's not following the BIM Execution plan.

 

Sometimes a malicious or disgruntled user will go in and mess up a file on purpose or they are just bad and deny their actions.

 

So it's for accountability. To inspect all the warts and mold of the industry that pumps out students who don't know Revit into the workforce year after year.

Message 8 of 14

Thank you very much for your clarification and very sorry to hear of this dismal state of affairs. Where is the world getting to, one asks? Can we be saved? Will AI make it better? Or much, much worse? Interesting times...

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 9 of 14

When owners/clients understand the value/potential of their BIM, give clear BIM instructions (instead of minimal bid contract with no clear BIM requirements) and are able to easily check for compliance, the industry will be "fixed".

 

Until then, owners don't know that they are receiving subpar BIM, have no vision about the (lost) potential of their BIM models and are unable to judge if what they paid for is good. Designers are not encouraged to deliver anything of value to get profit from the minimal bid contracts and so the cycle of no accountability, no effort & no skills continues.

Message 10 of 14

So, there is hope, and your tool can help  🙂

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 11 of 14

Oh yes! Our tool will be an scalable accountability monster for those who know what they want and for deep BIM auditing in general.

 

BIM dashboard.png

Message 12 of 14

Wow, great picture! DALL-E? Brilliant. None of my attempts have turned out that well. I guess I need to learn better prompting.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 13 of 14

This was the second image

Image2.png

DALL-E prompt 😅

"Can you make me an image of a BIM manager who is having the time of his life with a dashboard of data showing accountability. He's in a kind of puppet master moment, happy with all the power of the data, able to see where there are deficiencies, gains and issues throughout all his BIM models of complex architectural projects."

Message 14 of 14

Cool. I shared our conversation and your nice image on the blog for posterity:

  

https://thebuildingcoder.typepad.com/blog/2024/01/journals-logging-progress-bar-aec-ai-and-co2.html#...

  

Thank you for that!

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Rail Community