You can do this by creating a temporary feature for the template then get its symbol from the renderer. If the symbol is null then you have the the 'symbol will not draw' case. //get the template symbol
IFeatureClass featClass = featLayer.FeatureClass;
IFeatureBuffer featBuffer = featClass.CreateFeatureBuffer();
IFeature feature = featBuffer as IFeature;
editTemplate.SetDefaultValues(feature);
IGeoFeatureLayer geoFeatLayer = featLayer as IGeoFeatureLayer;
ISymbol symbol = geoFeatLayer.Renderer.get_SymbolByFeature(feature); I tried to run this code on the Python but it didn't run. I also have the "Drawing Symbol will not draw" error message. Would appreciate your response. Thanks.
... View more