[CommandMethod("K", CommandFlags.Session)] ArxApp.DocumentManager.MdiActiveDocument = doc; 这个浪费了好多时间。。。。。