|
POST
|
hi there, you should just be able to use value as the variable in the calculatefield tool without any % or ' you might need to use str() or int() depending on the field type hope this helps cheers Tim
... View more
09-30-2013
01:18 PM
|
0
|
0
|
2096
|
|
POST
|
Hi Richard Many thanks for your advice and links - really helpful. While I admit I am not a python expert I have created scripts to automate many of our workflows and have included validation scriptswith these so have more than a basic knowledge. What I am hoping to achieve is a combination of using a featureset and recordset or attribute lists to add multiple species to a ecology habitat type...the user will click a point to add a habitat type which can be from a feature template or a list parameter...the habitat type selected will determine the species list dropdown - i can do this already using the vaildation script to change the species tick list...BUT...if possible I would really like to also include an abundance attribute (D, A, F, O, R) for each species and this is not possible at the moment as the value list defaults to a ticklist - do you know if it is possible to create a value table for string parameters? or would I be better off going the .net route? if so where is the best place to get started? Any pointers are much appreciated. Cheers Tim
... View more
09-28-2013
02:04 PM
|
0
|
0
|
1908
|
|
POST
|
Hi All, Appreciate this is an old thread but any progress on this? has it been solved in 10.2? I have looked at the help menus but it doesn't give any more information than 10.1 version. If possible I would like a 2 column input table - column 1 will be a habitat type selected from a dropdown and then column 2 would be a species selected from another dropdown whose values would change depending on the habitat selected for column 1. Cheers Tim
... View more
09-27-2013
01:29 AM
|
0
|
0
|
1908
|
|
POST
|
Hi there, As far as I know the MakeFeatureLayer tool just creates a temporary layer for use within the current tool or mxd and does not save it to disc (copy features will do this if needed) and therefore your "OutPolyLyr" does not actually exist in your "C:/ArcGIS/SurfCityData/Scratch/ViewshedPolys" folder and the Select by attribute tool cannot find it. If you remove or comment out the OutPolyLyr = OutPoly.split(".")[0]+"_Lyr" line from your script then I think it should work. Hope this helps thnaks Tim
... View more
09-22-2013
10:17 AM
|
0
|
0
|
371
|
|
POST
|
Hi All Just in case anyone is interested I solved this by creating a python script tool which takes a featureset input for the pond and a text parameter for the pond id and then uses insert cursors to add a row to all required tables. Hope this helps someone else Cheers Tim
... View more
09-14-2013
03:20 PM
|
0
|
0
|
567
|
|
POST
|
As a work around you could create a geodatabase annotation featureclass from your labels and then include / add this to your mobilecache. cheers Tim
... View more
09-13-2013
10:30 AM
|
0
|
0
|
1517
|
|
POST
|
Hi there In short, labelling is not one of ArcGIS for Windows Mobile strengths - we have had similar issues and the only solution is to add a new field and concatenate the other fields to populate this but this will only create a one line label - we have not been able to add multi-line labels. Also, you cannot define multiple label classes either, for example for different colors / styles, and all features are labelled using the first label class by default. Hope this helps and maybe more labelling options will be available in AGM 10.2 if it is ever released... 😉 Tim
... View more
09-13-2013
10:26 AM
|
0
|
0
|
1517
|
|
POST
|
Hi All, I am just investigating Relationship Classes and am trying to figure out if it is possible to...when editing and creating new features to add the new record to all related layers and tables...? For example, we undertake surveys of ponds for newts, frogs and toads which require more than one visit so we have a polygon feature class of our pond locations and then tables of results for each visit. For existing, known ponds the relationship class is great and means when clicking on a pond we can expand the + and see results for each visit. However, when we come to add a new pond it needs to be added to all 6 layers which is quite time-consuming and allows potential errors with incorrect PondID being entered in each table. Therefore, is it possible to add the pond polygon to the featureclass, add the PondID and for this to then automatically create a record in each table which inherits the same PondID...? Any pointers much appreciated Thanks Tim
... View more
09-05-2013
08:21 AM
|
0
|
1
|
1182
|
|
POST
|
Hi Jared, Without using python you could do a spatial join with the bird points as the target layer and the state polygons as the join layer. This would assign a StateID / Name to each point which you could summarise by and get the sum of the bird count attribute. If necessary you could join this by attribute back to the original state polygon layer. The alternative in python would be to use a search or update cursor to loop through each feature in the polygon layer, select by location the points within in each feature, get the value of the bird count attribute for each point, sum them and then update a field in the polygon layer - this is straightforward to code but would probably take longer than the spatial join approach described above. Hope this helps Cheers Tim
... View more
09-02-2013
03:14 PM
|
0
|
0
|
1096
|
|
POST
|
hi there, at the end of the script i would delete all your defined variables so that none are kept in memory within your arcmap session. you could also try using an update cursor rather than calculate field hope this helps Tim
... View more
08-23-2013
01:37 PM
|
0
|
0
|
1349
|
|
POST
|
Hi there, in the code you need to get the parameter as text: parameter1 = arcpy.GetParameterAsText(n) ## n is the position of the parameter in the list defined below starting at 0 then you add the script to ArcToolbox... http://resources.arcgis.com/en/help/main/10.1/index.html#/Adding_a_script_tool/00150000001r000000/ hope this helps cheers Tim
... View more
08-21-2013
12:33 PM
|
0
|
0
|
436
|
|
POST
|
Hi there this might be too obvious and apologies if so but did you set an 'table' output parameter when adding your script to toolbox? thanks Tim
... View more
08-06-2013
02:02 PM
|
0
|
0
|
2287
|
|
POST
|
Hi All, Apologies as I realise I have asked many similar questions over the last few months but we are still struggling with the WGS to British National Grid transformation in ArcGIS for Windows Mobile... The second half of the following page describes exactly what we need to do but, and again excuse my ignorance, I am unsure how to access and edit the SpatialReference class... http://resources.arcgis.com/en/help/windows-mobile-sdk/concepts/index.html#/Spatial_references_in_ArcGIS_for_Windows_Mobile/01sp0000003v000000/ Can this be done by editing the dlls in "C:\Program Files (x86)\ArcGIS\Mobile10.1.1\bin" or do I need to create a custom task / extension in the SDK...? Any advice or pointers would be much appreciated. Kind regards, Tim
... View more
07-30-2013
02:02 AM
|
0
|
0
|
430
|
|
POST
|
Hi Connor Just out of interest - have you managed to deploy ArcGIS for Windows Mobile 10.x projects in a co-ordinate system other than WGS84...? We have found that the software is not able to transform the GPS WGS84 input co-ordinates into British National Grid and therefore set up all our data and mobile projects in WGS84. We are using Trimble Juno 5 devices. Thanks Tim
... View more
07-18-2013
03:48 AM
|
0
|
0
|
1207
|
|
POST
|
Hi Darryl, We have found that GCS/World/GCS_WGS_1984.prj to be the most reliably accurate but it does mean transforming all our layers and base maps from British National Grid to this for every project deployment which can take some time. Hope this helps - let us know if you find an alternative way of transforming projected co-ordinate systems to work with ArcGIS Mobile 10.x and / or hopefully this issue is resolved in ArcGIS 10.2 - it was fine in ArcGIS Mobile 3.x...! Thanks Tim
... View more
07-11-2013
04:35 AM
|
0
|
0
|
1207
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-14-2014 12:53 PM | |
| 1 | 08-13-2014 05:36 AM |
| Online Status |
Offline
|
| Date Last Visited |
08-07-2025
06:29 AM
|