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

[CONNECT C++] Finding Shared Cell Definitions

$
0
0

How does one "find" a Shared Cell Definition? If I use GetGraphicsElementsP(), I can find Shared Cell Instances. If I use GetControlElementsP(), I see Type 66 elements. However, I never find type SHAREDCELL_DEF_ELM (type 34) ? My goal is to delete those after my Seared Cells are dropped to Normal Cells.

DgnModelRefP		activeModelP = mdlModelRef_getActive();

if (NULL != activeModelP->AsDgnModelP()->GetControlElementsP())
{
	for (PersistentElementRefP const& elemRef : *activeModelP->AsDgnModelP()->GetControlElementsP())
	{
...
	}
}

if (NULL != activeModelP->AsDgnModelP()->GetGraphicElementsP())
{
	for (PersistentElementRefP const& elemRef : *activeModelP->AsDgnModelP()->GetGraphicElementsP())
	{
...
	}
}

 

 

 

Bruce


Viewing all articles
Browse latest Browse all 7260

Trending Articles



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