PDA

View Full Version : Command line switch for a journal file???



JFazz1
2008-01-09, 08:22 PM
Hi all,
I'd like to know if there is a command line switch for launching a journal file, i.e.
C:\Program Files\Revit Architecture 2008\Program\Revit.exe <switch> "myJournalFile.txt"
Thanks in advance,
-Jeff

Steve_Stafford
2008-01-09, 08:36 PM
No Jeff, you can just drag and drop the journal on the Revit icon to launch the journal though. How's life at DP?

JFazz1
2008-01-09, 08:57 PM
Heyyyyyy Steve,
Thanks for the information. Yes, I knew about that drag-n-drop trick but we're trying to automate a sequence of commands for benchmarking - dragging and dropping won't suffice.
All is well here. Will you be in our neck of the woods any time soon???
-J

Steve_Stafford
2008-01-09, 09:17 PM
I suspected as much... no trips to your woods in the near future :sad:

peterjegan
2008-01-09, 09:19 PM
Add quotes around the executable file (DOS has trouble with the spaces).
There is no "<swtich>".

This works for us in a batch file or at an XP command line:

"C:\Program Files\Revit Architecture 2008\Program\Revit.exe" "myJournalFile.txt"

Where "myJournalFile.txt" is in the current folder.

You can also start it from anywhere if you add the full path to journal file (add quotes if the path contains spaces)

c-hawk
2008-01-09, 09:21 PM
can you call a journal from the api?

JFazz1
2008-01-09, 10:22 PM
The double quotes worked! Thanks!
-J

dhurtubise
2008-01-10, 03:46 AM
Here one i did here
http://forums.augi.com/showthread.php?t=71482