单据没有未结业务,禁止修改。该单据没有未结交易记录。在Revit文档中。
发布于 2015-07-15 19:32:23
您有两个选项:
在命令中Transaction(TransactionMode.Automatic)
事务tr =新的命令名(“Transaction(commandData.Application.ActiveUIDocument.Document);tr.Start here");
//您的代码
tr.Commit();
发布于 2015-07-15 22:03:51
由于您将其标记为revitpythonshell
try:
transaction = Transaction(doc, 'a name for your transaction)
transaction.Start()
do_stuff_that_needs_to_modify_document()
transaction.Commit()
except:
transaction.Rollback()
throw_hands_up_in_the_air_and_cry_in_frustration()发布于 2015-07-15 19:11:00
关闭streamreader函数
Dim TextLine As String = ""
Dim fs As FileStream = New FileStream("baglanti.ini", FileMode.Open)
Dim sr As StreamReader = New StreamReader(fs)
baglanti_kodu = sr.ReadLine()
fs.Close()
sr.Close() <---- theyhttps://stackoverflow.com/questions/31428726
复制相似问题