コード例 #1
0
ファイル: AutoCadWrapper.cs プロジェクト: JieGou/jszomorCAD
 public void ExecuteActionOnEntities <T>(Database db, Action <T> action, Predicate <T> predicate) where T : Entity =>
 Wrappers.ExecuteActionInTransaction(db, tr =>
                                     Wrappers.ExecuteActionOnBlockTable(db, tr, bt =>
                                                                        Wrappers.ExecuteActionOnModelSpace(tr, bt, (tran, ms) =>
                                                                                                           Wrappers.ExecuteActionOnItemsInModelSpace(tr, ms, action, predicate))));
コード例 #2
0
ファイル: AutoCadWrapper.cs プロジェクト: JieGou/jszomorCAD
 public void ExecuteActionOnEntities <T>(string fileName, Action <T> action, Predicate <T> predicate) where T : Entity =>
 Wrappers.ExecuteActionOnBlockTable(fileName, (tr, bt) =>
                                    Wrappers.ExecuteActionOnModelSpace(tr, bt, (tran, ms) =>
                                                                       Wrappers.ExecuteActionOnItemsInModelSpace(tr, ms, action, predicate)));