- [CommandMethod("t2")]
- public static void Test2()
- {
- Document doc = Application.DocumentManager.MdiActiveDocument;
- Database db = doc.Database;
- Editor ed = doc.Editor;
- db.BeginDeepCloneTranslation += new IdMappingEventHandler(db_BeginDeepCloneTranslation);
-
- }
- static void db_BeginDeepCloneTranslation(object sender, IdMappingEventArgs e)
- {
- Database db = sender as Database;
- Document doc = Application.DocumentManager.GetDocument(db);
- Editor ed = doc.Editor;
- foreach (IdPair ip in e.IdMapping)
- {
- ed.WriteMessage("\nkey:{0},value:{1}", ip.Key, ip.Value);
- }
- }
命令: co COPY 找到 1 个
当前设置: 复制模式 = 多个
指定基点或 [位移(D)/模式(O)] <位移>: 指定第二个点或 <使用第一个点作为位移>:
key:(2130277256),value:(2130277264)
指定第二个点或 [退出(E)/放弃(U)] <退出>:
key:(2130277256),value:(2130277272)
指定第二个点或 [退出(E)/放弃(U)] <退出>: *取消* |