POST
|
See the below video. The toolbar is created with a few xml tags in the config.esriaddinx. You can either stub it out by inserting the code directly into the config.esriaddinx or right click on your project, select add new item, and then add an addin container to your project, which will stub out the xml for you. You'll want to add the toolbar after you've created your commands if you're not familiar with manipulating the xml behind the toolbar to add items to it because the wizard will allow you to select the items from a drop-down.
... View more
08-31-2016
07:04 AM
|
3
|
1
|
1190
|
POST
|
Abdullah, If you have any developers available or are familiar with ArcObjects you could implement an application extension to enable or disable the extension when users open or close the Map Document. I wrote up a quick proof of concept below. You could use this to start your extension. protected override void OnStartup()
{
ArcMap.Events.NewDocument += Events_Document;
ArcMap.Events.OpenDocument += Events_Document;
}
void Events_Document()
{
var extMgr = ArcMap.Application as IExtensionManager;
var extensions = new[] { "Spatial Analyst", "3D Analyst", "Tracking Analyst" };
foreach (var name in extensions)
{
var ext = extMgr.FindExtension(name);
var extcfg = ext as IExtensionConfig;
System.Diagnostics.Debug.WriteLine(string.Format("{0} Extension is {1}", name, extcfg.State == esriExtensionState.esriESEnabled == true ? "ENABLED" : "DISABLED"));
extcfg.State = esriExtensionState.esriESDisabled;
}
}
... View more
08-11-2016
10:36 AM
|
2
|
0
|
1561
|
POST
|
This is old, but should still be true for the most part. The Top Nine Reasons to Use a File Geodatabase http://www.esri.com/news/arcuser/0309/files/9reasons.pdf As far as training you can do at your own page I'd suggest reading the following books if you really want to get into geodatabase concepts. Learning ArcGIS Geodatabases https://www.amazon.com/Learning-ArcGIS-Geodatabases-Hussein-Nasser-ebook/dp/B00LB6DKAY/ref=sr_1_1?ie=UTF8&qid=1468590729&sr=8-1&keywords=geodatabase#nav-subnav Modeling Our World: The ESRI Guide to Geodatabase Concepts https://www.amazon.com/Modeling-Our-World-Geodatabase-Concepts/dp/1589482786/ref=sr_1_4?ie=UTF8&qid=1468590729&sr=8-4&keywords=geodatabase
... View more
07-15-2016
06:51 AM
|
2
|
0
|
1372
|
POST
|
There will be quite a few ways to do this. I've listed a couple of the more popular options below. Each of these pages will provide examples on how to use the method. Python os.listdir() Method http://www.tutorialspoint.com/python/os_listdir.htm glob - Filename pattern matching https://pymotw.com/2/glob/ Working with Directories http://www.diveintopython.net/file_handling/os_module.html List Files (arcpy) http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/listfiles.htm
... View more
07-14-2016
02:11 PM
|
1
|
0
|
733
|
POST
|
I don't believe there is an out-of-the-box way to do this if you're not using an enterprise geodatabase. If you wanted to get an idea of what machine may have created the lock I'd think that you can use pure python to list out the *.lock files that appear in the geodatabase. From this file you should be able to parse out the machine accessing the content within the geodatabase. For example, I tried this out on my machine and I can see that there are lock files with the following names. _gdb.UZUMAKI.10792.10812.SR.lock In the above case UZUMAKI is the hostname for my machine that is accessing the data. If needed you could use the following class to check if you're able to get an exclusive lock on the data. TestSchemaLock http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/testschemalock.htm
... View more
07-14-2016
10:06 AM
|
1
|
1
|
733
|
POST
|
You should be able to use the ArcPad Data Manager toolbox to manage porting your data to/from ArcPad. Get Data for ArcPad (Use this tool to package data for ArcPad) http://resources.arcgis.com/en/help/arcpad/10.2/app/index.html#/Get_Data_for_ArcPad/00s100000068000000/ Steps to Get Data For ArcPad http://resources.arcgis.com/en/help/arcpad/10.2/app/index.html#/Steps_to_Get_Data_for_ArcPad/00s1000000tr000000/ Get Data from ArcPad (Use this tool to fetch data from ArcPad) http://resources.arcgis.com/en/help/arcpad/10.2/app/index.html#/Get_Data_from_ArcPad/00s10000006r000000/ Steps to Get Data from ArcPad http://resources.arcgis.com/en/help/arcpad/10.2/app/index.html#/Steps_to_Get_Data_from_ArcPad/00s1000000v1000000/
... View more
06-28-2016
01:19 PM
|
1
|
0
|
453
|
POST
|
Note that the pythonaddins module is not intended to be used outside of addins. Are you by any chance familiar with ArcObjects? Also, if the tools are successful would there be a valid reason for the user to stop the execution of the next tool?
... View more
06-28-2016
01:00 PM
|
1
|
0
|
786
|
POST
|
Hi Darren, The documentation in this case would be correct. When you build a custom toolbox you are required to call ImportToolbox to load the toolbox. Think of this like when you create a custom class in python. You are require to call import to load the module into your project. When you import the toolbox you have two choices. Import the toolbox with just the file path. In this case the alias for the toolbox will be the alias assigned in the toolbox's properties. Import the toolbox along and specify an alias name. This would allow you to specify a unique alias for your toolbox on the fly. A lot of people forget to specify the alias within the toolbox properties. As such, they leverage the second option to ensure that the name of their toolbox is unique. For example, let's say that you called your tool Clip. There are currently two clip tools included with the base install of ArcGIS (i.e. Clip_analysis and Clip_management). Without specifying an alias the system wouldn't necessarily know which version of the clip function you're wanting. As such, you could specify an alias in the import of the tool, such as box, so that the system can easily identify that you can to use the Clip_box tool as opposed to other tools with the same name. The reason why Guillame was able to get their code change to work is because they changed their code to leverage the system tool that is automatically loaded by arcpy. If they were to dig further into the system they would see that this particular toolbox uses "geocoding" as the alias and doesn't contain any invalid tool/model/script tool names.
... View more
06-24-2016
07:18 AM
|
1
|
1
|
755
|
POST
|
So it looks like you have a system tool and a model in your toolbox. The problem is that the model within your toolbox is named "Modèle". When you call ImportToolbox this will cause a conflict because identifiers in python 2.X don't support using he character è. If you remove the è the toolbox imports just fine.
... View more
06-24-2016
07:01 AM
|
1
|
1
|
1286
|
POST
|
Could you upload your toolbox so I can take a look at it?
... View more
06-23-2016
02:36 PM
|
0
|
3
|
755
|
POST
|
The ArcObjects SDK requires that you have one of the following software installed ArcGIS for Desktop ArcGIS for Engine ArcGIS for Server
... View more
06-23-2016
02:35 PM
|
1
|
0
|
256
|
POST
|
Hi Dan, I'm thinking that their problem may be deeper than needing to make a string unicode. I would assume that if their tool contains unicode characters in the name it would run into a problem where Python 2.x does not support unicode identifiers. https://docs.python.org/3.3/reference/lexical_analysis.html#identifiers Behind the scenes calling ImportToolbox wraps the tool within a class. This class uses the name of the tool for the name of the class (e.g. arcpy.RebuildAddressLocator_box or arcpy.box.RebuildAddressLocator in the users code). If the name of the tool were something like RèbuildAddrèssLocator I'd assume you'd get the error they're seeing because you can't create an identifier in python 2 with this name.
... View more
06-22-2016
03:29 PM
|
0
|
1
|
1023
|
POST
|
I just want to ensure that I'm understanding you correctly. Typically a service area represents all of the accessible edges within a specified limit. For example, let's consider the below image. In this image I've created a network with four lines that extend exactly one mile in each direction from the center. If I were to execute a one mile service area from the center of the network it would show that I can travel anywhere along the network. Due to the simplicity of this network, I would assume in your case that the above solution returned a total of four miles. In your case I'd assume that you'd want something that would allow you to input something like "create a service area where the sum of the lengths of the edges traveled equals one". In this simplified case where all is equal I know that I'd need to travel 0.25 miles along each edge to get the out-of-the-box tools to meet this requirement in the simplest manner. Is this what you're seeking, but in a more real world example where the solution will vary drastically? I don't believe there is anything out-of-the-box that would yield this solution, but if needed I could see how you could code in most of Esri's available APIs to determine this answer. Could you provide some more information about your business requirements (i.e. what you're hoping to gain from this analysis and why you've chosen this approach)? Also, do you already have an idea of what your needed solution would look like and how you're intending to handle the infinite number of possibilities that this solution would yield. For example, the following image would be just as correct as the above image if I only needed a result where the sum of the lengths of the edges traversed is one mile. Technically I could distribute the required total distance along any number of edges and the solution would be correct.
... View more
06-22-2016
03:10 PM
|
1
|
4
|
951
|
POST
|
What are the names of the tools in your toolbox? Looking at the error I'd assume that you're using characters in the name of your tools that are invalid ascii characters. According to the error you're using u'\xe8', which should be equivalent to è.
... View more
06-22-2016
02:29 PM
|
1
|
3
|
1023
|
POST
|
Do you mean that you have ArcGIS for Desktop, Engine, or Server 10.3 installed with the ArcObjects SDK 10.3? If so, you would not be able to install version 10.2 of the developer kit because these products do not allow side-by-side installs.
... View more
06-22-2016
02:19 PM
|
0
|
1
|
256
|
Title | Kudos | Posted |
---|---|---|
1 | 11-16-2015 09:00 AM | |
1 | 09-15-2015 10:49 AM | |
1 | 10-05-2015 05:08 PM | |
1 | 10-01-2015 03:21 PM | |
1 | 11-25-2015 09:05 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|