green mystery lines in layout view

17156
24
08-22-2012 08:59 AM
AngelaCunningham
New Contributor II
What the heck are these?


This map was fine the last time I opened it, but now there are these green lines. I've run a basic python script to update layer symbology in between opening the map before and opening it now, but these lines haven't appeared in any of the other maps I ran the same script on.

The green mystery lines only appear in the layout view and they seem to go on forever.  They don't seem to be associated with any of the layers in my map (I tried turning them off one at a time in the TOC). I can't select them or identify them. Closing and reopening the mxd doesn't help.

thanks,
Angela
Tags (2)
24 Replies
SheenaSoh
New Contributor

Thanks for this. I might add that "drawing a rectangle" with the select elements tool (black arrow pointer) instead of the select tool (white arrow with blue and white pointer) would do the job.

KevinVaughn1
New Contributor III
If this issue hasn't been solved, here's how I fixed mine when I encountered this same problem. Draw a rectangle on the line(s), like if you're selecting elements. You won't see any visible indication that it's selected but that�??s okay.  Mouse right click on the white portion of the screen and choose Delete.


Well that doesn't make any darned sense - but it worked for me too.
JamesGatts
New Contributor III

I agree. No sense at all, but hey if it works... !

0 Kudos
TomaszOrczykowski
New Contributor

I am not sure what technically those green lines are but I am pretty sure its an artifact on page layout after objects indexing going wrong. What I mean by this is that ArcObjects logic enumerates all items on the page and assigns order number. The logic of ArcObjects that are under any Python module in Arcgis use COM libraries that follow logic more specific to C#, Java, VBA etc. In the past, if Python tools interacted with this framework it was not always 100% compatible and sometimes accessing ArcObjects related to page view container elements and editing/inserting/removing would result in improper reindexing elements within the page container because some mechanism was not chained and did not triggered. This happened to me multiple times when I was developing Python solutions with Comtypes that operated on ArcObjects libraries (I know long time ago- no need to do this now since arcpy api gets better). What I found to work in individual MXD was to select all page elements COPY and PAST (or even UNDO). After this operation elements in the page container are reindexed in the proper way by normal ArcObjects and all go back to normal. Word of warning, if you have green lines on your page layout- remove them this way or another. Broken indexing means that some page object/elements are in a wrong state and may disappear or breake you mxd.

0 Kudos
MichaelHutchison
New Contributor

Try deleting every element in the Layout View and then re-adding it or undoing the delete.  I had three green lines (not the blue guide lines) on my Layout view.  Two in the bottom left hand corner of the screen and one diagonal line going from the top left to the bottom right.  I deleted everything (data frame, text boxes, images) and re-added them or undid the delete and the lines were gone.

0 Kudos