使用:-IronPython -AutoDesk -Revit (PyRevit) -Revit API -SQLite3
我的代码如下:
try:
conn = sqlite3.connect('SQLite_Python.db')
c = conn.cursor()
print("connected")
Insert_Volume = """INSERT INTO Column_Coordinates
(x, y, z)
VALUES
(1, 2, 3)"""
count = c.execute(Insert_Volume)
conn.commit()
print("Volume values inserted", c.rowcount)
c.close()
except sqlite3.Error as error:
print("Failed to insert data into sqlite table", error)
finally:
if (conn):
conn.close()
print("The SQLite connection is closed")'''
此代码曾经在 PyRevit 中工作,但现在不能,并出现以下错误:
Exception : System.IO.IOException: Could not add reference to assembly IronPython.SQLite
请告知,这是一个大型项目的早期步骤之一,因此耽误了我的工作。
我期待你的回复。