andydandy74 / DynamoAutomation

Batch-processing of Revit models using the Dynamo visual programming environment
MIT License
61 stars 23 forks source link

Suppress Open Worksets dialog #42

Open milotindragos opened 6 years ago

milotindragos commented 6 years ago

Description

Hi there is there a way to bypass the open worksets dialog box. Or any other dialog box that might appear in the opening process? Also closing the file does not trigger the synchronization process.

Expected behaviour

Opening the file does not work as Revit is in collaboration mode and a Specify Open Workset is active. Is there a way to use something like

My setup

Housekeeping

References

andydandy74 commented 6 years ago

Regarding the open worksets dialog box: Have you tried using the jorunal creation node with the debug option activated? perhaps that will suppress the dialog. I am pretty confident that I can add support for this, though. Regarding Sync with Central: There's a Clockwork node that should take care of this. Try putting that at the end of your slave graph.

andydandy74 commented 6 years ago

Note to self: These are the journal directives we'll need to improve support for local workshared files:

Load all worksets: Jrn.Data "WorksetConfig" , "All", 0 Load editable worksets only: Jrn.Data "WorksetConfig" , "Editable", 0 Load last used worksets only: Jrn.Data "WorksetConfig" , "Custom", 0

The debug option should take care of the Overwrite Local File dialog that may appear. Alternatively, we need to incorporate this command: Jrn.Data "TaskDialogResult" , "Sie versuchen, die neue lokale Datei C:\temp\xxx.rvt zu erstellen. Dieser Dateiname existiert jedoch bereits. Wie möchten Sie vorgehen?", "Existierende Datei überschreiben", "1001" (Need to get the proper message on an English OS...)

Interesting thing is that the order of the journal commands diffesr from the sequence in which they are recorded:

milotindragos commented 6 years ago

Hi. I tested out the journal with debug option and it still displays the following error:

2017-08-30_08-30-09

andydandy74 commented 6 years ago

Looks like your slave graph filepath has some whitespace...

milotindragos commented 6 years ago

Even if I use one of the example file "4Walls.rvt" and make it a central file I still get the "Enter interactive mode" that still stops the process:

2017-08-30_09-46-15

andydandy74 commented 6 years ago

@milotindragos Just a quick update: I did some experiments with journal commands but no luck so far. Not sure when I'll find the time to dig deeper. I'll keep this issue open, though.

Thomas-Harrington commented 5 years ago

any further updates on this issue?

andydandy74 commented 5 years ago

Nope