Python, door.Symbol.LookupParameter

Python, door.Symbol.LookupParameter

s.hofer6LSK7
Contributor Contributor
543 Views
2 Replies
Message 1 of 3

Python, door.Symbol.LookupParameter

s.hofer6LSK7
Contributor
Contributor

Hey Guys, 

 

i am a beginner in Pythonshell, i found the introduction on GitHub for the doors, but the "door.Symbol.LookupParameter("Type Name").AsString()) does not work. The letters do not appears in Bolt type.

I work with Revit 2022. Do you have any idea what is wrong?

shofer6LSK7_0-1654605932475.png

Best regards 

 

0 Likes
Accepted solutions (1)
544 Views
2 Replies
Replies (2)
Message 2 of 3

architect.bim
Collaborator
Collaborator
Accepted solution

Hi!

Actually I do not quite understand what your problem is. But in case of "Type Name" parameter I suggest using BuiltInParameter enumeration instead of parameter name to avoid problems with Revit localization:

>>> door.Symbol.Parameter[BuiltInParameter.ALL_MODEL_TYPE_NAME].AsString()
'0915 x 2134mm'

P.S. don't forget to import BuiltInParameter before using it in the code.

from Autodesk.Revit.DB import BuiltInParameter

 


Maxim Stepannikov | Architect, BIM Manager, Instructor
0 Likes
Message 3 of 3

s.hofer6LSK7
Contributor
Contributor

Hi,

 

thanks a lot, with the "BuiltInParameter.ALL_MODEL_TYPE_NAME" it is works exactly how i want it. Best regards