Results 1 to 2 of 2

Thread: access keynote in API

  1. #1
    Woo! Hoo! my 1st post
    Join Date
    2015-10
    Posts
    1
    Login to Give a bone
    0

    Default access keynote in API

    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!

  2. #2
    100 Club
    Join Date
    2004-09
    Posts
    104
    Login to Give a bone
    0

    Default Re: access keynote in API

    It looks to me like: BuiltInParameter.KEY_VALUE belongs to the Keynote Tag.

    The Keynote of the element type should be:

    Parameter paraKeynote = eType.get_Parameter(BuiltInParameter.KEYNOTE_PARAM);

Similar Threads

  1. Replies: 1
    Last Post: 2016-12-06, 04:51 PM
  2. 2013: Add Keynote 'bubbles' to Keynote Legend
    By pauljordan in forum Revit Platform - Wish List
    Replies: 0
    Last Post: 2013-07-18, 03:35 PM
  3. existing keynote and new keynote as separate schedule
    By t1.shep in forum Revit Architecture - General
    Replies: 2
    Last Post: 2010-04-21, 07:42 PM
  4. keynote in a schedule to a keynote list
    By wadeshuey in forum Revit Architecture - General
    Replies: 5
    Last Post: 2009-01-30, 09:05 PM
  5. Keynote Text Missing in Keynote Schedule
    By bleonard in forum Revit Architecture - General
    Replies: 4
    Last Post: 2007-11-09, 09:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •