Hello all
i need ur help for this problem.in element scan criteria we have option excludealllevel,types ect but i want includeall level and onlyone level to need exclude . I tried but I can’t find the solution
Post your Programming queries to the Developers and Programming Forum
As the name suggests ExcludeAllLevels excludes all Levels, there is no option just to exclude only one Level.
Once you get the ElementEnumerator, check for the element level that you wish to exclude as shown in the below code snippet
Do While oScanEnumerator.MoveNext Set oElement = oScanEnumerator.Current If oElement.Level.Name <> "level name to exclude" then 'Do Something End If Loop
Answer Verified By: sabarish l
Leonard Jones said:Post your Programming queries to the Developers and Programming Forum
I disagree a bit, because even when this forum can be used, MicroStation Programming forum is better suited for MicroStation API specific topics. Moreover it's more active than this general forum, focusing topics that do not fit to other more specialized forums.
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
sabarish l said:i need ur help for this problem
You marked the question as answered, so this is more like an advice for future discussions: Please read and follow the best practices. To ask without exactly specifying product and its version leads often to confusing discussions, because depending on product and version (even quite small difference like SS2 vs SS3 or U13 to U14), the context, conditions, known bugs and consequently also answer can be different.
thank you so much the information you gave was very helpful
Thanks Jan. Moved it to the right queue.
yeah sure .next time i will follow your words