Closed andydandy74 closed 11 years ago
Hey there,
Previously, we inserted some import statements in front of the script at run time. Now, we make this completely explicit, also fixing this issue. Note, that this will break previous python scripts, so you'll have to fix old scripts by adding the following to the top:
import clr
clr.AddReference('RevitAPI')
clr.AddReference('RevitAPIUI')
from Autodesk.Revit.DB import *
import Autodesk
This is really just a minor nuisance when debugging Python code in the Python script node, but still: The line count is off by 11 lines. My current solution is a post-it next to my screen ("-11 LINES"), but if it's easy to fix, please do. ;-)