OpenIFCDocument

OpenIFCDocument

pmeigneux
Advocate Advocate
935 Views
4 Replies
Message 1 of 5

OpenIFCDocument

pmeigneux
Advocate
Advocate

Hi,

 

which dll contains OpenIFCDocument?

 

Philippe.

0 Likes
Accepted solutions (4)
936 Views
4 Replies
Replies (4)
Message 2 of 5

aignatovich
Advisor
Advisor
Accepted solution

Hi!

 

This is Autodesk.Revit.ApplicationServices.Application class method. It is located in RevitAPI.dll

Message 3 of 5

pmeigneux
Advocate
Advocate
Accepted solution

Hi

 

cannot found :

 

0 Likes
Message 4 of 5

aignatovich
Advisor
Advisor
Accepted solution

This method is not static, you should first of all get Application object, for example from command data:

 

public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
...
var app = commandData.Application.Application;

 

or just document

 

var uiapp = commandData.Application;
var uidoc = uiapp.ActiveUIDocument;
var doc = uidoc.Document;

var app = doc.Application;

 

And only then call this method

Message 5 of 5

jeremytammik
Autodesk
Autodesk
Accepted solution

Dear Philippe,

 

Thank you for your query.

 

You can read this StackOverflow thread which explains how to proceed:

 

https://stackoverflow.com/questions/4438900/how-to-view-dll-functions

 

There are only a handful of Revit API .NET assemblies to explore, so it should be a matter of minutes.

 

I hope this helps.

 

Once you have answered your question, you can share the result with us, if you think it is useful.

 

Thank you!

 

Best regards,

 

Jeremy



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

0 Likes