Hi,
Looking for an API to get active window handle of current document in display. Trying to find the highlighted area view window handle.
Thank you.
using UIframework.dll (part of Revit installation) and
using Xceed.Wpf.AvalonDock.dll (part of Revit installation) and
using Microsoft.VisualStudio.Utilities nuget
you can get that via this code:
var docControl = MainWindow.getMainWnd().FindDescendant<LayoutDocumentControl>();
Getting error on using above code.
'MainWindow' does not contain a definition for 'FindDescendant' and no accessible extension method 'FindDescendant' accepting a first argument of type 'MainWindow' could be found (are you missing a using directive or an assembly reference?)
Do i need to add more references?
Can't find what you're looking for? Ask the community or share your knowledge.