DOC
|
@BrantSollis2 Glad I am not the only one that had issues with SDE layers. I ended up building a model to delete and append which had its own issues I have been working with tech support on, but I think it is working now and will do what I need it to do. I would like to see your modified script though, as I may need to go back to it later. Also, it may be helpful to someone else here! Thank you so much for responding.
... View more
01-04-2024
06:48 AM
|
0
|
0
|
3669
|
DOC
|
@JakeSkinner I have been able to get the python code to run and the scheduled task set up. After they run, AGSOL displays the date updated as the correct date and time, but for some reason all but one of the layers are empty. I am using SDE data as the source. Does the data have to be in a file geodatabase for this to work? When I run the python script in pro, it shows that it is truncating and appending the feature, then deleting the database. I see it is adding some Shape fields and deleting the global ID field, but it completes the process. I am also seeing a [WinError 32] The process cannot access the file because it is being used by another process: relating to the scratch gdb, but that is showing up at the end of the process after the Deleting temporary FGD & zip file part and not on all of the layers. Your assistance is greatly appreciated...
... View more
12-20-2023
06:31 AM
|
0
|
0
|
3972
|
DOC
|
@JakeSkinner that worked! Thank you so much for your help....I think I may have had some of the layers in the wrong order in my code and it was causing failure.
... View more
12-14-2023
07:19 AM
|
0
|
0
|
4222
|
DOC
|
@JakeSkinner You should have received an invite. Thanks for the quick response!
... View more
12-13-2023
06:17 AM
|
0
|
0
|
4284
|
DOC
|
@JakeSkinner I have been trying to get the multi-layer script you added to work, but it only runs the first layer in the list. I have 8 total that I need to schedule to update. I have them listed as fc1 - fc8 with the path to their location. I have layer indexes created for each one, zero to 7, and I have the dataDict set equal to the layer indexes. It seems to be running the first layer, then thinks it is finished. Is there something else I need to add to make it loop to update all 8 layers? Any advice would be appreciated.
... View more
12-12-2023
01:18 PM
|
0
|
0
|
4313
|
POST
|
Okay thanks! I will try to incorporate that and see if I can get it to work.
... View more
04-08-2022
06:07 AM
|
0
|
0
|
1119
|
POST
|
I have a model that I have been using the Scheduled Task to run. I am finding that it fails at times (sometimes my drive gets disconnected and the model doesn't know what to do, since Pro doesn't seem to use the UNC path in the model it causes a failure)sure, but I have no way of knowing unless I open it every day and look. I am trying to see if there is a way to get an email, or other kind of notification that it has run and either succeeded or failed to complete as it should. Is there a way to do that using Python? Thanks in advance, Melissa
... View more
04-04-2022
02:23 PM
|
3
|
6
|
1157
|
POST
|
This is also happening to me...Very frustrating! No matter what I try, delete and replace etc only the first item shows up and I get an ellipses at the bottom of my legend frame like there is more that doesn't fit, but when I expand the frame there is nothing there! *Update - When I go into Format Legend - Arrangement under Word Wrapping the Labels and Descriptions were unchecked. When I checked them the items finally showed up.
... View more
01-25-2019
08:12 AM
|
0
|
1
|
560
|
POST
|
I guess I should note that this is a polygon layer I am working with. I assumed it would label each side one time (I feel like this has worked for other projects before for me) I think just converting the labels to anno and moving them manually is the only route.
... View more
07-30-2018
08:55 AM
|
0
|
0
|
964
|
POST
|
From pro. That highlighted area is what I want the labels to look like, one label in the center of the line. The south line is putting 3 repeating sets of labels and the east line is not centered which is what I want. There is nothing there to interfere with the labels to prevent them from labeling correctly, I have turned everything else off. The main thing is that they shouldn't be repeating at all having set them to remove all duplicates.
... View more
07-27-2018
08:06 AM
|
0
|
1
|
964
|
POST
|
I am trying to label some polygons using boundary label placement with Remove Duplicate Labels set to Remove all. For some reason ArcGIS Pro is not honoring the Remove Duplicates. What I really want to accomplish is for a single label to be on each line in the middle of the line (as shown by the yellow highlight). I know this was an option in ArcMap. Any idea why it doesn't work in Pro?
... View more
07-26-2018
01:29 PM
|
3
|
4
|
1126
|
POST
|
So I have been working on getting this to work for days now, and I have looked at the examples here and tried to make them work with my example. I FINALLY got it working the way it should! The code probably isn't pretty. Anyway I thought I would post the result in case someone else needs it. The ReDim is what seemed to be the magic bullet! Thanks to everyone for your help...Still not sure why my original code works in ArcMap and not Pro but I guess it is more picky about getting clean code. Function FindLabel ([OwnerName],[ACRES]) Dim sWords Dim ownNm ReDim sWords(3) ownNm = [OwnerName] If InStr(ownNm,", ") <>0 Then sWords = Split(ownNm, " ") FindLabel = Left(sWords(0),12) & " " & Left(sWords(1),1) & " . " & Left(sWords(2),1) & ". " & Round([ACRES],0) Else sWords = Split(ownNm, " ") FindLabel = Left(sWords(0),12) & ". " & Left(sWords(1),1) & " . " & Round([ACRES],0) End If End Function
... View more
06-21-2018
11:41 AM
|
0
|
0
|
1231
|
POST
|
I have a couple of label expressions that I have used many times in ArcMap, but now trying to use them in Pro they no longer work and throw an error. I am using VBScript and have the Language set as such. The code is pasted below. It basically goes through and finds a last name, first name and outputs the Last Name comma First letter of first name and first letter of third name from the first 3 words with the acreage (for example Jones, D. R.), that part works, then it goes through and finds strings that don't have a comma (those are business names) and outputs the first full word period second word first letter period third word first letter period (for example Union Electric Company would be Union E. C.) The error is thrown from the code in bold at the bottom. The first part works but I have tried adding and taking away the other array strings from the split function and they are what is throwing the error. Again it has always worked fine in ArcMap! The error is Invalid Expression Error 10 on line 0. Subscript out of range: '[number:1] : Function FindLabel ( [OwnName1], [ACRES] ) Dim sWords If IsNull ( [OwnName1] ) then FindLabel="No Data" else If InStr( [OwnName1] ,",") <>0 then sWords = Split( [OwnName1] , " ") FindLabel = Left(sWords(0),12) & Left(sWords(1),1)& " " & Left(sWords(2),1) & ". " & Round( [ACRES] ,0) else sWords = Split( [OwnName1] , " ") FindLabel = Left(sWords(0),12) & " " & Left(sWords(1),1)& "." & Left(sWords(2),1) & ". "& Round( [ACRES] ,0) end if end if End Function Thanks in advance for any insight you can give me~ MJ
... View more
06-12-2018
01:27 PM
|
0
|
6
|
1331
|
POST
|
I am looking at converting some of my map projects to Pro, and can't find how to change the map units on the scale bar. This seems like it should be simple! It is set to miles and I would like it to be set to feet. I have tried the scale bar properties/units and see nothing there to change, my map options are set to feet. Can anyone tell me how to do this? Thanks in advance!
... View more
08-01-2016
08:17 AM
|
1
|
4
|
4825
|
POST
|
Looking for ideas on how to go about creating a map (and/or app) where I could put in specific point locations (or could possibly use the locate me function on a device as the starting point), then find all potential routes for a given distance round trip. For example, we want to start a fitness program, so I would like to have our buildings as input, and say a 1 mile round trip goal and show all of the different walking routes that are 1 mile. It sounds like something Network Analyst should be able to do but I can't wrap my head around how to make it work the way I describe. The plus of using Network Analyst for this would be the ability to use barriers to block unsafe routes that were identified. Suggestions are appreciated!
... View more
04-24-2015
11:59 AM
|
0
|
1
|
2332
|
Title | Kudos | Posted |
---|---|---|
3 | 04-04-2022 02:23 PM | |
3 | 07-26-2018 01:29 PM | |
1 | 08-01-2016 08:17 AM | |
11 | 01-06-2011 06:51 AM | |
12 | 08-15-2011 08:32 AM |
Online Status |
Offline
|
Date Last Visited |
01-31-2024
09:00 PM
|