|
Gets a layer from a particular section of a DWF.
.NET Syntax
virtual MgByteReader GetLayer(MgResourceIdentifier resource, string sectionName, string layerName);
|
Java Syntax
virtual MgByteReader GetLayer(MgResourceIdentifier resource, String sectionName, String layerName);
|
PHP Syntax
virtual MgByteReader GetLayer(MgResourceIdentifier resource, string sectionName, string layerName);
|
- Parameters:
-
| resource | (MgResourceIdentifier) Resource identifier specifying the drawing source which has the DWF resource data. |
| sectionName | (String/string) Name of the section. Section names can be retrieved via EnumerateSections or from the the manifest.xml file file via DescribeDrawing. |
| layerName | (String/string) Name of the layer. Layer names can can be retrieved via EnumerateLayers. |
- Returns:
- Returns DWF stream containing the specified layer in the specified section.
Example (PHP)
$drawing_ID = new MgResourceIdentifier('Library://DrawingService/Floorplan.DrawingSource');
$sectionName = 'com.autodesk.dwf.ePlot_9E2723744244DB8C44482263E654F764';
$layerName = 'YELLOW';
$byteReader = $drawingService->GetLayer($drawing_ID, $sectionName, $layerName);
- Exceptions:
-
- Note:
- See MgResourceService for additional exceptions.
|