tomas1

Polygon Symbol Not Displaying Outline

Discussion created by tomas1 on Apr 13, 2018
Latest reply on Apr 13, 2018 by tomas1

I have successfully created polygon symbols and have placed them on a layout.  However, when I place the symbol onto a layout, the symbol has no outline, though I am assigning it when I create the symbol. It  seems pretty straight forward, but perhaps I am missing something.

 

Here is a code fragment creating the symbol and theoretically assigning the outline bit:

 

QueuedTask.Run(() =>

{

   CIMHSVColor ClassColor = CIMHSVColor.FromXml(pLegClass.ColorXML);

 

   CIMStroke outline = SymbolFactory.Instance.ConstructStroke(ColorFactory.Instance.BlackRGB, 2, SimpleLineStyle.Solid);

   CIMPolygonSymbol pPolygonSymbol = SymbolFactory.Instance.ConstructPolygonSymbol(ClassColor, SimpleFillStyle.Solid, outline);

);

I am able to place the symbol on the layout, but no outline appears.  I have tried adjusting the width when creating the CIMStroke outline, but it has no effect.  The following image is an example of what I am seeing.

 

PolygonSymbol missing border

Any insight is appreciated.

Outcomes