MGDwfDataSources Object | 147
Parameters
layerFilter – String (comma-delimited) representing the names of the layers
to extract from the DWF file. For example, if a DWF sheet conists of 4 layers
(blue, red, green, and yellow), and you only want to extract the red layer, you
pass the “red” as the parameter to setLayerFilter.
An empty layer filter string ("") applies all filter layers.
Returns
boolean – Specifies whether or not the layer filter is successfully set.
True – Indicates that the filter is successfully set.
False – Indicates that the filter is not set.
Error Codes
-1 Busy
See Also
getLayerFilter, LayerFilter
LayerFilter Property
Syntax
LayerFilter
Description
Gets or sets the layer filter that specifies which layers to extract from the spec-
ified Autodesk DWF file. If this property is modified successfully, it automat-
ically sets the rebuild flag of the layer to True. For more information on the
rebuild flag, see setRebuild in the Autodesk MapGuide Viewer API Help. You
can access the MapGuide Viewer API Help by clicking Autodesk MapGuide
6.5 ➤ Documentation ➤ Autodesk MapGuide Viewer API Help on the
Program menu.
Note The layer filter is a comma-delimited string.
For more information about using DWF files as data sources, see “Setting Up
a Data Source for DWF Files” on page 25.