|
POST
|
Thanks! I knew there was a way to do it; just forgot it was called CIM access. I am now able to turn the extents on/off in a Python script.
... View more
08-21-2020
10:50 AM
|
1
|
0
|
1925
|
|
POST
|
Is it possible to modify extent indicators in a map frame using arcpy? I have a map series with and some of the maps have insets with extent indicators; I would like to be able to turn on/off the inset maps and extent indicators when I export the maps to pdfs. In the ArcGIS Pro Contents pane the extent indicators show up under the map frame element but when I access the map frame element in Python there doesn't seem to be any options for the extent indicators. Thanks, Mark
... View more
08-21-2020
06:48 AM
|
0
|
2
|
1954
|
|
POST
|
Thanks, I'm still using 2.4.1. Here is the expression: tempLayout.exportToPDF(mapFolder+pageNames[page]+'.pdf', 300, 'BEST', True, 'JPEG', False, 'None', False, 70, False, True) It works now since I removed the final argument. Thanks for the tip on naming the parameters.
... View more
07-28-2020
12:43 PM
|
0
|
1
|
819
|
|
POST
|
I may have found a mistake in the exportToPDF documentation for a Layout. The documentation on this page: Layout—ArcGIS Pro | Documentation includes 'embed_color_profile' but I get en error in Python that I have too many arguments when I include a value for that. The exportToPDF function in Map Series both includes that argument and it works.
... View more
07-28-2020
09:07 AM
|
0
|
3
|
875
|
|
POST
|
I have the join so that I can make one change in the table and it changes the features in the index layer without having to go feature by feature and change things.
... View more
05-08-2020
08:06 AM
|
0
|
0
|
1858
|
|
POST
|
I'm using a map series in my ArcGIS Pro project to create a series of pdf maps. I have a Python script to create the pdf maps. When I try to use pageRow to get the name of the map from the index layer I keep getting an error: ValueError: Type names and field names must be valid identifiers: 'SWS_Pages.OBJECTID'. My script worked just fine on a different project; the only difference I can see is that on this current project my index layer has a join so the field names have a period between them. Does pageRow see the period as an invalid character and then throw an error? Is there another way to do this? I tried using the getattr() function but with the same result. Thanks.
... View more
05-07-2020
02:31 PM
|
0
|
2
|
1909
|
|
POST
|
Is there any way to lock the swatch size for a feature class in the legend? Currently if I use an offset on a feature then the swatch expands or contracts accordingly. I would like to have the swatch size stay the same even if there is an offset.
... View more
02-21-2020
05:46 AM
|
0
|
0
|
407
|
|
POST
|
The only work around I have found is to export the subset of the table; instead of using a query, and use the new table in the join.
... View more
12-03-2019
09:01 AM
|
0
|
0
|
2366
|
|
POST
|
I'm having problems changing layer symbology in ArcGIS Pro using Python. I have a feature class where the symbology has changed because the data in the fields used to define the symbolgy has changed. I'm trying to use Python to create a list of layers that need to be changed and then updating the symbology using the ApplySymbologyFromLayer function. However; in Pro I am unable to make any changes using an IDE. If I try to use the Python window in Pro then it only updates the first target layer; but it updates that first layer for as many times as the number of items in the layer list. The only way I can update the symbology correctly is to use the Python window in Pro and rename all the target layers so they have different names. Conversely, in Desktop I am able to create a list of layers and use the ApplySymbologyFromLayer with no problems; whether I use an IDE or the Python window. Does Pro treat layer objects differently for some reason? I've noticed that using the geoprocessing method for importing symbology layers with the same name have a number appended to the end. How can I make changing the layer symbology in Pro with Python work?
... View more
11-13-2019
08:19 AM
|
1
|
2
|
1213
|
|
POST
|
I have a feature layer that I am joining a table to. The table has multiple records that match some of the features in the feature layer; so when I perform the join there are duplicate features that have different attributes from the joined table. When I use a definition query (on a field in the joined table) to get a subset of the feature class it doesn't always take the matching table attribute data; it sometimes uses the attribute data for a records that does not fit the definition query. Here is my example: The definition query is for all features where Field 6 equals 6006; but for some of the features with multiple records in the table it is not taking the record that fits the query. I have tried duplicating this in ArcMap and do not have this same problem. All features match the definition query. Is there a fix for this?
... View more
05-08-2019
11:50 AM
|
3
|
3
|
2680
|
|
POST
|
I noticed that ArcGIS Pro now has an "Output as Image" option for exporting to PDF and that is a welcome sight. Is there any way to access this setting using arcpy? Thanks,
... View more
04-24-2019
01:01 PM
|
1
|
0
|
552
|
|
POST
|
So I think I found the solution. In Spyder I went to 'Tools/Current user environment variables...' and cleared out the values in PYTHONPATH. That has stopped adding all of those unrelated paths and only loads the paths for each installation of Python.
... View more
04-16-2019
09:03 AM
|
0
|
1
|
3585
|
|
POST
|
It was installed but is not now. I checked my home computer where I have ArcGIS Desktop 10.7, background geoprocessing, and ArcGIS Pro 2.3 installed and there is no python path crossover.
... View more
04-16-2019
07:34 AM
|
0
|
2
|
1079
|
|
POST
|
It looks like my computer is having some issues with the python path. I seem to have some crossover between python versions. This is included in the python path and sys.path for my python 2.7 32 bit installation: Those paths are also included included in the python 3.6 installation; along with some python 2.7 paths: Is there any way to make changes to these paths so that they load correctly?
... View more
04-16-2019
07:17 AM
|
0
|
4
|
1079
|
|
POST
|
Thanks for that list. I have some control over install/uninstall. I am able to add/remove ArcGIS Desktop 10.6.1 but not ArcGIS Pro 2.3. I have asked the IT department to remove Pro. I'm hoping by removing all ESRI products and Python references I can start over.
... View more
04-12-2019
08:01 AM
|
0
|
5
|
1722
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-08-2023 10:12 AM | |
| 2 | 03-22-2023 11:10 AM | |
| 1 | 09-14-2020 08:13 AM | |
| 1 | 09-01-2017 11:10 AM | |
| 1 | 08-21-2020 10:50 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-01-2025
08:07 AM
|