I have no idea if this is an IronPython problem, Revit API build problem or something else. Any information / ideas on what might be causing this is appreciated.
I understand that this is permissible by re-importing the same namespace, but I'm dying to understand why this is so.
The following is a brief example of what is happening. The images show the output of the RevitPythonShell console.
File1.py
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit import DB
DB.Element.Name
DB.Element.Name.GetValue()
File2.py
from File1 import DB
DB.Element.Name
DB.Element.Name.GetValue()
from Autodesk.Revit import DB
DB.Element.Name.GetValue()


source
share