POST
|
It's only when the Python interpreter process is killed that the locks release. That means I cant restore the data without exiting the script runner. I've been trying to find a way to either run the tool on a seperate python process or somehow remove the locks but I cant seem to solve the problem. Any ideas? This is just a shot in the dark, but have you tried deleting arcpy, having the script wait a bit and then loading it again and continuing? You can try this by using a timer for the delay. I haven't treid this myself, so I'm not sure whether deleting arcpy will remove the locks, but it's worth a try.
... View more
11-25-2013
02:44 PM
|
0
|
0
|
2112
|
POST
|
Hi, I'm trying to add a tool to an add-in toobar to select features from an existing feature class and copy them across to another feature class. I need two tools, one for a point and one for a rectangle. Add-in tools only handle rectangles, so I'm trying to generate the point coordinate off the onMouseDown event and simply use the X and Y feedback I get. The problem is that I can't seem to pass these coordinates to anything usefull to extract the features. I've tried using Environment extents and then doing a simple CopyFeatures, but that's not working as it copies the entire fc and doesn't seem to honour the environment settings I set. My question is: Can I pass coordinates to the Select by Location tool somehow or is there another way of passing coordinates to something to extract by that extent?
... View more
01-17-2013
04:29 PM
|
0
|
0
|
708
|
POST
|
Hi Tony, You can do this using the MessageBox in the pythonaddins module. Pass the coordinates to the message property as text.
... View more
01-17-2013
03:57 PM
|
0
|
0
|
686
|
POST
|
Hi everyone, I'd like to find out whether it'll be viable to use Dreamweaver to create the CSS for the design of a JavaScript API web map front end? Dreamweaver's good with helping you get around messy CSS, but I'm not sure how easy it's going to be to get around the Dojo templates they provide. Cheers Dean
... View more
07-12-2012
06:58 PM
|
0
|
0
|
474
|
POST
|
Thanks for the replies. That's what I'm currently trying. I'm using shutil.rmtree to delete the entire folder. When there are no .lock in the folder, it works fine, but if there are, then it'll start deleting some of the files in the folder and fall over on the files those locks are holding on to as well as the lock files themselves. This then leaves the whole GDB useless and a headache to try and get the last files deleted. Because ArcGIS can't access the GDB anymore, to refresh and successfully release that lock, it's an absolute mission to get rid of them. I had to wait for a server restart the last time, which meant that users had no access to the database. As a fallback I've thought about checking for lock files first, then using the Python sleep function to delay any processing and rechecking until the lock files are gone and then deleting the FGB, before starting the export from SDE to the FGDB. The problem is that if someone does have their machine on overnight, then it'll mean that this check will run into the next day and as the export takes a few hours to create and copy over the network, it'll mean that users might not have any database for a few hours the following day. I could of course add something that says, if the checks go past a certain time, then abort it. Then just have this task run daily and check for the time it was last run to make sure it's not updating it too frequently. Anyway, having the ability to just delete the database, will save me a lot of time and effort. I'm really not concerned about the applications that have connections to it. The ArcMap sessions they have connected are read only and frankly, they have been told not to keep them active overnight. Everyone's happy with this arrangement, but you do get people just plainly forgetting.
... View more
06-14-2012
02:51 PM
|
0
|
0
|
2112
|
POST
|
Hi, I've come across many posts about lock files for both personal and file geodatabases, but I guess my situation is slightly different in that I need to delete a file geodatabase so I can replace it with a new one. I run a maintenance script at 3am on Sunday mornings, so no users should be using this then (unless they're super-dedicated to their work), but you know how people always leave their computers on overnight. As these databases are really just there to be read, not edited, I can delete them. The problem is that the locks prevent me from doing it and the script then has to wait until the next week to update the database, if nobody has it locked then. My question is whether there is a way to simply delete the entire database, regardless of whether it has a lock. I'm assuming Esri functions won't do this, but is there a way I can just add some sort of Python subprocess to force the delete or maybe a way I can kick that user off the license manager? I'm aware that we can use the lmremove function, but when we move from 9.3.1 to 10.1 at the end of the year, we won't be able to that anymore and also, I can't access the user's processes remotely to kill the active license. I'm really not trying to edit or save the database in any way. I just want to strong-arm the delete. Cheers Dean
... View more
06-13-2012
08:04 PM
|
1
|
11
|
8951
|
POST
|
Cheers Joshua, In the end I simply used the extents of my properties as the 'grid'. In the old map books tool it built a grid for you and I was probably still in that mindset. The data driven pages have loads of new functions built in, so it's really been very helpful. Dean
... View more
01-07-2011
12:30 PM
|
0
|
0
|
291
|
POST
|
Hey Everyone, So, here we go. New ArcGIS version, new map book utility, new questions. Right, I need to generate a map book for around 550 properties all over Australia. The properties vary in size and I'd like to create the grid so the cells are different sizes, based on the size of the property. This is probably one approach, but I can also create a cell for each property all at the same size, but with an attribute that specifies a scale suitable to display the whole property. So in the first choice I'd have different cell sizes and the second I'd have the same cell size, but different scale values. Either way, how would I go about doing this and are these functions built into the existing tools already and I just missed it? Cheers Dean Carstens Spatial Information Analyst Elders Forestry 21 - 31 Goodwood Street, Richmond, VIC, Australia, 3121 e: dean.carstens@eldersforestry.com.au
... View more
07-28-2010
03:24 AM
|
0
|
2
|
2258
|
IDEA
|
Currently you need to know what the coded value is to be able to search for it in the Attribute Query dialog's 'Go To' box. Even though the code and descriptions are both displayed in the list of unique field values, you cannot go to the value by typing in the description or even using a wildcard.
... View more
07-05-2010
10:20 PM
|
12
|
2
|
370
|
IDEA
|
Currently you need to know what the coded value is to be able to search for it in the Attribute Query dialog's 'Go To' box. Even though the code and descriptions are both displayed in the list of unique field values, you cannot go to the value by typing in the description or even using a wildcard.
... View more
07-05-2010
10:20 PM
|
12
|
1
|
286
|
Title | Kudos | Posted |
---|---|---|
1 | 06-13-2012 08:04 PM | |
12 | 07-05-2010 10:20 PM | |
12 | 07-05-2010 10:20 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|