HOW TO
The script in this article gets the Symbol object associated with the GraphicText object, and hooks the symbol to the display with the HookUpSymbol request.
Code:
'-- Turn scaling on for selected graphics
'-- If use this on auto-labels created with the Find Best method,
'-- select one of them instead of all, as this script may ruin your labels.
theView = av.GetActiveDoc
thingsToStartScaling = theView.GetGraphics.GetSelected
for each g in thingsToStartScaling
if (g.Is(graphicText)) then
theView.GetDisplay.HookUpSymbol(g.GetSymbol)
elseif (g.Is(GraphicShape)) then
if (g.GetShape.Is(polygon).Not) then
theView.GetDisplay.HookUpSymbol(g.GetSymbol)
end
end
end
Article ID:000004074
Get help from ArcGIS experts
Download the Esri Support App