Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Revit API open the file in collaboration locally

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
2729 Views, 2 Replies

Revit API open the file in collaboration locally

Help me how to open the file automatically with the option to create a new local file with the references (in this file is opened in the name of the user name appears.)
I'm trying to use the
UIApplication.OpenAndActivateDocument (ModelPath, Openoptions, bool) with the option DoNotDetach and boolean argument "detachAndPrompt" = true.
Unfortunately, the file is opened as a double click.
Manually file can be opened using the menu command to open-> project, select the project file, with links to set the option to create a new local. How is it possible to perform this command with the API?

2 REPLIES 2
Message 2 of 3
augusto.goncalves
in reply to: Anonymous

Take a look at this post, it seems like what you need

 

http://thebuildingcoder.typepad.com/blog/2012/10/detach-workset-and-taskdialog-command-link-order.ht...

Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
Message 3 of 3
Anonymous
in reply to: augusto.goncalves

Thank you so much! Used WorksharingUtils class.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community