ImportError: No module named wpf (in Revit environment only) - User interface
问题 I'm able to make a simple working UI on VS launched with ipy interpreter but when I try to launch it in Revit environment (revit python shell or macro), I got the following error : ImportError: No module named wpf wpf is a built-in module, so I don't think I forgot any reference or pythonpath. I checked both sys.version (idea from a post on stackoverflow): import sys print sys.version and got the same result on revitpythonshell and Ironpython console : 2.7.4 (IronPython 2.7.4 (2.7.0.40) on