Graphic Element Order

2906
10
06-22-2011 12:01 AM
LakshmananVenkatesan
Occasional Contributor II
Hi,

I am adding graphic element to my graphic container on top of active view for Print functionality. Graphic element added successfully but it hides the layer below. For example I add polygon element with Line Fill symbol it hides the below layer label. I tried with different Z order values but nothing seems work. Please help me on this issue.

All I want is to add transparent element on graphics container so that user can see the both element and layer beneath with labels.

SR
0 Kudos
10 Replies
AlexanderGray
Occasional Contributor III
Instead of using the focusmap property you need the pagelayout property to draw too.  That means adding the graphic polygon element to the layout instead of the map.  PageLayout can be cast into an ActiveView and you can deal add the polygon element and export that view.  That should work ok but you will only see the rectangle if you switch your ArcMap view to layout. 

There is another way to do what you want with the data frame view (elements drawn to the map.)  In ArcMap, right click on the dataframe name (layers by default.)  Under labels, select label weight ranking.  In the label weight ranking form, the first layer should be "default", set the feature weight to none.  Your labels should appear through the polygon even if it has a fill.  If your polygon is not drawn to the default annotation graphic layer, you will need to set the feature weight of whatever annotation graphic layer it is in.

The problem is that a map annotation graphic layer acts a lot like a database annotation layer.  Annotation and labels have weights to prevent them from overlapping.  For most text annotation and text within a box (rectangle) you want this.  In your case you don't, so you have to change the default properties.  If you have elements in your graphics that you don't want to labels to overpost and so you do, you can create a new annotation group from the drawing menu of the drawing toolbar and set different properties.
0 Kudos