Delete Maskined Region from Revit Document using C# -


i want delete maskined region revit document using c#. error : modifying forbidden because document has no open transaction. exception: modificationoutsidetransactionexception

you have 2 options:

change transactionmode automatic @ class attribute

[transaction(transactionmode.automatic)] 

open transaction within command

transaction tr = new transaction(commanddata.application.activeuidocument.document); tr.start("command name here");  // code  tr.commit(); 

also posted here.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -