Access an ElementType's keynote builtinparameter
Not applicable
10-22-2015
11:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, this is a beginner's question I guess. I am trying to access an elementtype's keynote parameter. I use the following code:
Element elem = doc.GetElement(pickedRef);
ElementType eType = doc.GetElement(elem.GetTypeId()) as ElementType;
Parameter paraUniCode = eType.get_Parameter(BuiltInParameter.UNIFORMAT_CODE);
Parameter paraKeynote = eType.get_Parameter(BuiltInParameter.KEY_VALUE);
then the assembly code gave me the right result, but the keynote is NULL.
I have assigned an assembly code and an element keynote to the element type in my model.
Where did I do wrong?
Thank you in advance!
Link copied