Make sure to visit this thread for the newest version. The journal snippets are similar to DK's with some minor variations in how the script works.
|
Make sure to visit this thread for the newest version. The journal snippets are similar to DK's with some minor variations in how the script works.
Okay - I see what you've done and found your post about addins not loading when launching Revit with a journal file. http://forums.augi.com/showpost.php?...5&postcount=48
So with that I pose a question to you (if you don't mind):
I've updated our code to reflect your method and it seems to be working - although now I always get the specify worksets interface (whether using the Specify option or the All option) and the "Copied Central File" warning. I assume I can add a loop or something that looks for the copied file dialog and closes it (the journal used to to this) and there might be some way to automate opening all the worksets if that option is used, but I'm curious how you have dealt with it? I don't see anything in the code, but I could be missing something.
Thanks for your help figuring this out.
Thanks Dave - I've followed up on your other thread
http://forums.augi.com/showpost.php?...3&postcount=12
I also found the MsgBoxCheck subroutine you both use to close the "Copied Central File" dialog. It was so short I just missed it in my quick review of the code...
I am going to revive this thread a bit, beacause as David said in his post in 2013. Many people are still using this script.
I have modified the software slightly for our office so that once the shortcut is created and used it creates a dialog box that asks whether a user wants to open local (trying to reduce the use of licenses across our office). The next step is trying to adjust an implement the opening of a detached copy of the file. Sadly, it doesn't seem to be working for Revit 2016. Has anyone figured out the code for opening a detached copy in Revit 2015, 16 or 17?
Here's my version of the AHK file.
Hi David Kingham, I picked up your script and simplified it to our needs. I had to look for an alternative as the new antivirus we rolled out was stalling all VBS script execution in our environment. The batch script essentially achieves the goal in 15 lines of code and a single XCopy command with a pipe (allowing overwriting of local file). It also launches the Worksharing monitor (2015 in our case) when done.
REM ------------------- Script Functions -------------------
for %%1 in (%0) do (set PRJ=%%~n1)
for %%1 in (%0) do (set CEN=%%~dp1)
echo.
echo Checking for existing local files for %PRJ%
echo.
if exist "C:\Revit\%PRJ%\" (
goto CopyCentral
) else (
echo.
echo Creating LOCAL folder for %PRJ%
echo.
mkdir "C:\Revit\%PRJ%\
)
:CopyCentral
echo.
echo Copying %PRJ% CENTRAL files to LOCAL folder
echo.
echo F|xcopy "%CEN%*.rvt" "C:\Revit\%PRJ%\%PRJ%-%username%-%date:~4,2%%date:~7,2%%date:~10,4%.rvt" /y
echo Done!
echo Local File created in C:\Revit\%PRJ%
echo Added suffix "%username%" as username and today's date.
echo Launching Worksharing Monitor for Revit 2015...
start "" "C:\Program Files\Autodesk\Worksharing Monitor for Revit 2015\WorksharingMonitor.exe"
pause
exit
Love the batch file idea: Here's updated Revit Make Local for newer versions of Revit on GitHub: per David's blessing.
Figured out the detached open for Revit 15, 16, 17 using a journal file procedure.
[QUOTE=structure360;1316495]I am going to revive this thread a bit, beacause as David said in his post in 2013. Many people are still using this script.
I have modified the software slightly for our office so that once the shortcut is created and used it creates a dialog box that asks whether a user wants to open local (trying to reduce the use of licenses across our office). The next step is trying to adjust an implement the opening of a detached copy of the file. Sadly, it doesn't seem to be working for Revit 2016. Has anyone figured out the code for opening a detached copy in Revit 2015, 16 or 17?
Here's my version of the AHK file.