This object implements methods and properties to support Autodesk
drawing (DWG) data sources. Autodesk DWG is a worldwide standard drawing file
format across vertical industries, such as architectural design, and facilities
planning and maintenance.
For an example that demonstrates filtering DWG data sources, refer to the
Filter DWG Layers example.
Understanding Layers in Autodesk MapGuide
When working with Autodesk DWG data especially, it is important to understand
the difference between Autodesk DWG layers, Autodesk MapGuide map layers,
and Autodesk DWG map layers. These are not the same and are defined
as follows:
- Autodesk DWG layer
- A single layer within an Autodesk drawing file (Autodesk DWG).
- Autodesk MapGuide map layer
- A single map layer defined within a MapGuide map window file (MWF). There
can be several types of MapGuide map layers, including ones sourced from SDF,
SHP, DWG, and so on.
- Autodesk DWG map layer
- A single Autodesk MapGuide map layer that is sourced from an Autodesk DWG
or Autodesk Map project drawing.
Changing Map Layer Data Source Properties
When using Viewer API methods that set Autodesk MapGuide map layer data source
properties, including those for Autodesk DWG data, keep in mind that the changes
you make can affect the validity of other data source properties for that layer.
For example, if you changed the DWG data source using the setDataSource
method (or the DataSource property),
this change could make existing values for other properties (such as the Autodesk
DWG file) invalid since they might not exist in the new data source.
Methods
|
getDataSource
|
Gets the DWG data source name that establishes
a connection between Autodesk MapGuide Server and the data provider.
|
|
getDwg
|
Gets the Autodesk DWG file name or Autodesk
Map project drawing for the Autodesk DWG layer.
|
|
getKeyColumn
|
Gets the name of the column that contains the
primary key for each map feature on the DWG layer.
|
|
getKeyColumnType
|
Gets the DWG key column data type.
|
|
getKeyTable
|
Gets the name of the DWG key table to use as
primary keys for either map feature properties, external database links,
or object data in the Autodesk DWG.
|
|
getLayerFilter
|
Gets the layer filter, which specifies which
layers to extract from the specified Autodesk DWG file or Autodesk Map
project drawing.
|
|
getNameColumn
|
Gets the name of the column that contains the
name for each map feature.
|
|
getNameTable
|
Gets the name of the DWG table for MapTips
about map feature properties, external database links, or object data
in the Autodesk DWG.
|
|
getUrlColumn
|
Gets the name of the column that contains the
URL associated with each map feature.
|
|
getUrlTable
|
Gets the name of the DWG URL table containing
URLs to which Autodesk DWG map features are linked.
|
|
setDataSource
|
Sets the DWG data source name that establishes
a connection between Autodesk MapGuide Server and the data provider.
|
|
setDwg
|
Sets the Autodesk DWG file name or Autodesk
Map project drawing for the Autodesk DWG layer.
|
|
setKeyColumn
|
Sets the name of the column that contains the
primary key for each map feature on the DWG layer.
|
|
setKeyColumnType
|
Sets the DWG key column data type.
|
|
setKeyTable
|
Sets the name of the DWG key table to use as
primary keys for either feature properties, external database links, or
object data in the Autodesk DWG.
|
|
setLayerFilter
|
Sets the layer filter, which specifies which
layers to extract from the specified Autodesk DWG or project file.
|
|
setNameColumn
|
Sets the name of the column that contains the
name for each map feature.
|
|
setNameTable
|
Sets the name of the DWG table for MapTips
about feature properties, external database links, or object data in the
Autodesk DWG.
|
|
setUrlColumn
|
Sets the name of the column that contains the
URL associated with each map feature.
|
|
setUrlTable
|
Sets the name of the DWG URL table containing
URLs to which Autodesk DWG map features are linked.
|
Properties
Note that direct access to properties is only available in the
Autodesk MapGuide ActiveX Control API. In the Autodesk MapGuide
Plug-In and Java Edition APIs, get/set methods provide access to
an object's properties. For compatibility, the ActiveX Control API supports
the same get/set methods as the Autodesk MapGuide Viewer Plug-In and the Autodesk MapGuide Viewer, Java Edition.
|
DataSource
|
Gets or sets the DWG data source name that
establishes a connection between Autodesk MapGuide Server and the data
provider.
|
|
Dwg
|
Gets or sets the Autodesk DWG file name or
project file for the Autodesk DWG layer.
|
|
KeyColumn
|
Gets or sets the name of the column that contains
the primary key for each map feature on the DWG layer.
|
|
KeyColumnType
|
Gets or sets the DWG key column data type.
|
|
KeyTable
|
Gets or sets the name of the DWG key table
to use as primary keys for either feature properties, external database
links, or object data in the Autodesk DWG.
|
|
LayerFilter
|
Gets or sets the layer filter, which specifies
which layers to extract from the specified Autodesk DWG or project file.
|
|
NameColumn
|
Gets or sets the name of the column that contains
the name for each map feature.
|
|
NameTable
|
Gets or sets the name of the DWG table for
MapTips about feature properties, external database links, or object data
in the Autodesk DWG.
|
|
UrlColumn
|
Gets or sets the name of the column that contains
the URL associated with each map feature.
|
|
UrlTable
|
Gets or sets the name of the DWG URL table
containing URLs to which Autodesk DWG map features are linked.
|