[quote user="Paul Connelly"]Create an ECInstance of AreaClass[/quote]
I'm stumped. I think that I need a DgnECInstanceEnabler in order to create an ECInstance. Here's what I have so far...
if (TextPropertyManager::GetMstnPropertyFormatterSchema (formatSchema)) // help function
{
ECN::ECClassCP formatClass = formatSchema->GetClassCP (L"AreaClass");
//trace: got EC Class 'AreaClass' Display Label 'Closed Elements'
const bool& IncludeBaseClasses { true };
ECPropertyP prop = formatClass->GetPropertyP (L"Units", IncludeBaseClasses);
//trace: Schema 'MstnPropertyFormatter' Class 'AreaClass' has property 'Units'
DgnECManagerR manager = Bentley::DgnPlatform::DgnECManager::GetManager();
DgnECInstanceEnablerP formatEnabler = manager.ObtainInstanceEnabler (*formatClass, *GetActiveDgnFile ());
// formatEnable == nullptr
}What have I missed?