See the top rated post in this thread. Click here

Page 3 of 22 FirstFirst 123456713 ... LastLast
Results 21 to 30 of 217

Thread: Transparent Local file creation

  1. #21
    AUGI Addict
    Join Date
    2001-12
    Posts
    1,714
    Login to Give a bone
    0

    Default Re: Transparent Local file creation

    Hmmm... Schedulable it says. So I could have a scheduled script that fires up Revit and does an Audit late at night? That might might be cool!

    Gordon

  2. #22
    Count (Formula) dbaldacchino's Avatar
    Join Date
    2005-07
    Location
    Missouri City, Texas (Houston area)
    Posts
    3,250
    Login to Give a bone
    0

    Default Re: Transparent Local file creation

    Yep. I guess the easiest would be to create a journal with those keystrokes: open the file and check the Audit option, save the file and exit. Then make an AHK script that runs that journal, compile into an exe and add it to the scheduled tasks.

  3. #23
    I could stop if I wanted to
    Join Date
    2007-03
    Location
    Phoenix
    Posts
    261
    Login to Give a bone
    0

    Default Re: Transparent Local file creation

    It would seem that what you're suggesting is completely feasible. A while ago I was running successive File > Open > Detach from Central >Save-as sequences using a journal file for every project in the office (THANK YOU, STEVE!!!), creating an Archive by date, but I had to drag the *.txt files manually and wait for it to finish running.

    What you're proposing by putting the AHK *.exe in Scheduler to kick on overnight would be an improvement to that process. I'm not sure, though, if I would do an Audit unattended if there were corrupt elements present since the Journal would enter interactive mode and hang out with the file open...but I really like the idea.
    LC

  4. #24
    Count (Formula) dbaldacchino's Avatar
    Join Date
    2005-07
    Location
    Missouri City, Texas (Houston area)
    Posts
    3,250
    Login to Give a bone
    0

    Default Re: Transparent Local file creation

    Well, the main problem would be that if a link to a dwg or a linked Revit project cannot be found, a window is going to pop up right? So if you run it at night, I'm not sure what would happen in that case. One thing that can be done is to make your AHK script trap a particular window (see the example I posted for how I dismiss the dialog that notifies you that the central has been moved/copied). So certain things I guess could be incorporated into the AHK script since they cannot be predicted in the journal.

    As to the issue of errors when auditing, I don't think Revit gives you any options as to what to do anyway, so I don't think this would be a problem. In your AHK script you could do some sort of a timeout to make sure Revit closes so the next scheduled task can run and not have a "pile-up" happen if Revit hangs there in interactive mode.

  5. #25
    Count (Formula) dbaldacchino's Avatar
    Join Date
    2005-07
    Location
    Missouri City, Texas (Houston area)
    Posts
    3,250
    Login to Give a bone
    0

    Default Re: Transparent Local file creation

    I've just been doing some experiments and I think that I can actually improve this script by making a dialog pop up and give the user 3 choices (detach from central, select worksets or just open). I'll have the script write a journal to the C drive each time it runs and then delete it (or delete when it starts). Actually I'll have it write to the Journal folder so they'll be organized with the rest of the journals. I'll keep you posted on the progress.

  6. #26
    AUGI Addict
    Join Date
    2001-12
    Posts
    1,714
    Login to Give a bone
    0

    Default Re: Transparent Local file creation

    Quote Originally Posted by dbaldacchino View Post
    I've just been doing some experiments and I think that I can actually improve this script by making a dialog pop up and give the user 3 choices (detach from central, select worksets or just open). I'll have the script write a journal to the C drive each time it runs and then delete it (or delete when it starts). Actually I'll have it write to the Journal folder so they'll be organized with the rest of the journals. I'll keep you posted on the progress.
    Hey David, when you say "Write a journal" do you mean your script is actually generating all the Journal text? Did you find some resource to help you understand how Journals work, or did you just reverse engineer them? I am hope for the former, that you might share, cause I have neither the time nor the brains for the latter it seems

    Thanks,
    Gordon

  7. #27
    Count (Formula) dbaldacchino's Avatar
    Join Date
    2005-07
    Location
    Missouri City, Texas (Houston area)
    Posts
    3,250
    Login to Give a bone
    0

    Default Re: Transparent Local file creation

    Unfortunately, it's reverse-engineering & trial and error Once I figure out the exact syntax, I can have the AHK script generate a txt file and use it as a journal to run in Revit. That's how I found it possible to give the user the option to open the local or select worksets or detach from Central. I haven't finished this yet, but I know I can do it. It'll take me a couple more weeks to get back working on it though. In the meantime, the following is what I found is necessary to have Revit fire up, start loading a local and prompt you to select worksets:

    PHP Code:
    '
    Set Jrn = CrsJournalScript
    Jrn.Command "Menu" , "Open an existing project , 57601 , ID_REVIT_FILE_OPEN"
    Jrn.Data "File Name"  _
    , "IDOK", "..\..\..\Revit Local Files\filename.rvt"
    Jrn.Data "WorksetConfig"  _
    , "Custom", 1 
    The above assumes your file is located in your root of C:\ in a folder named "Revit local Files". Copy the entire text, including the ' at the beginning or it won't work!

  8. #28
    AUGI Addict
    Join Date
    2001-12
    Posts
    1,714
    Login to Give a bone
    0

    Default Re: Transparent Local file creation

    Wouldn't it be great if the Factory would just post a PDF documenting the silly Journal format. It must exist internally, and there is no encryption or proprietary information in a Journal file. And yet the ability to make maximum use of an incredibly powerful tool is severely limited, and what we can do comes painfully. I just don't get it.

    Gordon

  9. #29
    100 Club
    Join Date
    2005-02
    Location
    St Louis, MO and Tirunelveli, India
    Posts
    130
    Login to Give a bone
    1

    Default Re: Transparent Local file creation

    I finished editing the AHK file originally created by David Baldacchino to suit our office standards. I have attached both the exe and the ahk files.
    The exe can reside anywhere. When you run it, if it finds a file with "central.rvt" ending, it creates a local file in the "C:\Projects\XXXXX\" where XXXXX is a 5 digit project number which it gets from the first five letters from the central file (for eg. our typical central file is named as "07074-someprojectname-central.rvt").
    If no Central is found or more than one exists, a dialog opens to let you browse and select the correct central file. The script does not check for the discipline etc (differs from David's file) because we just have RAC 2008. The rest it does the same thing as David's
    David's file has been a great help to us. We have had people saving their local on their desktop, etc and now it can be easily standardized! We just leave the exe on the network and just copy a shortcut to the project folder!
    Thanks
    nicholas
    Attached Files Attached Files

  10. #30
    I could stop if I wanted to
    Join Date
    2007-03
    Location
    Phoenix
    Posts
    261
    Login to Give a bone
    0

    Default Re: Transparent Local file creation

    Quote Originally Posted by gordon.price View Post
    Wouldn't it be great if the Factory would just post a PDF documenting the silly Journal format.
    Gordon
    Ditto. That would be nice. Reverse-engineering, trial and error, while all well and good, doesn't help the case for hours spent on a job writing scripts, at least not to most PM's.

    LC

Page 3 of 22 FirstFirst 123456713 ... LastLast

Similar Threads

  1. Transparent Local File Creation - GUI (v5) *UPDATED*
    By dbaldacchino in forum Revit - Worksharing/Worksets/Revit Server
    Replies: 38
    Last Post: 2017-01-09, 02:50 AM
  2. Detached Revit Local File - (Anyway to reattach or copy worksets over to central file)
    By Reviting in forum Revit - Worksharing/Worksets/Revit Server
    Replies: 2
    Last Post: 2014-05-23, 05:17 PM
  3. Creation of local file and synchronization error
    By wongkuanwei570223 in forum BIM Management - General
    Replies: 3
    Last Post: 2014-03-10, 09:44 PM
  4. 2014: Revit reporting Central File is not available, no one else is in file, can't save, won't create local file
    By patricks in forum Revit - Worksharing/Worksets/Revit Server
    Replies: 3
    Last Post: 2013-10-03, 10:31 PM
  5. Local Files: program to delete local file and create a new local file
    By mailshanegross in forum Revit - Worksharing/Worksets/Revit Server
    Replies: 4
    Last Post: 2009-06-03, 02:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •