MGDwgDataSources.getUrlTable   Go to object model Go to parent topic Go to previous topic Go to next topic

Syntax

string getUrlTable() 

Description

Gets the name of the DWG URL table containing URLs to which Autodesk DWG map features are linked.

URLs can link to external databases, Web sites, and files via HTTP, FTP, or file protocols.

This method is not affected by the busy state.

Parameters

none

Returns

String - The name of the URL table.

Error Codes

none

Example

This code is designed to work with the 1stfloorplanEx6.mwf file used by the Filter DWG Layers example:

function getProperties()
{
   // Get the map and selected features
   var map = getMap();
   var mapSel = map.getSelection();
   // Use the single map layer Floor Plan
   var mapLayer = map.getMapLayer("Floor Plan");
   // Get DWG data source object for the layer
   var mapLayerSetup = mapLayer.getLayerSetup();
   var dwgMapLayerDataSource = mapLayerSetup.getDwgDataSources();
   var urlTable = dwgMapLayerDataSource.getUrlTable();
}

See Also

setUrlTable, UrlTable