Merry Christmas and Happy New Year to all!
revisit this old thread, recently i noticed a small glitch, i tried to use PostableCommand.DuplicateWithDetailing, works great just like PostableCommand.DuplicateView, except when i do it using right mouse click on the view (say "myView") which is not active, i cannot catch the default duplicated view which should be "myView Copy 1", only original view which is "myView".
PostableCommand.DuplicateView doesn't have this issue, those 2 commands should behavior similar, any clue?
below my snippet and comment FYI
private void OnViewActivated(object sender, ViewActivatedEventArgs args)
{
UIApplication uiApp = sender as UIApplication;
Document doc = args.Document;
View v = args.CurrentActiveView;
string n = v.Name;
// n = "myView Copy 1" for DuplicateView
// n = "myView" for DuplicateWithDetailing
// evething is OK if original view "myView" is activated beforehand