Closed harrucci closed 5 years ago
Could you please provide a bit more information? What are the exact steps you take to get to the exception you mentioned above? Is that the only information you recieve?
What do you mean with "very basic functions"? Is that a button you're trying to press? Or do you mean Revit API?
i have the same problem. it doesn't seem to recognize the 'BuiltInCategory' from Revit's database.
@oguztuncay could you maybe provide a set of steps to reproduce the error?
hi daren, it was an amateur mistake. now it's gone. thank you for getting back so quickly. i'm sure i'll have more interesting problems for you in the future:D
@oguztuncay This was probably a bug in the init script right?
i don't think so. it was a typo that i made when I was trying to import BuiltInCategory. But now I can't execute 'LookupParamater' for a wall object. It says it's not one of the attributes.
Share your scripts please.
There is a typo in 'LookupParamater' => LookupParameter
no there is a typo in my comment not in the script give me a sec
selection return a list of element. Use selection[0] to call LookupParameter on first element.
selection[0].LookupParameter("parameter_name")
yes! thanks a lot!
Hello everyone,
I am using Revit 2017 with the corresponding pythonshell edition. Up to now, everything worked fine. But suddenly it doesn't recognize the very basic functions:
Exception : IronPython.Runtime.UnboundNameException: name 'BuiltInCategory' is not defined
I tried the code on another computer with the same Revit and Python editions and every works fine. So, the problem is not with the code itself. What it could be?
For your information the computer is inside a company network and Revit takes its licence vie a Revit Server.