ArcGIS Desktop

  • Documentation
  • Support

  • My Profile
  • Aide
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plateforme cartographique de votre organisation

ArcGIS Desktop

Un SIG professionnel complet

ArcGIS Enterprise

SIG dans votre entreprise

ArcGIS for Developers

Outils de création d'applications de localisation

ArcGIS Solutions

Modèles d'applications et de cartes gratuits pour votre secteur d'activité

ArcGIS Marketplace

Téléchargez des applications et des données pour votre organisation.

  • Documentation
  • Support
Esri
  • Se connecter
user
  • Mon profil
  • Déconnexion

ArcMap

  • Accueil
  • Commencer
  • Carte
  • Analyser
  • Gérer les données
  • Outils
  • Extensions

Equivalents Python des directives AML

Pour en savoir plus sur les équivalents Python des fonctions AML

ABREVIATIONS

Directive AML

<non prise en charge>

AMLPATH

Directive AML

<non applicable>

ARGS < var ... var >

Directive AML
import arcpy

arcpy.GetParameterAsText(var)

ATOOL

Directive AML

<non applicable>

CALL

Directive AML

<non applicable>

CODEPAGE ANSI

Directive AML
import locale
locale.setlocale(locale.LC_ALL, "")

COMMANDS

Directive AML
import arcpy
for tool in arcpy.ListTools():
    print tool

CONV_WATCH_TO_AML

Directive AML

<non applicable>

DALINES

Directive AML

<non applicable>

DATA

Directive AML

instructions exec ou eval

DATEFORMAT

Directive AML

Utilisez plusieurs fonctions dans le module de temps. Consultez la fonction AML DATE -DFMT pour plus d'informations.

DELVAR < variable ... variable >

Directive AML
del variable

DESCRIBE < geo_dataset >

Directive AML
import arcpy

desc = arcpy.Describe(geo_dataset)
print desc.type

DO &LIST

Directive AML
for <target> in <list>:
   <statements>

DO &REPEAT

Directive AML
while <expression>:
    <statements>

DO &TO &BY

Directive AML
for <target> in <list>:
    <statements>

DO &UNTIL < expression >

Directive AML
while not <expression>:
    <statements>

DO &WHILE < expression >

Directive AML
while <expression>:
    <statements>

DO

Directive AML

instructions for ou while

ECHO

Directive AML

<non applicable>

ENABLE

Directive AML

<non applicable>

ENCODE

Directive AML

<non applicable>

FLUSHPOINTS

Directive AML

<non applicable>

FORMAT

Directive AML

<non applicable>

FULLSCREEN

Directive AML

<non applicable>

GETLASTPOINT

Directive AML

<non applicable>

GETPOINT

Directive AML

<non applicable>

GOTO

Directive AML

<non applicable>

IACRETURN

Directive AML

<non applicable>

IF THEN ELSE

Directive AML
if <testcase1>:
    <statements1>
elif <testcase2>:
    <statements2>
else:
    <statements3>

LABEL

Directive AML

<non applicable>

LISTCHAR

Directive AML

<non applicable>

LISTFILES

Directive AML

<non applicable>

LISTGLOBAL

Directive AML

<non applicable>

LISTLOCAL

Directive AML

<non applicable>

LISTPROGRAM

Directive AML

<non applicable>

LISTVAR

Directive AML

<non applicable>

MENU

Directive AML

<non applicable>

MENUPATH

Directive AML

<non applicable>

MESSAGES

Directive AML

<non applicable>

PAUSE < prompt > &SECONDS < secs >

Directive AML
import time
print prompt
time.sleep(secs)

POPUP <file> <string_list>

Directive AML
from Tkinter import *
def PopupList(title, list):
    root = Tk()
    root.title(title)
    root.protocol("WM_DELETE_WINDOW", root.quit)
    frame = Frame(root)
    vScrollbar = Scrollbar(frame, orient=VERTICAL)
    hScrollbar = Scrollbar(frame, orient=HORIZONTAL)
    listbox = Listbox(frame, selectmode=SINGLE, xscrollcommand=hScrollbar.set, yscrollcommand=vScrollbar.set)
    vScrollbar.config(command=listbox.yview)
    vScrollbar.pack(side=RIGHT, fill=Y)
    hScrollbar.config(command=listbox.xview)
    hScrollbar.pack(side=BOTTOM, fill=Y)
    listbox.pack(side=LEFT, fill=BOTH, expand=1)
    frame.pack()
    for a in list:
        listbox.insert(END, a)
    root.mainloop()
    root.destroy()

file = sys.argv[1]
string_list = sys.argv[2] # semi-colon delimited string
sList = l.split(";")

f = open(file, 'r')
line = f.readline()
while len(line) <> 0:
    sList.append(line)
    line = f.readline()
PopupList(file, sList)

PT

Directive AML

<utilisez la méthode GetMessages pour extraire le temps d'exécution d'un outil>

PUSHPOINT

Directive AML

<utilisez l'objet géométrie et les curseurs pour créer et modifier des entités>

RETURN

Directive AML

<non applicable>

ROUTINE

Directive AML

<non applicable>

RUN

Directive AML

<non applicable>

RUNWATCH

Directive AML

<non applicable>

SELECT

Directive AML

<non applicable>

SELCHAR

Directive AML

<non applicable>

SELVAR

Directive AML

<non applicable>

SEVERITY

Directive AML

<non applicable>

SHOW

Directive AML

<non applicable>

STATION

Directive AML

<non applicable>

STOP

Directive AML

<non applicable>

SYSTEM < command >

Directive AML
import os
os.system(command)

TB

Directive AML

<non applicable>

TERMINAL

Directive AML

<non applicable>

TEST

Directive AML

<non applicable>

THREAD

Directive AML

<non applicable>

TRANSLATE

Directive AML

<non applicable>

TTY

Directive AML

<non applicable>

TYPE < message >

Directive AML
print message

USAGE < command >

Directive AML
import arcpy
arcpy.Usage(command)

WATCH

Directive AML

<non applicable>

WORKSPACE < path >

Directive AML
from arcpy import env
arcpy.env.workspace = path

Rubriques connexes

  • Utilisation d'AML avec des outils de script
  • Equivalents Python des fonctions AML

ArcGIS Desktop

  • Accueil
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

A propos d'Esri

  • A propos de la société
  • Carrières
  • Blog des initiés
  • Conférence des utilisateurs
  • Sommet des développeurs
Esri
Donnez-nous votre avis.
Copyright © 2018 Esri. | Confidentialité | Légal