- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Has WriteMessage() always not worked for event handlers like this?
Silly question, I know 😬; I've not been writing code since my son was born (he's now 5yo), and am only getting back into it with the NET 8 project upgrades.
The code compiles and executes fine using a breakpoint, but nothing appears at command line.
Is there a better event to hook for reporting/feedback, after first storing the needed info to field in these sort of events?
TIA
[Edit] - Should also add, that I tried both Application.SystemVariableChanged and Database.SystemVariableChanged alternatives (the latter with an inherent DocumentCreated), but no joy.
// registered with: acApp.SystemVariableChanged += onSystemVariableChanged;
private static void onSystemVariableChanged(object sender, acAppSrvc.SystemVariableChangedEventArgs e) { // do something useful acDocs.MdiActiveDocument.Editor.WriteMessage("\n >> {0} changed. ", e.Name.ToUpper()); }
"How we think determines what we do, and what we do determines what we get."
Chris (BlackBox) Bradley
Managing Partner / Developer / Civil Designer
Quux Software | Sincpac C3D | Style Explorer
Solved! Go to Solution.