Skip navigation
All Places >

python snippets

Log in to follow, share, and participate in this socialgroup.

Recent Activity

behClevest
I am trying to run this ArcPy example from ESRI TraceGeometricNetwork example 2    # Import arcpy module import arcpy # Local variables: Water_Net = "C:/GeometricNetworks/Montgomery.gdb/Water/Water_Net" Flags = "C:/GeometricNetworks/Montgomery.gdb/Water/Flags" Water_Net_2 = "Water_Net" # Process: Trace Geometric Network… (Show more)
in python snippets
behClevest
I am running Kivy and Python properly when it is only Kivy as import kivy kivy.require('1.0.6') from kivy.app import App from kivy.uix.label import Labelbut when I add ArcGIS Python library called ArcPy like below import arcpy import kivy kivy.require('1.0.6') from kivy.app import App from kivy.uix.label import LabelI am getting following… (Show more)
in python snippets
behClevest
I have a Transformer feature in a Geometric Network which has a field called `PhaseDesig` and it has five types of unique attributes [0, 1, 2,4,7] like this image   I used this code to generate Geometric Network   arcpy.CreateGeometricNetwork_management(Electric, "Electric_Net", "Power SIMPLE_JUNCTION YES;\ Fuses SIMPLE_JUNCTION NO; \… (Show more)
in python snippets
mailsivaprakash
Hi python snippets arcgis map clip_analysis tool is not working properly for Annotation layer provided the output in another projection system. Anyone else encountered this.   To recreate the issue:   Open python window   set outcoordinatesystem set to another. Try out clip_analysis for annotation layer. The output is not as expected. The… (Show more)
in python snippets
behClevest
Using ESRI Tutorial Data for Utility Network Tracing (Montgomery.gdb) which is a File Geodatabase and following Arcpy script  I am not getting any erro on running the script to find the path between two points in Flag (point) layer # Import arcpy module import arcpy # Local variables: gnVersionFDS_Net = "E:/Montgomery.gdb/Water/Water_Net" Flags =… (Show more)
in python snippets
DemersM
Hi,   I am looking for a way to create an Historical Marker programmatically with arcpy.   The archiving is enabled on a dataset in Oracle SDE.   I think, it's related with arcpy Version Toolset, but I can't find the documentation about this.   Thank you,   Maxime
dogdaynoon
I am try to iterate over 3 feature datasets in 1 gdb and update a field value in all of the feature classes to "No". ArcMap 10.4.1 Standard license. Windows 7 Here is my code.  import arcpy arcpy.env.workspace = r"PATH HERE" #list of datasets datasets = ["WaterDistribution", "WastewaterSystem", "Stormwater"] #field to update updateField =… (Show more)
in python snippets
n.ueberschaeresri-rw-esridist
I need some help with some nested Search/Insert Cursors adding data to a table and to a point feature class. What I have: - I have one big table with stations 1-n with for example 10,000 rows for each station. - A point feature class in a file geodatabase. What I want: - I want to copy the rows for each station into a newly created table (all… (Show more)
in python snippets
Load more items