Is This Content Helpful?
We're glad to know this article was helpful.
After creating autolabels and using the Find Best Label Placement option, any manual movement of the labels causes the project file size to expand.
When graphics that were placed using Find Best Label Placement are moved, Arcview creates new siblings in the sibling list rather than overwriting the existing ones. Each time the labels are moved, the sibling list increases and so does the file size of the project.
theView = av.GetActiveDoc
theTheme = theView.GetActiveThemes.Get(0)
thecount = 0
'** gets the theme's graphicset
TheGraphics = theTheme.GetGraphics
for each agraphic in theGraphics
'** if the graphic is a label...
if (aGraphic.is(graphiclabel)) then
thesiblings = agraphic.getsiblings
'** select all the visible siblings...
for each s in thesiblings
thevis_count = theview.getgraphics.getselected.count
'** while the # of total siblings > the # of
'** visible siblings...
while (thevis_count < thesiblings.count)
'** remove any orphaned siblings...
for each i in ((thesiblings.count -1)..thevis_count)
thecount = thecount + 1
msgbox.info("Number of orphaned siblings removed for theme"
++ thetheme.getname+":" ++ thecount.asstring, "Done")