David
We have been using a version of your local gen for the last few years. When I tried to update the script for 2011 the auto opened session of Revit is no longer seen by workshare monitor. After working with some other people we think we have this nailed down to the journal file from the old script.
The journal opens Revit just fine but apparently something is missing. The real mystery is that if you use a Revit created journal file to open a file then that session of Revit also is not seen by workshare monitor.
Looking at your Local Gen v5 you use a completely different set of commands. Is this something that you stumbled upon or are the commands documented somewhere in the API?
Old Journal
Code:
FileAppend,
(
'
Set Jrn = CrsJournalScript
Jrn.Command "Menu" , "Open an existing project , 57601 , ID_REVIT_FILE_OPEN"
Jrn.Data "File Name" _
, "IDOK", "%Destination%\%LocalFile%"
Jrn.Data "WorksetConfig" _
, "Editable", 0
Jrn.Data "MessageBox" _
, "IDOK", "This Central File has been copied or moved from ""%A_WorkingDir%\%CentralFile%"" to ""%Destination%\%LocalFile%""." & vbCrLf & "" & vbCrLf & "If you wish this file to remain a Central File then you must re-save the file as a Central File. To do this select ""Save As"" from the ""File"" menu and check the ""Make this a Central File after save"" check box (under the options button) before you save." & vbCrLf & "" & vbCrLf & "If you do not save the file as a Central File then it will be considered a local user copy of the file belonging to user ""%USERNAME%""."
Jrn.Command "Menu" , "Workset control , 33460 , ID_SETTINGS_PARTITIONS"
), %JournPath%specify.txt
Your v5 Journal
Code:
If VRSN >= 10
{
FileAppend,
(
'
Set Jrn = CrsJournalScript
Jrn.Command "Internal" , "Open an existing project , ID_REVIT_FILE_OPEN"
Jrn.Data "FileOpenSubDialog" , "DetachCheckBox", "True"
Jrn.Data "TaskDialogResult" , "Detaching this file will create an independent file and you will be unable to synchronize your changes with the original central file. Are you sure you want to detach this file?", "Yes", 6
Jrn.Data "File Name" , "IDOK", "%FolderCentral%\%CENTRALFILE%"
Jrn.Data "WorksetConfig" , "Custom", 0
), %JournPath%detach.txt
}
Else
{
FileAppend,
(
'
Set Jrn = CrsJournalScript
Jrn.Command "Internal" , "Open an existing project , ID_REVIT_FILE_OPEN"
Jrn.Data "FileOpenSubDialog" , "DetachCheckBox", "True"
Jrn.Data "MessageBox" , "IDOK", "Detaching creates an independent file and prohibits saving any changes back to the original Central File."
Jrn.Data "File Name" , "IDOK", "%FolderCentral%\%CENTRALFILE%"
Jrn.Data "WorksetConfig" , "Custom", 0
), %JournPath%detach.txt
}
I am trying to understand what the difference in the commands is and how we can avoid or correct the problem.
Any help would be greatly appreciated.