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: 

DetachFromCentral -2013

1 REPLY 1
Reply
Message 1 of 2
DMadhuri
453 Views, 1 Reply

DetachFromCentral -2013

Hi All,

 

Is there any way to Detach the Revit Workshared model  and Save it(new central) .

 

I want the model to be autosaved at a specific location on running my command.

 

Any sample code is much appreciated.

 

Thanks

1 REPLY 1
Message 2 of 2
jeremytammik
in reply to: DMadhuri

Dear DMadhuri,

Look at the What's New section of the Revit API help file RevitAPI.chm:

New overloads for Application.OpenDocumentFile() and UIApplication.OpenAndActivateDocument()

The new overloads support parameters OpenOptions and OpenOptionsForUI, respectively, to specify how a Revit document should be opened. Both options classes currently offer the ability to detach the opened document from central if applicable.

The property:

  • OpenOptions.DetachFromCentralOption
    can be set to DoNotDetach (the default) or DetachAndPreserve.

The property:

  • OpenOptionsForUI.DetachFromCentralOption
    can be set to DoNotDetach (the default), DetachAndPreserveWorksets or DetachAndPrompt.

I don't know about saving to central, though.

 

Best regards,

 

Jeremy
--
Jeremy Tammik
Autodesk Developer Network -- http://www.autodesk.com/joinadn
The Building Coder -- http://thebuildingcoder.typepad.com

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

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