Hello
I inherited few drawings with overly complicated cells. investigating cells shows multiple level deep elements (cells, solids, lines etc) same thing goes for Sharedcells. Printouts are total mess as cell elements reside on many levels which are not even present in current level library. To the point. i've written a sub to enumerate each element in cell and put every element on the same level and make every element bylevel with width, line, color.
for the Cell case i used
Set enuCell = oCellElm.AsCellElement.GetSubElements as enumeration
and it works (seems to) (- i know you can easily do it in microstation , but i got mix of sharedcells and cells i need to scan for.)
for the sharedCell case i tried
Set eleSC = oCellElm.AsSharedCellElement
Set eleSCDEF = eleSC.GetSharedCellDefinition
Set enuCell = eleSCDEF.GetSubElements
but it doesnt seem to do much
i might be missing something while enumerating deeper - i call the same sub with the same enumerator as there is no point of creating enumerators for each level deep as there are a lots. i cant find a good example for a proper looping for cell enumeration. maybe someone could point me in a good direction?