|
POST
|
HIGHLY suggest you use string formatting to developing your where expression in line 58. This makes matching single and double quotes and using/not using quotes (for non-string fields in your expression) far easier. For example: where = "Sitename = '{}' AND Category = '{}' AND Specie = '{}' AND Datum >= '{}'".format(
Sitename, Category, Specie)
arcpy.Select_analysis(locationbirdinfo, OutputFC, where)
... View more
03-13-2020
02:07 PM
|
0
|
0
|
2271
|
|
POST
|
My suggestion is to calculate your value first using the Calculate Value tool. Set the Row Count as precondition to the Calculate Value tool Calculate Value Expression: ((%Row Count% + 1) / 2 Calculate Value output data type: Expression Then you can connect the output of the Calculate Value to your Calculate Field tool as an input parameter.
... View more
03-03-2020
09:40 PM
|
0
|
0
|
2533
|
|
POST
|
My point is you can call a model tool from Python, so you don't need to export the model at all.
... View more
02-19-2020
09:51 PM
|
0
|
1
|
3958
|
|
POST
|
Make sure OutputFC is not set to intermediate. Also: Why not create a small Python script that can import your toolbox with arcpy.ImportToolbox() and call your model tool from Python.
... View more
02-19-2020
09:46 PM
|
0
|
0
|
2698
|
|
BLOG
|
Why the --no-pin? If you have another clone that you don't need to be used by Pro, you would be totally fine in pulling the pin, but wouldn't you want the to use the pin to ensure you do not break Pro's Python tools.
... View more
02-15-2020
10:25 AM
|
0
|
0
|
3625
|
|
BLOG
|
These instructions require that you have write access to the Program Files folder. This is not the case for a lot of people that work for large organizations. Fortunately, Esri has been working on their interface in Pro to manage Anaconda environments. If you are pretty much working just in Pro, you can use Pro's Python package manager instead of Navigator. If you clone your environment as a regular user in this environment, it will create an Anaconda environment in your user folder that you have complete access to modify. This was set up so it works with regular users a few versions back and it has been improving.
... View more
02-15-2020
08:43 AM
|
0
|
0
|
5632
|
|
POST
|
If your model is running perfectly, why not call it from a python script that has the parameter validation (I assume that is what you mean by "filtering") set up? You can call a ModelBuilder tool from Python: ImportToolbox—Help | Documentation ModelBuilder itself also has some built in parameter validation that handle certain simple cases, for example only allow a point feature input instead of all kinds of feature classes: Feature class filter—Help | Documentation
... View more
02-15-2020
08:01 AM
|
0
|
3
|
3958
|
|
POST
|
You didn't say how big your model is or post a model, but my experience is that really large models get unstable. ModelBuilder has to validate the entire model when you open it, making sure are parameters are valid and datasets are there. If a model gets too large this process can bog down quite a bit. I agree with Dan that you should break the model into pieces and have a driver model that calls each piece in turn. Smaller submodels much easier to edit, debug and run, and they will not "freeze" while you wait for dozens of tools and parameters to validate. Creating smaller pieces also has has the added benefit that the pieces are much more re-usable than a big behemoth model. This is also true for Python scripting!
... View more
02-15-2020
07:59 AM
|
0
|
3
|
2698
|
|
POST
|
If Define Projection works on a Feature Dataset I would be surprised. If it did, I wouldn't recommend it because if you change the units, the baked in resolution and xy domain is probably no longer a good fit for the new coordinate system. The only way around this I can think of is to not use the import XML but instead create the feature datasets using the Create Feature Dataset tool, which allows you to specify resolution in the environment settings. Instead of importing a workspace document, I would just run all the tools to generate the schema, relationships, and topology you want, in the coordinate system and resolution you want.
... View more
02-11-2020
09:59 PM
|
1
|
1
|
2906
|
|
POST
|
Are there plans to add this significant enhancement of the tool to ArcMap 10.8? Is it even a possibility?
... View more
02-11-2020
09:50 PM
|
0
|
0
|
2001
|
|
POST
|
When the exe launches and asks where to store data, don't unpack to C:\Program Files(x86), much better to unpack to another location (C:\ArcGIS, C:\installs\ArcGIS) and after it is unpacked, run the setup (it will then prompt you for the final install step).
... View more
02-03-2020
04:01 PM
|
0
|
1
|
3699
|
|
IDEA
|
When I am doing anything in a layout, for example when I change an appearance property on a feature layer within a map frame, the ribbon jumps back to the layout ribbon. To get back to where I was (say to change the font color again) I need to select the item I was working on before to bet back to ribbon. This is seriously slowing down my workflow. I understand that if a layout is the main focus, the user would want to go back and do another layout thing like insert a scalebar, but this workflow is useful, editing the map while the layout is open. My workaround is to jump over and make these changes in the map view the map frame references. It would be great if I could get this same behavior (ie not lose my ribbon with every little map change) by activating the map frame.
... View more
02-03-2020
03:48 PM
|
2
|
5
|
1782
|
|
POST
|
My advice to my students to avoid this problem is to work in map view when editing the map, when the map view is open and focused (not the layout), the ribbon stays put. This is Pro 2.4.3.
... View more
02-03-2020
03:42 PM
|
0
|
0
|
2083
|
|
IDEA
|
This would only make sense security wise if that user had given you permission explicitly to do so under their credentials. Maybe to keep it really secure this would have to be done using a one-time-use token?
... View more
01-18-2020
11:29 AM
|
0
|
1
|
1218
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-11-2021 01:26 PM | |
| 5 | 12-10-2021 04:58 PM | |
| 1 | 02-27-2017 09:30 AM | |
| 2 | 12-04-2023 01:05 PM | |
| 1 | 04-12-2016 10:17 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-19-2024
12:10 AM
|