Issue: BricsCAD 26 – WPFObject recognition missing, only UIA works (performance concerns)
Environment
TestComplete version: 15.80 (x64)
BricsCAD version: 26 (x64)
BricsCAD 24 in same environment shows different behavior
Object Spy + Object Browser used for investigation
Inspect.exe (Windows SDK) used for verification
Problem
In BricsCAD 26, TestComplete recognizes the UI only up to:
Window("#32770","MGDPALETTE")
→ WindowsForms10.Window
→ HwndWrapper[DefaultDomain;;GUID]
After HwndWrapper, TestComplete does not expose individual WPF controls.
Object Spy shows only:
Window(...)
No:
WPFObject(...)
In contrast:
BricsCAD 24 exposes full WPFObject hierarchy.
Same TestComplete project and configuration.
Observations
Inspect.exe can see all inner controls via UI Automation.
Enabling UI Automation in TestComplete (* accepted windows) allows access to inner controls as UIAObject.
Therefore accessibility tree exists and UI is exposed correctly.
Current workaround
Using UIAObject chain:
...HwndWrapper(...).UIAObject(...).UIAObject(...)
This works but is very slow:
Object Spy takes long to load.
Object Browser expansion is slow.
Deep UIA chains cause high execution delay.
Attempts already done
Verified TestComplete and BricsCAD are both 64-bit.
Enabled UI Automation support.
Added:
HwndWrapper*
WindowsForms10.*
in UI Automation accepted windows.
WPF settings checked.
Launch order tested (TC before app).
WPFObject still unavailable.
.ClrVersion and managed objects not exposed.
Suspected cause
BricsCAD 26 uses .NET 8/CoreCLR hosting.
TestComplete appears unable to attach CLR/WPF support in this application, so WPFObject recognition never activates and only UIA is possible.
Main questions
Is WPFObject recognition unsupported when WPF is hosted via .NET 8/CoreCLR in this manner?
Is there a known limitation with HwndWrapper + CoreCLR hosting preventing WPF injection?
Any recommended way to improve UIA performance for large trees (CAD applications)?
Best practice for stable mapping when only UIAObject is available?
Goal
Prefer WPFObject recognition (faster, cleaner).
If impossible, optimize UIA performance and recommended architecture.