<?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: How to change a layer's symbology using VBscript in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/how-to-change-a-layer-s-symbology-using-vbscript/m-p/379449#M2774</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Thai,&amp;nbsp; I figured it had something to do with that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do find it strange though, that I can't manipulate the symbology of a layer directly through the Map object.&amp;nbsp; I guess what I'll do is create a bunch of dummy apl's and keep them stored on the devices, then whenever I need one I'll just copy and rename it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 May 2013 01:25:06 GMT</pubDate>
    <dc:creator>DanikBourdeau</dc:creator>
    <dc:date>2013-05-17T01:25:06Z</dc:date>
    <item>
      <title>How to change a layer's symbology using VBscript</title>
      <link>https://community.esri.com/t5/arcpad-questions/how-to-change-a-layer-s-symbology-using-vbscript/m-p/379447#M2772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can't seem to figure out how to manipulate a layers symbology using VBscript.&amp;nbsp; In my code below I'm creating a new polyline shapefile and then adding it to the map (along with a new feature).&amp;nbsp; I want to set a specific colour for this layer, how would I go about doing so?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Set TrackRS = CreateAppObject("recordset") lnShape = Preferences.Properties("DataPath") &amp;amp; "\TracksShape\TrackLog" &amp;amp; TrackDte &amp;amp; ".shp" TrackRS.Create lnShape, 3, Application.Map.CoordinateSystem TrackRS.Fields.Append "Length", 5&amp;nbsp; Set TrackShape = Map.AddLayerFromFile(lnShape) If TrackShape Is Nothing then exit sub TrackShape.Editable = true TrackShape.Records.AddNew ln TrackShape.Records.Update&amp;nbsp; Map.Extent = TrackShape.Extent Map.Refresh True&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 03:42:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/how-to-change-a-layer-s-symbology-using-vbscript/m-p/379447#M2772</guid>
      <dc:creator>DanikBourdeau</dc:creator>
      <dc:date>2013-05-16T03:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a layer's symbology using VBscript</title>
      <link>https://community.esri.com/t5/arcpad-questions/how-to-change-a-layer-s-symbology-using-vbscript/m-p/379448#M2773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks like you need to create a layer definition file (apl), name it to the same name with the shapefile, and write it to the same location with the shapefile.&amp;nbsp; It's just a simple XML file like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;ArcPad&amp;gt;&amp;nbsp; &amp;lt;LAYER&amp;gt; &amp;nbsp; &amp;lt;SYMBOLOGY&amp;gt; &amp;nbsp;&amp;nbsp; &amp;lt;SIMPLERENDERER&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SIMPLELINESYMBOL width='1' color='blue'/&amp;gt; &amp;nbsp;&amp;nbsp; &amp;lt;/SIMPLERENDERER&amp;gt; &amp;nbsp; &amp;lt;/SYMBOLOGY&amp;gt; &amp;nbsp; &amp;lt;SYSTEMOBJECTS/&amp;gt;&amp;nbsp; &amp;lt;/LAYER&amp;gt; &amp;lt;/ArcPad&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to create this XML file before adding the layer to your map (Set TrackShape = Map.AddLayerFromFile(lnShape))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 19:28:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/how-to-change-a-layer-s-symbology-using-vbscript/m-p/379448#M2773</guid>
      <dc:creator>ThaiTruong</dc:creator>
      <dc:date>2013-05-16T19:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a layer's symbology using VBscript</title>
      <link>https://community.esri.com/t5/arcpad-questions/how-to-change-a-layer-s-symbology-using-vbscript/m-p/379449#M2774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Thai,&amp;nbsp; I figured it had something to do with that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do find it strange though, that I can't manipulate the symbology of a layer directly through the Map object.&amp;nbsp; I guess what I'll do is create a bunch of dummy apl's and keep them stored on the devices, then whenever I need one I'll just copy and rename it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 01:25:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/how-to-change-a-layer-s-symbology-using-vbscript/m-p/379449#M2774</guid>
      <dc:creator>DanikBourdeau</dc:creator>
      <dc:date>2013-05-17T01:25:06Z</dc:date>
    </item>
  </channel>
</rss>

