TransWikia.com

ArcGIS Pro 2.4 .NET SDK: calling templatized class instance methods from Python?

Geographic Information Systems Asked by Alan Stewart on November 22, 2020

I’m trying to do some learning with the ArcGIS Pro 2.4 .NET SDK in the Pro application’s Python window:

import clr
import ArcGIS.Desktop.Core as ADC

for i in ADC.Project.Current.Items:
    print(i)

This works. Does anyone know the Python syntax for calling methods like Project.GetItems<T>(), if it’s even possible?

One Answer

ADC.Project.Current.GetItems[ArcGIS.Dekstop.Layouts.LayoutProjectItem]() gets a list of LayoutProjectItems.

Answered by Alan Stewart on November 22, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP