2 Replies Latest reply on Nov 13, 2017 9:44 PM by vkaufmann

    Creating Event Frames with AF SDK

    Haavard

      Hi

       

      For one of our applications we are trying to calculate and generate event frames using the AF SDK.

      We are using the following code;

                  var template = element.Database.ElementTemplates[eventFrameTemplate];

                  var eventFrame = new AFEventFrame(element.Database, name, template)

      {

      PrimaryReferencedElement = element

      };

       

      eventFrame.SetStartTime(start);

      eventFrame.SetEndTime(stop);

       

      element.Database.CheckIn(AFCheckedOutMode.ObjectsCheckedOutThisSession); 

       

      In addition to creating the event frame, we also want to set the values of attributes on the event frame. The attributes are defined by the event frame template, but we are struggling to find the correct syntax for this.

      Is this possible to do using the AF SDK ?

       

      Regards

      Håvard