CopyParameter

Cette documentation ArcGIS 2.6 a été archivée et n’est plus mise à jour. Certains contenus et liens peuvent être obsolètes. Consultez la dernière version de la documentation.

Résumé

Copies the specified parameter by index to another parameter in the script tool. The specified parameters must be of the same data type.

Syntaxe

CopyParameter (from_param, to_param)
ParamètreExplicationType de données
from_param

The index position of the parameter to be copied.

Integer
to_param

The index position of the parameter that will be copied to.

Integer

Exemple de code

CopyParameter example

Copy input parameter to output parameter.

import arcpy

# Copy the script tool's specified input parameter object
#  to the script tool's specified output parameter.
arcpy.CopyParameter(0, 1)

Rubriques connexes