POST
|
Hello forum I've installed ArcGIS Desktop 10.3.1 on a Windows 10 laptop and I cannot read properly spanish characters (ñ,á...) from my old shapes I moved from a Windows 7/arcGIS 10.0 environment Both (the old 7 laptop and new 10 one) have the regional configuration in spanish / Spain. I've already tried including different cpg files on those old shapefiles but I still cannot read ñ's or á's Did anyone experienced this problem? thank you in advance
... View more
09-08-2016
03:05 AM
|
0
|
1
|
1008
|
POST
|
Yes, it works! It opens my python toolbox "CreaCCAA" with the three parameters correctly Thanks, Duncan! Antonio
... View more
05-19-2015
10:38 AM
|
0
|
0
|
599
|
POST
|
Hello forum: We're launching a python toolbox tool "CreaCCAA" from a custom ArcMap menu option "Gestion de Cartografia" as shown in pic1 (see attachments) The "CreaCCAA" tool has 6 parameters itself. This operation is working fine What we're trying to do (see Pic2 in attachments) is to launch "CreaCCAA" from menu "Gestion de Cartografía" with 3 first parameters initialized. We want the final user just to enter parameters 4,5 and 6 in "CreaCCAA"....but it doent work Code for launching "CreaCCAA" in the "Gestion de Cartografia" .net side, is as follows: public static void ExecuteScript(string PathTOToolbox,string ScriptName, List<string> ParametersList) { try { IGeoProcessor2 gp = new GeoProcessorClass(); IVariantArray parameters = null; gp.AddToolbox(PathTOToolbox); if (ParametersList != null) { parameters = new VarArrayClass(); foreach (string param in ParametersList) { parameters.Add(param); } } gp.Execute(ScriptName, parameters, null); } catch (Exception Err) { Connector.ConnectorExtension.WriteStaticLog("Error", Err.Message + " - " + Err.StackTrace); } } In the "CreaCCAA" python code side, we're trying to read the 3 arguments using sys.argv but it doesn't work. Exploring the sys.argv value we get always an empty string [''] It makes no difference to read sys.argv in any section in the python toolbox code (__init__, getParameterInfo, updateParameters or execute): we get always the empty string [''] Does anybody know how to solve this? Does sys.argv work "fine" in a pyhon toolbox? We think one possible way to solve this, could be reading the 3 parameters needed in "CreaCCAA" from a text file (like cookies work) using the "open" and "readlines" python methods. But, because of security issues (one of the parameters to pass to "CreaCCAA" is a password) we prefer to avoid it. Our development environment is ArcGIS 10.2.2 on Windows 7 Professional SP1 Hope you could help with this and thanks in advance Antonio
... View more
05-13-2015
08:05 AM
|
0
|
2
|
3252
|
POST
|
Hello Forum: I'm getting errors importing custom tools from a ptyhon toolbox My scenario si as follows: I have developed 3 python toolboxes with some tools: - PythonToolbox1 PT1 with Tool11 and Tool12 T11 T12 - PythonToolbox2 PT2 with Tool21 T21 - PythonToolbox3 PT3 with Tool31 T31 When calling T11 from T31 ( using importing arcpy.ImportToolbox(PT1)) the execution of T31 works fine When calling T12 from T31 ( using importing arcpy.ImportToolbox(PT1)) the execution of T31 works fine When calling T21 from T31 ( using importing arcpy.ImportToolbox(PT2)) the execution of T31 works fine This is, when I call JUST ONE AND ONLY ONE tool, T31 works fine But, if a tried to call more than one external tool from T31, I get errors: When calling T11 and T12 from T31 ( using importing arcpy.ImportToolbox(PT1)) the execution of T31 works wrong (it executes T11 but not T12) Traceback (most recent call last): File "<string>", line xxx, in execute File "C:\xxxx\PT1.pyt", line xx, in T12 AttributeError: Object: Tool or environment <T12> not found When calling T11 and T21 from T31 ( using importing arcpy.ImportToolbox(PT1) and arcpy.ImportToolbox(PT2)) the execution of T31 works wrong (it executes T11 but not T21) Traceback (most recent call last): File "<string>", line xxx, in execute File "C:\xxxx\PT2.pyt", line xx, in T21 AttributeError: Object: Tool or environment <T21> not found I tried to use in T31 RemoveToolbox after using any call to a custom script,(and Import/Add Tool before calling them) but it still works wrong It seems that one and only one external tool can be called from T31, but this make no sense. Any ideas of this behaviour? Thanks in advance Antono
... View more
07-21-2014
05:03 AM
|
0
|
1
|
1375
|
POST
|
Thanks, Kevin I´m at 10.2.0 version now. I´ll upgrade to 10.2.2 and try it. I took a look at documentation ArcGIS Help (10.2, 10.2.1, and 10.2.2) and I thought it was possible to use gpstringhidden at 10.2.0
... View more
07-08-2014
12:37 AM
|
0
|
1
|
505
|
POST
|
Helloo Forum I'm testing the GPStringHidden datatype in a 10.2.0 python toolbox. Just a simply test: creating a GPStringHidden parameter and showing with arcpy.AddMessage the string the user entered when running the python toolbox tool My parameters info section looks like this: p0 = arcpy.Parameter( displayName="Testing a hidden string", name="strhid1", datatype="GPStringHidden", parameterType="Required", direction="Input") params = [p0] return params And my execute section just like tthis arcpy.AddMessage(parameters[0].value) And it seems that the datatype is not recognized, because I get the error: Traceback (most recent call last): File "<string>", line 30, in getParameterInfo File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\arcobjects\mixins.py", line 286, in __init__ setattr(self, attrib, attribvalue) File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\arcobjects\_base.py", line 89, in _set return setattr(self._arc_object, attr_name, cval(val)) ValueError: ParameterObject: Invalid input value for DataType property Has anybody experienced the same? Thanks in advanced Antonio
... View more
06-30-2014
12:51 AM
|
0
|
3
|
2398
|
POST
|
Hello Forum I'm new at python toolboxes and I`m trying to create a toolbox that shows a typical Calculator Field Parameter but I cant find any code example of how to manage it. Assuming two parameters in my python toolbox ( param0 a dbase input and param1 a Calculator Expression), how could I feed the GPCalculatroExpression with the fields passed as a dbase table parameter? Thank you in advance Toni
... View more
10-30-2013
12:17 AM
|
0
|
1
|
2044
|
POST
|
Hello forum: Is it possible to conect to a Geoserver WMTS service using an ArcMap 10.1 connection? In other words... does ArcMap only connect to arcGis Server WMTS services? thank you in advance Antonio
... View more
09-06-2012
12:56 AM
|
0
|
11
|
11546
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|