How to batch add symbol markers to a style
I would like to batch add symbol markers to a style and view different symbols based on a field name on a map. I have located this article http://edndoc.esri.com/arcobjects/8.3/default.asp?URL=/arcobjects/8.3/samples/arcmap/styles/make%20style/makestyle.htm
and found it somewhat helpful to create a batch style file. Although there is limited documentation on the field values and what type of image should be placed in the reference folder. Can you please help me find more documentation on how to add these markers?
Mapping Center Answer:
Long ago I wrote that (someone else cleaned it up and posted it on EDN). As published, it was intended to serve as a library of examples for how to create different kinds of symbols in ArcObjects (VB).
Its original purpose was to build the style files we shipped with ArcGIS. The makeStyle.frm loads the database and calls the functions that build the style.
The images in the reference folder should be either .BMP or .EMF files (as explained in the last paragraph of the comments in the StyleBldr.frm file. See the C:\Program Files\ArcGIS\Styles\Pictures folder for examples (these are the files we used).
The logic in the MakeMarkers() subroutine calls the eBMPMarkerSymbol() function when the database indicates that a multi-layer MarkerSymbol is of the type that is based on a .BMP file. The only other function that is called is the eColor() function to set the transparency color.
The sample is ancient, and probably will require a bit of updating as our coding practices generally require that you qualify your objects with the proper library.
Also, if you look at the tables in the sample.mdb in Microsoft Access, but in design view, you'll see the remarks we made about how to use those fields.
If you would like to post a comment, please login.