0

ドキュメントに開いているトランザクションがないため、変更は禁止されています。ドキュメントには未処理のトランザクションがありません。Revit ドキュメント内。

4

3 に答える 3

1

あなたはこれを次のようにタグ付けしたので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-15T14:03:50.903 に答える
-1

ストリームリーダー関数を閉じる

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()  <---- they
于 2015-07-15T11:11:00.440 に答える