featureset like(point,line,polygon) couldn't be repainted after changing any symbolgy propert

Dec 20, 2012 at 11:06 AM

when i tried to change the font symbol or color or change the icon or changing any property and press ok on the properties form for a featureset like point which drawn before on the map, the point disappeared from the map but still loaded in the legend.

 

how the point get redrawn again with the new updated properties?

 

Thanks

Dec 20, 2012 at 4:24 PM
Edited Dec 20, 2012 at 7:18 PM

you must add the follow lines in your project

 

Dim fLayerNodes As FeatureLayer 'Load your FeatureLayer
fLayerNodes.Features.SuspendEvents()
'
'
'
'Modify your FeatureLayer 
' 
'
fLayerNodes.DataSet.InitializeVertices()
fLayerNodes.AssignFastDrawnStates()
fLayerNodes.DataSet.UpdateExtent()
fLayerNodes.DataSet.Save()
fLayerNodes.DataSet.InvalidateVertices()
fLayerNodes.DataSet.Features.ResumeEvents()
for FeatureSet is the same....
Dim fLayerNodes As FeatureSet 'Load your FeatureSet
fLayerNodes.Features.SuspendEvents()
'
'
'
'Modify your FeatureSet
'
'
fLayerNodes.DataSet.UpdateExtent()
fLayerNodes.DataSet.Save()
fLayerNodes.Features.ResumeEvents()

You should learn how to use instructions..

fLayerNodes.Features.SuspendEvents()
'
'
'
'
fLayerNodes.Features.ResumeEvents()
Dec 20, 2012 at 6:15 PM

Thanks camiza for your instructions, i will give it a try

 

Thanks again

 

Ahmed