Announcements

Community notifications may experience intermittent interruptions between 10–12 November during scheduled maintenance. We appreciate your patience.

Track use of plugin

Track use of plugin

RECArchi
Collaborator Collaborator
833 Views
3 Replies
Message 1 of 4

Track use of plugin

RECArchi
Collaborator
Collaborator

I developed a plugin for my company, and now I want to track the use of this plugin within my team : Who clicked on a specific PushButton of the plugin and launched an IExternalCommand ? When did this happen ? What project was concerned ? 

I thought of writing this information on a .txt file stored in our server. Is it a good practice ? If not, what do you advise me to do ?

Thank you in advance.

0 Likes
Accepted solutions (1)
834 Views
3 Replies
  • BIM
Replies (3)
Message 2 of 4

jeremy_tammik
Alumni
Alumni

Yes, something like that sounds OK to me. I would spend a moment researching the Internet for existing libraries that do what you need. I am sure that there are lots of them out there, so you don't have to waste time reinventing the wheel.

 

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

MattKincaid
Advocate
Advocate

We do this using the .NET web request API to write usage information to an SQL database on our server.  Database tools have some advantages over just writing to a plain text file (easier to search, filter, maintain the data, etc.).  But a text file would probably work fine too, depending on how much data you need to log/keep track of.

0 Likes
Message 4 of 4

RECArchi
Collaborator
Collaborator
Accepted solution

I do not want to track much  information : user, date and Revit project concerned, and write it on each line of the text file.

My goal is to evaluate how much my plugin is used. I don't think an SQL database is needed.

Sincerely.