Autodesk 15606-011408-9300 Developer Guide - Page 169
DWG Filtering Application showProperties Example Code, var mapLayer = map.getMapLayerlayerName
UPC - 606121429548
View all Autodesk 15606-011408-9300 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 169 highlights
DWG Filtering Application showProperties Example Code (continued) parent.outputframe.document.write (""); parent.outputframe.document.write ("Map Feature"); parent.outputframe.document.write (""); ... parent.outputframe.document.write (""); // Get the map and selected features var map = getMap(); var sel = map.getSelection(); var mapObjects = sel.getMapObjectsEx(null); // Write the feature(s) properties to the table for (var i = 0; i < mapObjects.size(); i++) { parent.outputframe.document.write (""); parent.outputframe.document.write (""); parent.outputframe.document.write (mapObjects.item(i).getName()); parent.outputframe.document.write (""); parent.outputframe.document.write (""); parent.outputframe.document.write (mapObjects.item(i).getKey()); parent.outputframe.document.write (""); // Get the layer name for current map feature var layerName = mapObjects.item(i).getMapLayer().getName(); parent.outputframe.document.write (""); parent.outputframe.document.write (layerName); parent.outputframe.document.write (""); // Get the map layer and its DWG data source object var mapLayer = map.getMapLayer(layerName); var mapLayerSetup = mapLayer.getLayerSetup(); var dwgMapLayerDataSource = mapLayerSetup.getDwgDataSources(); parent.outputframe.document.write (""); parent.outputframe.document.write (dwgMapLayerDataSource.getDataSource()); parent.outputframe.document.write (""); parent.outputframe.document.write (""); parent.outputframe.document.write (dwgMapLayerDataSource.getDwg()); parent.outputframe.document.write (""); parent.outputframe.document.write (""); parent.outputframe.document.write (dwgMapLayerDataSource.getKeyColumn()); parent.outputframe.document.write (""); parent.outputframe.document.write (">"); parent.outputframe.document.write (dwgMapLayerDataSource.getKeyColumnType()); parent.outputframe.document.write (""); parent.outputframe.document.write (""); parent.outputframe.document.write (dwgMapLayerDataSource.getKeyTable()); parent.outputframe.document.write (""); parent.outputframe.document.write (""); // Get the DWG layer filters used to display the current map view. // Indicate if no filter was applied. DWG Filtering Application | 169