Esempio n. 1
0
 public void PurgeAllOnLayerTable(Database db) =>
 Wrappers.ExecuteActionInTransaction(db, tr =>
                                     Wrappers.ExecuteActionOnLayerTable(db, tr, lt => Wrappers.PurgeSymbolTable <LayerTable>(lt)));
Esempio n. 2
0
 public void AddAttributeToBlocks(Database db, Predicate <BlockReference> shouldAddAttribute, string attributeTag, string attributeDefaultValue) =>
 Wrappers.ExecuteActionInTransaction(db, tr =>
                                     Wrappers.ExecuteActionOnBlockTable(db, tr, bt =>
                                                                        Wrappers.ExecuteActionOnModelSpace(bt, modelSpace =>
                                                                                                           Wrappers.AddAttributeToBlocks(bt, tr, modelSpace, shouldAddAttribute, attributeTag, attributeDefaultValue))));
Esempio n. 3
0
 public void AdjustAttributeAlignmentsInDatabase(Database db) =>
 Wrappers.ExecuteActionInTransaction(db, tr =>
                                     Wrappers.ExecuteActionOnBlockTable(db, tr, bt =>
                                                                        Wrappers.ExecuteActionOnBlockReferences(tr, bt, Wrappers.AdjustAttributeAlignments, OpenMode.ForWrite)));
Esempio n. 4
0
 public void PurgeAllOnBlockTable(Database db) =>
 Wrappers.ExecuteActionInTransaction(db, tr =>
                                     Wrappers.ExecuteActionOnBlockTable(db, tr, bt => Wrappers.PurgeSymbolTable <BlockTable>(bt)));
Esempio n. 5
0
 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))));
Esempio n. 6
0
 public void ExecuteActionOnBlockReferences(Database db, Action <Transaction, BlockReference> action, bool executeOnAnonymousBlocks = true) =>
 Wrappers.ExecuteActionInTransaction(db, tr =>
                                     Wrappers.ExecuteActionOnBlockTable(db, tr, (tran, bt) =>
                                                                        Wrappers.ExecuteActionOnBlockReferences(tran, bt, action, executeOnAnonymousBlocks: executeOnAnonymousBlocks)));
Esempio n. 7
0
 public void ExecuteActionOnLayerTable(Database db, Action <Transaction, LayerTable> action) =>
 Wrappers.ExecuteActionInTransaction(db, tr =>
                                     Wrappers.ExecuteActionOnLayerTable(db, tr, action));
Esempio n. 8
0
 public void ExecuteActionOnBlockTable(Database db, Action <BlockTable> action) =>
 Wrappers.ExecuteActionInTransaction(db, tr =>
                                     Wrappers.ExecuteActionOnBlockTable(db, tr, action));
Esempio n. 9
0
        //public void RecalculatePowers(Database db) =>
        //    Wrappers.ExecuteActionInTransaction(db, tr =>
        //      Wrappers.ExecuteActionOnBlockTable(db, tr, bt =>
        //        Wrappers.ExecuteActionOnBlockReferences(bt, Wrappers.RecalculatePowers)));

        //  public void CheckForErrors(Database db) =>
        //    Wrappers.ExecuteActionInTransaction(db, tr =>
        //      Wrappers.ExecuteActionOnBlockTable(db, tr, Wrappers.CheckForErrors));

        public void BindxRefs(Database db) =>
        Wrappers.ExecuteActionInTransaction(db, tr => Wrappers.BindxRefs(db, tr));
Esempio n. 10
0
 public void FixAttrMover(Database db) =>
 Wrappers.ExecuteActionInTransaction(db, tr =>
                                     Wrappers.ExecuteActionOnBlockTable(db, tr, bt =>
                                                                        Wrappers.ExecuteActionOnModelSpace(bt, Wrappers.FixAttrMover)));
Esempio n. 11
0
 public void ExecuteActionOnModelSpace(Database db, Action <BlockTableRecord> action) =>
 Wrappers.ExecuteActionInTransaction(db, tr =>
                                     Wrappers.ExecuteActionOnBlockTable(db, tr, bt =>
                                                                        Wrappers.ExecuteActionOnModelSpace(bt, action)));