Would someone explain how MS display priority works or where I can go to read about it. I am using XM.
It's not clear if you need help with the VBA aspect, or just general info. In any case, MicroStation's help has the following text:
(2D models only) Element Priority is a display-only setting that determines the order in which elements are displayed in a view. Essentially, this display priority setting adds a “calculated Z” value for to 2D co-planar elements, similar to the Z value in 3D models. In 3D models, elements closer to the eye are always displayed in front of elements further from the eye so display priority is not necessary.
In a 2D model, you can assign an active element priority, which sets the display priority value for new elements that you place in the model. The elements assigned the highest element priority value are displayed in the front, while the elements assigned the lowest values are displayed at the back.
In 2D models, you can assign Display Priority values to references, levels, and to individual elements. The hierarchy for display priority is Reference > Level > Element. A reference's display priority takes precedence because its value is multiplied by 1,000,000. A level's display priority is next because its value is multiplied by 1,000. An element's display priority is the lowest priority because it isn't multiplied by any amount. Therefore:
All elements in a reference with a higher Reference Display Priority will appear in front of all elements from references with a lower value.
Within a single model, or from references with the same reference display priority, elements on levels with higher Level Display Priority will appear in front of those with a lower value.
Where elements have the same reference and level display priority, then Element Display Priority determines those that will appear in front of others.
Where two elements have the same Reference, Level, and Element display priorities, then the one that appears later in the display order (that is, file position and update sequence) appears on top.
Additional info: http://communities.bentley.com/communities/other_communities/askinga/w/askinga/change-the-display-order-of-your-elements.aspx
Sorry for not answering you right away, but for some reason the reply buttion does not always appear.
I regards to my question I would wanted to understand how display priorigy work, but would also like anything you could send me to diplay elements in a different order. Sometimes we have reference files that are on top of elements and I would like to change that when needed.
There's some discussion of
element display order
and reference display order on our website.
There's no API for changing reference display order.
If you want to change an element's display priority programmatically, use the Element.DisplayPriority property.
Regards, Jon Summers
Regards, Jon Summers LA Solutions