How to use Overload of OpenAndActivateDocument

How to use Overload of OpenAndActivateDocument

Anonymous
Not applicable
403 Views
1 Reply
Message 1 of 2

How to use Overload of OpenAndActivateDocument

Anonymous
Not applicable

Hi All,

 

In Revit API. How to use below overloads?

 

public UIDocument OpenAndActivateDocument(ModelPath modelPath, OpenOptions openOptions, bool detachAndPrompt);

 

public UIDocument OpenAndActivateDocument(ModelPath modelPath, OpenOptions openOptions, bool detachAndPrompt, IOpenFromCloudCallback openFromCloudCallback);

 

Means modelpath and etc.

0 Likes
404 Views
1 Reply
Reply (1)
Message 2 of 2

aignatovich
Advisor
Advisor

Hi!

 

Look at ModelPathUtils class, there are methods to convert file path to model path and model path to file path

0 Likes