Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [CONNECT C++] IDgnECTypeAdapter::GetStandardValues

$
0
0

[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?


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>