<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Keith,<br>
<br>
Yes this is possible. You need to modify the Layer Definition XML it
cannot be done by manipulating the MgLayer object. The general approach
is:<br>
<br>
1. Get the LayerDefintion ResourceIdentifier from
MgLayer.GetLayerDefinition.<br>
2. Read the XML by calling MgResourceService::GetResourceContent.<br>
3. Load the XML document into the W3C DOM objects (language specific).<br>
4. Manipulate the XML object model.<br>
5. Save the XML to your session using MgResourceService::SetResource.<br>
6. Replace the MgLayer in the Map with a new one that points to your
new Layer Definition. <br>
<br>
Hope this helps,<br>
Bob<br>
<br>
Campbell, Keith A wrote:
<blockquote
cite="mid2D5D8AC034A54041A6B2AE1C9148CC310449304C@SGBBMA2102.wsatkins.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator" content="MS Exchange Server version 6.5.7638.1">
<title>Change filter or theme conditions through API</title>
<!-- Converted from text/rtf format -->
<p><font face="Arial" size="2">Presumably it is possible to change
conditions for themes or filters for layers through the API? I can get
the layer, but I can't see any methods that give access to the theme or
filter set-up - just things like the legend label, visibility, etc.</font></p>
<br>
<br>
<p align="center"><font style="background-color: rgb(255, 255, 255);"
color="#ff0000"><strong><font color="#000000">This email and any
attached files are confidential and copyright protected. If you are not
the addressee, any dissemination of this communication is strictly
prohibited. Unless otherwise expressly agreed in writing, nothing
stated in this communication shall be legally binding</font>.</strong></font></p>
</blockquote>
<br>
</body>
</html>