Extract_To_PDF

Titleā€ƒ Extract_To_PDF

Summary

Extract data to PDF


Usage

This tool will not function correctly unless it is edited and the ftp and email server are configured. To configure the ftp and email server settings, you will have to copy this model to your own custom toolbox before editing the model.

  • Right-click a copied version of this model and select Edit. ModelBuilder will open and the model will appear similar to the illustration below.

  • Double-click the Upload To FTP model element to open the tool dialog box.

  • Enter values for FTP Server, User, and Password.

  • Click OK.

  • Double-click the Send Email With Link model element to open the tool dialog box.

  • Enter values for From, Subject, Text, and SMTP Email Server.

  • Click OK.

  • You can leave the parameter Layers to Clip and Custom Spatial Reference Folder blank unless you want to provide specific layers or customized spatial reference folder. Leave the parameter To and Sent blank. The parameter Sent is a derived output of Boolean data type, which means it will not show as a parameter when you use the tool. It will set the value automatically when the file is uploaded and the link is sent to the e-mail address you provide.

  • Save and exit the model.

  • Run the model tool in ArcMap containing the layers you want to provide to create a result, then publish the result as a geoprocessing service.

The drop-down menu for the Feature Format and Raster Format parameters contains a list of default formats. These default formats are set from the Value List filter on the Parameters tab of the model Properties.

You can add, modify, or remove the list of formats for either the Feature Format parameter or the Raster Format parameter. You will have to copy this model to your own custom toolbox before making any changes.

  • Right-click a copied version of this tool and select Properties.

  • In the properties dialog box that appears, click the Parameters tab.

  • Find the parameter of interest in the table of parameters. On the right side of the table click to bring up its value list. The set of default formats should be listed.

  • Add, modify, or remove formats from the list as desired. The string you provide needs to be delimited as: Name of format - Short Name - Extension. The hyphens are required and there must be one space before and after the hyphen.

  • Click OK to apply the changes and exit.

Internally, the Extract Data Task tool uses the Export to CAD tool to convert data to the .dgn, .dwg, and .dxf CAD formats. Each of these formats is in the default list and exports to the latest version of that file type. To change the version, edit the "Short Name" in the values list. For example, to use DXF R2005 rather than DXF R2007, change the Short Name to DXF_R2005, do the following:

  • Change the string from Autodesk AutoCAD - DXF_R2007 - .dxf to AutoCAD - DXF_R2005 - .dxf

The list of short names can be found in the Export to CAD tool.

By default, all supported raster formats are in the drop-down list of raster formats.

There are limitations to some of the formats such that the software will not be able to convert to the format specified. For more details on the limitations of the various raster formats, see the help topic Supported raster dataset file formats.


Syntax

Parameter Explanation
ClipPolygons

this is the area that needs to be clipped

Layers_to_Clip

Layers to Clip

To

The email address of the recipient.

This tool will be able to email to this address if and only if the SMTP server has been configured within this model.

Code Samples


                    

Tags

Credits

Use limitations