Updating Maplex Properties

2358
0
12-16-2013 10:08 AM
MichaelFaulcon1
New Contributor
I am looking for a way to set the label engine of a map document (Standard vs Maplex) programmatically using c#.
I have seen an older sample that uses VBA but the setting does is not persisted when I open the file using ArcMap.

http://edndoc.esri.com//arcobjects/9.2/CPP_VB6_VBA_VCPP_Doc/COM_Samples_Docs/Maplex/76a27701-4ae3-44...

This is what I am currently trying ...

IMaplexAnnotateMap maplex_annotate_map = new MaplexAnnotateMapClass();
map.AnnotationEngine = maplex_annotate_map as IAnnotateMap;

Any assistance would be appreciated.

Mike

** Update **

I am able to get the map to recognize the change in labeling engine.
The problem is that no changes made to the properties of my IMaplexOverposterLayerProperties instance are there when I open/utilize the Mxd.

Does anyone have any working examples for programmatically making changes to this interface?

In particular, I am trying to use "esriMaplexPolygonPlacementMethod.esriMaplexRepeatAlongBoundary".

I have created the desired rendering in Desktop and compared the values of the interfaces.
When I open the mxd in ArcMap, only default values are set.

Thanks
Mike
0 Kudos
0 Replies