I am trying to get the names of the view templates’ parameters using python. Using the “.GetTemplateParameterIds()” method I can get the parameter ids, but then I cannot find a way to get the names as strings. I have tried the following:
1.Using the Revit python wrapper: e.g.: db.Element.from_id(j).Name
2.Using the API method: e.g.: DB.GetElement(doc, j)
(j is the parameter(Element) id)
In both cases the result is “None”.
Even when using the “>Manage>Inquiry>Select by ID” function in Revit and I use one of the parameter ids, the result is that “The following Element IDs are invalid and won’t be used”
Can anyone help here?
Thanks a lot in advance