Esempio n. 1
0
 public void ExecuteActionOnAttributeReferences(string fileName, Action <AttributeReference> action, bool saveFile = true) =>
 Wrappers.ExecuteActionOnBlockTable(fileName, (tr, bt) =>
                                    Wrappers.ExecuteActionOnBlockReferences(tr, bt, (tran, br) =>
                                                                            Wrappers.ExecuteActionOnAttributeReferences(br, action)), saveFile);
Esempio n. 2
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. 3
0
 public void ExecuteActionOnBlockReferences(string fileName, Action <Transaction, BlockReference> action, bool saveFile = true) =>
 Wrappers.ExecuteActionOnBlockTable(fileName, (tr, bt) =>
                                    Wrappers.ExecuteActionOnBlockReferences(tr, bt, action), saveFile);
Esempio n. 4
0
 public void AdjustAttributeAlignmentsInFile(string fileName) =>
 Wrappers.ExecuteActionOnBlockTable(fileName, (tr, bt) =>
                                    Wrappers.ExecuteActionOnBlockReferences(tr, bt, Wrappers.AdjustAttributeAlignments, OpenMode.ForWrite));
Esempio n. 5
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)));