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

[CONNECT C++] Exctract EC attributes from history elements

$
0
0

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

}


Viewing all articles
Browse latest Browse all 7260

Trending Articles



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