IDEA
|
it would be great to be able to add halos to part of label expression, example: This is an <halo>IMPORTANT</halo> place
... View more
08-10-2018
10:48 AM
|
10
|
0
|
394
|
POST
|
that. was. it. Thank you, I was pounding my head against the wall on that one!
... View more
07-06-2018
06:05 PM
|
0
|
1
|
109
|
POST
|
Here is what the code looks like (not sure how to add to this as a code sample, just as text.) I've also tried adding an "r" in various forms in the CalculateField line, to no avail. When using the print function for the fc, the filepath/name appears as it should. The parsing with the .split("\") was for a later field calculator expression, but mentioned because to indicate that it is important that the file path be exact. for dirpath , dirnames , filenames in walk : for filename in filenames : fcs . append ( os . path . join ( dirpath , filename ) ) for fc in fcs : print fc arcpy . CalculateField_management ( fc , 'Source' , '"' + fc + '"' , "PYTHON" )
... View more
07-06-2018
06:25 AM
|
0
|
3
|
109
|
POST
|
Did you ever figure this out? I am trying to use arcpy.CalculateField_management to add the filepath and filename to a field and if the folder begins with a number, it distorts the name. For example a portion of the file path might look like: ...\Date\Client\180705\1_Event\Point.shp will look like: ...\Date\Client 180705 @_Event\Point.shp I will want do calculations in other fields based on these values using the .split("\") function, so it's important that I get the complete, correct filepath.
... View more
07-05-2018
10:34 AM
|
0
|
5
|
109
|
POST
|
Michael, Can you share how you noted when an mxd was corrupt? I'm also working on a program that walks through mxds in a folder to determine if a particular layer is used or not and writes it to a csv file but the script crashes when it encounters a corrupt mxd. But it crashes before the list is written to the csv file so I never know which one it is. Any guidance would be great
... View more
10-14-2014
05:23 PM
|
0
|
3
|
42
|