4 Replies Latest reply on Mar 8, 2017 12:51 PM by Kenji Hashimoto

    Apply the naming pattern of a template on a created event frame ?


      Hello, everyone.


      I'm trying to create EventFrames, based on a template, and linked to an existing element.


      var elemTemplate = _db.ElementTemplates[element.TemplateName];

      AFEventFrame eventFrame = new AFEventFrame(_db);

      eventFrame.Template = elemTemplate;



      eventFrame.PrimaryReferencedElement = referencedElement;



      it works well! The only problem is on the name of the created event frame. template of the NamingPattern is never appied.

      Created EF are named with a generic text, and I have to ask for a reevaluation of the name in PSE to have to the correct name.


      Is there a way to do that with AF Sdk? I hope so...