andydandy74 / Journalysis

Revit journal and worksharing log analysis package for the Dynamo visual programming environment
MIT License
45 stars 6 forks source link

Improve Journal.LoadedModels #7

Open andydandy74 opened 6 years ago

andydandy74 commented 6 years ago

If we want to track all documents opened in a session, we'll need a list of all possible cases and how they can be identified in a journal

Open from Startup Page:

Jrn.Command "StartupPage" , "Dieses Projekt öffnen , ID_FILE_MRU_FILE2"
Jrn.Data "MRUFileName" , "THE_PATH"

Open from Ribbon (CommndID varies depending on selected option):

Jrn.Command "Ribbon" , "Öffnet ein Projekt , ID_REVIT_FILE_OPEN"
Jrn.Data "File Name" , "IDOK", "THE_PATH"

Open by drag and drop:

Jrn.DropFiles MainWnd , ""
Jrn.Data "Dropped File Name" , "THE_PATH"

All of the above done for project files, but need to test if all of the above work for family files as well. Will also need to investigate how to deal with file names of new local models, currently we're using the central file name. Maybe it's not a bad idea to keep it that way, since we can then track interactions with the central model for multiple users.

Edit Family:

Jrn.Command "Internal" , "Bearbeitet die Familie , ID_EDIT_FAMILY"
Jrn.Directive "DocSymbol" , "[THE_FAMILY_NAME]"

Need to investigate for the following cases:

Once this is done, move the code to the journal class.

We'll also want to have a LoadedModelEvent for closing a model.

andydandy74 commented 6 years ago

This node is actually painfully slow. Need to investigate what's causing that.