How does one update MgdDbg, as it is not included with ObjectARX SDK like its brother ArxDbg, despite being coded in C++...?
I did get the source when downloading the App from the DevTech link in my othe thread; just curious.
It's not coded in C++, it's coded in C#.
<snip>
Yes, of course - I had downloaded and extracted multiple files that day, and simply remembered the incorrect source-code language. Thanks for the correction.
How does one update MgdDbg, as it is not included with ObjectARX SDK like its brother ArxDbg, despite being coded in C++...?
I did get the source when downloading the App from the DevTech link in my othe thread; just curious.
PS:
I took a look at the notifications for the CVPORT sysvar, and it looks like that notification is badly broken. When switching from the model layout to a paper layout, it doesn't fire. When switching from a paper layout to the model layout, it fires twice, and I wouldn't count on that ever getting fixed.
This code will notify you when any of the following happens:
1. The active layout was switched
2. The active viewport was switched
3. The active viewport has changed (e.g., zoom/pan)
// Shows how to get notified when the current viewport changes,
// including when switching between paper/model space and between
// layouts.
public class UIBindingsNotificationExample
{
public UIBindingsNotificationExample()
{
INotifyPropertyChanged source = Application.UIBindings.CurrentViewport as INotifyPropertyChanged;
source.PropertyChanged += this.currentViewportChanged;
}
void currentViewportChanged( object sender, PropertyChangedEventArgs e )
{
Application.DocumentManager.MdiActiveDocument.Editor.WriteMessage(
"\n*** Current viewport changed: {0}",
Application.GetSystemVariable( "CVPORT" )
);
}
}
Using the above, you can ditch handling of both the LayoutSwitched event,
as well as the ViewChanged event.
Fantastic.
This may also come in handy for my plight in another thread... Thank you, Tony. :beer:
I wouldn't mind dying and coming back reincarnated as Tony. I am just saying.
... I'd just like to buy him a few pints of his favorite frosty brew.