laptop and a wrench

Error

Text ("B" "C") turns yellow with certain tactical graphic symbols (Chemical Containment Area: GFMPNC--------X; Biological Containment Area symbol: GFMPNB--------X) when UseAffiliation is set to true.

Última publicación: August 31, 2014 ArcGIS Engine
Número de ID del error NIM061176
EnviadoSeptember 16, 2010
Última modificaciónJune 5, 2024
Relacionado conArcGIS Engine
Versión encontrada9.3.1
Lenguaje del programaC#
Sistema operativoWindows OS
Versión de sistema operativoXP
EstadoNon-Reproducible

Información adicional

No Public Explanation

Solución alternativa

Refer to the application attached if necessary.Workaround 1: private ITacticalGraphicStyle getCustomTGStyle() { ITacticalGraphicStyle tacticalGraphicStyle = new TacticalGraphicStyleClass(); tacticalGraphicStyle.StyleOption = moleTGStyleEnum.moleTGStyleText; //If custom colors are also desired, // Set / uncomment: // //tacticalGraphicStyle.StyleOption = moleTGStyleEnum.moleTGStyleAlternates; //tacticalGraphicStyle.FriendlyColor = Converter.ToRGBColor(System.Drawing.Color.FromArgb(0, 100, 255)) as IColor; //tacticalGraphicStyle.HostileColor = Converter.ToRGBColor(System.Drawing.Color.FromArgb(255, 50, 50)) as IColor; //tacticalGraphicStyle.NeutralColor = Converter.ToRGBColor(System.Drawing.Color.FromArgb(0, 100, 30)) as IColor; //tacticalGraphicStyle.UnknownColor = Converter.ToRGBColor(System.Drawing.Color.FromArgb(255, 255, 10)) as IColor; tacticalGraphicStyle.UseFonts = true; //Set font TextSymbol textSymbol = new TextSymbolClass(); textSymbol.Color = Converter.ToRGBColor(Color.Black) as IColor; stdole.IFontDisp f1 = new stdole.StdFontClass() as stdole.IFontDisp; <a href="http://f1.Name" target="_blank">f1.Name</a> = "Arial"; f1.Size = (decimal)12; f1.Bold = true; textSymbol.Font = f1; textSymbol.Size = 12; tacticalGraphicStyle.TextSymbol = textSymbol; return tacticalGraphicStyle; }In the create_graphic() function, add: (the_renderer as ITacticalGraphicRenderer2).Style = getCustomTGStyle();Wordaround 2:In the create_graphic() function, add: ICacheRenderer tgRenderer = new TacticalGraphic2525BRendererClass(); ICacheRendererCollection pCRCPoints = new TacticalGraphicLayerClass(); pCRCPoints.AddRenderer(ref tgRenderer, 0); the_renderer.Style = ((ITacticalGraphicRenderer2)pCRCPoints.Renderer(0)).Style;

Pasos para reproducir

ID del error: NIM061176

Software:

  • ArcGIS Engine

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga