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

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -