POST
|
No I am looking to build something simular to an MS Access form for data entry. I am able to use a personal geodatabase to get what I need but only one person at a time can utilize it.
... View more
05-12-2015
08:41 AM
|
0
|
0
|
788
|
POST
|
No I never got the answer I needed I ultimately manually created what I needed to get my visualization done and have not searched any further for an answer.
... View more
04-28-2015
07:35 AM
|
2
|
0
|
438
|
POST
|
Is there a way to build a formatted Data Entry form in ArcMap 10.2 that is in a File Geodatabase? I may not be using the correct terminology hence why I am having trouble finding anything on it.
... View more
11-19-2014
08:50 AM
|
1
|
4
|
7007
|
POST
|
Need to make a pie chart color based upon a number field. Anyone have any ideas on how to make that happen in ArcMap? I know how to use symbology to make a chart but the pie chart only gives you limited control and I need to have the chart color the pie based upon a number.
... View more
11-17-2014
11:55 AM
|
1
|
4
|
3769
|
POST
|
I found another example that I am trying as well which worked for half of what I am doing so I made need to do 2 seperate scripts to make it work the way I want it to work. # Name: DeleteFeatures_Example2.py # Description: Delete features from a feature class based on an expression # Import system modules import arcpy from arcpy import env # Set environment settings env.workspace = "C:/data/airport.gdb" # Set local variables inFeatures = "parcels" outFeatures = "C:/output/output.gdb/new_parcels" tempLayer = "parcelsLayer" expression = arcpy.AddFieldDelimiters(tempLayer, "PARCEL_ID") + " = 'Cemetery'" try: # Execute CopyFeatures to make a new copy of the feature class arcpy.CopyFeatures_management(inFeatures, outFeatures) # Execute MakeFeatureLayer arcpy.MakeFeatureLayer_management(outFeatures, tempLayer) # Execute SelectLayerByAttribute to determine which features to delete arcpy.SelectLayerByAttribute_management(tempLayer, "NEW_SELECTION", expression) # Execute GetCount and if some features have been selected, then # execute DeleteFeatures to remove the selected features. if int(arcpy.GetCount_management(tempLayer).getOutput(0)) > 0: arcpy.DeleteFeatures_management(tempLayer) except Exception as e: # If an error occurred, print line number and error message import traceback import sys tb = sys.exc_info()[2]
... View more
11-06-2014
10:26 AM
|
0
|
0
|
915
|
POST
|
Let me be a little more clear on what I am trying to do. I am running queries that seek out differences in two features and creating a point file with the differences from one to the other and adding it to a mxd all using Python script and I have this first part working great but many times the layer that is created has no records because there are no differences when the comparison is run and I do not want the script to add empty layers to my map. Hope that clarifys a bit.
... View more
11-05-2014
10:43 AM
|
0
|
0
|
915
|
POST
|
Thanks Ted but that shows me how to count rows but doesn't tell me how to make the script stop running if the count is zero.
... View more
11-05-2014
10:38 AM
|
0
|
0
|
915
|
POST
|
Thanks Luis but unfortunately that didn't solve my issue.
... View more
11-05-2014
08:06 AM
|
0
|
0
|
915
|
POST
|
Been looking at all the Python libraries I can find and still have not been able to figure this out. I have script that creates a layer but sometimes the end result of that later returns no records. How do I tell Python to stop the process if this layer is empty? Thanks
... View more
11-05-2014
06:05 AM
|
0
|
7
|
5013
|
POST
|
Found the error to be the dataframe was not named properly in the properties of the mxd.
... View more
11-03-2014
11:28 AM
|
0
|
0
|
172
|
POST
|
Yes it's on a network and I will have to try it locally and work from there.
... View more
11-03-2014
10:36 AM
|
0
|
0
|
172
|
POST
|
The script also corrupts my mxd to the point I cannot save it.
... View more
11-03-2014
06:35 AM
|
0
|
5
|
642
|
POST
|
addLayer is what am trying to use now but I keep getting this error: Traceback (most recent call last): File "\\c:\MyLocation\Tools\Scripts\Changes.py", line 39, in <module> df = arcpy.mapping.ListDataFrames(mxd, "Update")[0] IndexError: list index out of range This one has me stumped. Here is the code: # Import arcpy module import arcpy #Import Time and Date import time import datetime #Sets a variable to hold today's date in year month day (yyyymmdd)format to tag feature output name with the current date currentdate = datetime.date.today().strftime("%Y""%m""%d") # Overwrite pre-existing files arcpy.env.overwriteOutput = True # Local variables: Changes = "\\\\c:\\MyLocation\\\\Working_Data.mdb\\Changes" Changes_Layer = "Changes_Layer" Update = "\\\\c:\\MyLocation\\MyGeo.gdb\\Updates\\Updates"+str(currentdate) # Process: Make XY Event Layer arcpy.MakeXYEventLayer_management(Changes, "longitude", "latitude", Changes_Layer, "", "") # Process: Feature To Point arcpy.FeatureToPoint_management(Changes_Layer, Updates, "CENTROID") #Add layer into primary map document addLayer = Changes_Layer +str(currentdate) mxd = arcpy.mapping.MapDocument("\\\\c:\myLocation\\MyMap.mxd df = arcpy.mapping.ListDataFrames(mxd, "Update")[0] arcpy.mapping.AddLayer(df, addLayer, "TOP")
... View more
11-03-2014
05:27 AM
|
0
|
6
|
642
|
POST
|
I am using Python script that runs in the background. # Import arcpy module import arcpy #Import Time and Date import time import datetime #Sets a variable to hold today's date in year month day (yyyymmdd)format to tag feature output name with the current date currentdate = datetime.date.today().strftime("%Y""%m""%d") # Overwrite pre-existing files arcpy.env.overwriteOutput = True # Local variables: Changes = "\\\\MyData\\Working_Data.mdb\\Changes" Changes_Layer = "Changes_Layer" Updates = "\\\\MyData\\My_Data.gdb\\Updates\\Updates"+str(currentdate) # Process: Make XY Event Layer arcpy.MakeXYEventLayer_management(Changes, "longitude", "latitude", Changes_Layer, "", "") # Process: Feature To Point arcpy.FeatureToPoint_management(Changes_Layer, Updates, "CENTROID") Now I would like to add Python script that will take "Updates"+str(currentdate)" and add it to MyDataUpdates.mxd
... View more
10-30-2014
11:15 AM
|
0
|
9
|
642
|
Title | Kudos | Posted |
---|---|---|
1 | 10-23-2014 08:36 AM | |
1 | 11-19-2014 08:50 AM | |
2 | 04-28-2015 07:35 AM | |
1 | 11-17-2014 11:55 AM | |
1 | 10-30-2014 10:30 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|