Select to view content in your preferred language

ArcPad 10: Changing Layer symbology with VBScript

666
2
09-08-2011 09:55 AM
PaulBillock
Deactivated User
I have a layer that I would like to be able to adjust the size of the symbology to better reflect the real world size of a point. So basically have them measured in map dimensions instead of point sizes. 

I see a lot of symbology discussion in the help documents but they all seem to be for use with extensions and I'm not sure how it would be altered for use in VBscript. 

If push comes to shove I could possibly have multiple copies of the .apl and replace the one with the size I want to use with the current one, but It seems so clunky I haven't wanted to try it.

I would expect it to be something simple like this:

Sub IncreaseSize

   Maps.Layers("Logging").Properties("SymbolSize") = Maps.Layers("Logging").Properties("SymbolSize") + 1

End Sub

Has anyone been able to do something like this.

Thanks,
Paul
Tags (3)
0 Kudos
2 Replies
RolfBroch
Frequent Contributor
I may misunderstand you but couldn't you do this using reference scale for the symbol size?

Rolf
0 Kudos
PaulBillock
Deactivated User
Hi Rolf,

Yes this would set me in the right direction.  I see the Symbol.ReferenceScale property which would do the trick, but I'm having trouble attaching to the symbol object that is linked to the Layer.  At least, I am assuming that there is a Symbol object attached to the layer.  That is where I have not been finding an answer in the documentation.  I'm guessing it is there and I'm just looking in the wrong place.

Another aspect is I have four different pieces of equipment which use different symbol size, so I want to be able to have the operator select the equipment and then programatically make sure their symbol is the correct size and then set the ReferenceScale so it stays that way as they change scales.
0 Kudos