Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress Open Worksets dialog #42

Open
1 task
milotindragos opened this issue Aug 29, 2017 · 8 comments
Open
1 task

Suppress Open Worksets dialog #42

milotindragos opened this issue Aug 29, 2017 · 8 comments
Assignees

Comments

@milotindragos
Copy link

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

  • Operating System: Windows 7 or 10
  • Dynamo version: 1.3.0.875
  • Revit version & build number: Revit 2016 and Revit 2017.2

Housekeeping

  • None of the Revit models in my setup open with a warning = This is the problem that Revit is opening with the Workset Open Dialog box. Can this be sidetracked or canceled somehow?

References

@andydandy74
Copy link
Owner

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
Copy link
Owner

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:

  • Jrn.Data "File Name"
  • Jrn.Data "TaskDialogResult"
  • Jrn.Data "WorksetConfig"

@andydandy74 andydandy74 changed the title Workshared Revit File Open/Close Suppress Open Worksets dialog Aug 30, 2017
@milotindragos
Copy link
Author

milotindragos commented Aug 30, 2017

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

2017-08-30_08-30-09

@andydandy74
Copy link
Owner

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

@milotindragos
Copy link
Author

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 pushed a commit that referenced this issue Aug 31, 2017
@andydandy74
Copy link
Owner

@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
Copy link

any further updates on this issue?

@andydandy74
Copy link
Owner

Nope

@andydandy74 andydandy74 self-assigned this Nov 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants