AnsweredAssumed Answered

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

Question asked by PierrePlagnes on Mar 3, 2017
Latest reply on Mar 8, 2017 by Kenji Hashimoto

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...