<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Polygon line thickness issue when handling symbology with Java Arcobjects in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/polygon-line-thickness-issue-when-handling/m-p/442108#M12005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo Peter,&lt;/P&gt;&lt;P&gt;I guess that there's a reference scale defined in the data frame of your template so that your line symbol is scaled. Open the properties-dialog of your data frame, set the reference scale to &amp;lt;none&amp;gt; (I hope the value is defined like that - I just have a german version) and check the appearance of your outline&lt;/P&gt;&lt;P&gt;Frank&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Aug 2014 07:49:16 GMT</pubDate>
    <dc:creator>FrankHellwich1</dc:creator>
    <dc:date>2014-08-06T07:49:16Z</dc:date>
    <item>
      <title>Polygon line thickness issue when handling symbology with Java Arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/polygon-line-thickness-issue-when-handling/m-p/442107#M12004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using ArcGIS 10.0 and I am building a Java custom tool (for a toolbox) using the java ArcObjects API.&amp;nbsp; In my tool, I am taking in the location of an MXD file and the location of a file GDB.&amp;nbsp; I am taking the features from the file GDB and creating a layer within the MXD.&amp;nbsp; No problem with any of that.&amp;nbsp; What I also am doing is updating the layer's symbology to give a specific fill color to the features (polygons) when added to the MXD map document.&amp;nbsp; No problem with that either.&amp;nbsp; The problem that I am running into deals with the polyon line thickness.&amp;nbsp; I give a black border line color but I would like the thickness of the line to be some value bigger than 1.&amp;nbsp; This is the code that I am using in relation to the feature layer's symbology:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SimpleRenderer sr = (SimpleRenderer) featurelayer.getRenderer();&lt;/P&gt;&lt;P&gt;ISymbol sym = sr.getSymbol();&lt;/P&gt;&lt;P&gt;SimpleFillSymbol sfs = (SimpleFillsymbol) sym;&lt;/P&gt;&lt;P&gt;sfs.setColor(rgb);&lt;/P&gt;&lt;P&gt;ILineSymbol ls = new SimpleLineSymbol();&lt;/P&gt;&lt;P&gt;ls.setWidth(5);&lt;/P&gt;&lt;P&gt;ls.setColor(blackColor);&lt;/P&gt;&lt;P&gt;sfs.setOutline(ls);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the oddity.&amp;nbsp; When the MXD file is just an empty MXD, the features added to the map document have a blcak line with a width of 5, which is just what I wanted. If, however, the MXD is a template (which contains things like a North arrow, legend, scale, etc), the line thickness for the features stays at 1, although&amp;nbsp; the outline in the legend of the template is 5 and the outline in the ArcMap's TOC for that layer is also 5.&amp;nbsp; I am not sure why feature polygon outline is not changed.&amp;nbsp; Any clues as to why this is happening?&amp;nbsp; Is there some template property I need to set?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any thoughts - Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 19:45:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/polygon-line-thickness-issue-when-handling/m-p/442107#M12004</guid>
      <dc:creator>PeterLen</dc:creator>
      <dc:date>2014-08-05T19:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon line thickness issue when handling symbology with Java Arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/polygon-line-thickness-issue-when-handling/m-p/442108#M12005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo Peter,&lt;/P&gt;&lt;P&gt;I guess that there's a reference scale defined in the data frame of your template so that your line symbol is scaled. Open the properties-dialog of your data frame, set the reference scale to &amp;lt;none&amp;gt; (I hope the value is defined like that - I just have a german version) and check the appearance of your outline&lt;/P&gt;&lt;P&gt;Frank&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 07:49:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/polygon-line-thickness-issue-when-handling/m-p/442108#M12005</guid>
      <dc:creator>FrankHellwich1</dc:creator>
      <dc:date>2014-08-06T07:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon line thickness issue when handling symbology with Java Arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/polygon-line-thickness-issue-when-handling/m-p/442109#M12006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Frank - Thanks for the response.&amp;nbsp; Yes, if I set the reference scale to None then I do get the line thickness.&amp;nbsp; Excellent find.&amp;nbsp; The scale had been set to 1:500,000 on the template but don't know if that was done for a reason.&amp;nbsp; I will have to do some checking to see if changing the scale to None will have some adverse effect.&amp;nbsp; Thanks again - Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 12:46:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/polygon-line-thickness-issue-when-handling/m-p/442109#M12006</guid>
      <dc:creator>PeterLen</dc:creator>
      <dc:date>2014-08-06T12:46:42Z</dc:date>
    </item>
  </channel>
</rss>

