AnsweredAssumed Answered

Creating Event Frames with AF SDK

Question asked by Haavard on Nov 3, 2017
Latest reply on Nov 13, 2017 by vkaufmann

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

Outcomes