Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Pythonスクリプトで自動化された1000個のマップを開き、1つずつエクスポートしようとしています。
手作業ではなく、Pythonスクリプトを使用して目次を開く方法を教えてもらえますか。また、手動で行うのではなく、Pythonで可視性を変更するにはどうすればよいですか。
歓声を上げる
パート 1 は以下で完了します。
addLayer = arcpy.mapping.Layer(r"C:/example.lyr")
パート 2 見たいものだけを開き、他のものを削除します。
arcpy.Delete_management(layername)
注: レイヤー名は、lyr ファイル名と同じである必要はありません! TOC に出現する名前です。