I'm trying to extract EC attributes from elements in the design history. No matter how I set up the query I cannot get hold of my class instance.
If I specify ECQUERY_PROCESS_SearchAllClasses I will only get the basic element attributes. Any other critera finds nothing. Is there anything special with elements in the design history?
I can view the extra attributes through Element Information in the Element Changes dialog.
// Define scope
FindInstancesScopeOption option = FindInstancesScopeOption(DgnECHostType::Element, false);
FindInstancesScopePtr scope = FindInstancesScope::CreateScope(elementHandle, option);
// Define query
ECQueryPtr query = ECQuery::CreateQuery(ECQUERY_PROCESS_SearchAllClasses); // Gets basic element attributes only
//ECQueryPtr query = ECQuery::CreateQuery(L"FDO_Instant_Map", featureClass, true); // Get's nothing
//ECQueryPtr query = ECQuery::CreateQuery(ecClass); // Get's nothing
// Execute query
for each (DgnECInstancePtr instance in Bentley::DgnPlatform::DgnECManager::GetManager().FindInstances(*scope, *query))
{
Process..
}