Hi everyone
Solved! Go to Solution.
Tanks Arnošt
Exist example to use Application.DocumentOpened event? help me please!
Regards
There is a good chance such a sample exists. Start searching in the Samples folder provided with the SDK. There are definitelly samples of using various events, and it is very likely the DocumentOpened is among them. If not there, search the web with a simple "Application.DocumentOpened" query string - it should bring some samples, for this particular event is very often used by Revit programmers.
Hi everyone.
this is the answer to my request:
Dim uiapp As UIApplication = commandData.Application
uiapp.OpenAndActivateDocument("C:\example.rvt")
Dim FileOpened as String = commandData.Application.ActiveUIDocument.Document.PathName()
Regards!!!