Questions tagged [cartographic-information-model]
Use for questions about the Cartographic Information Model (CIM) of the ArcGIS platform
21
questions
0
votes
1
answer
40
views
How to use CIM in Python to enable time?
I'm trying to automate with Arcpy enabling time for the layers in my Drawing order but can't figure it out. From digging I've found that the only way to do it is through CIM but there's limited ...
0
votes
0
answers
49
views
UniqueValueRenderer will not write polygons to the map
I'm attempting to apply symbology to a polygons layer. It does set symbology to the layer, but the actual info is stuck in .
What is wrong in my code?
T = "19N"
R = "5E"
TWP = &...
3
votes
2
answers
179
views
Changing active definition query for multiple layers in group layer using ArcPy in ArcGIS Pro
I am using ArcGIS Pro 3.x.
I'm trying to make a script to automate changing the definition query for multiple layers in a group layer in Pro. The definition query is essentially just using a project ...
0
votes
0
answers
52
views
ArcPy cartography.ConvertLabelsToGraphics runs in the Python window in ArcGIS Pro, but fails to run from script/ToolBox
I am trying to run the code below to convert labels into Graphics. The code works fine when I run it in the Python window in ArcGIS Pro 3.1.0. However, when I place it the same code that create the ...
1
vote
1
answer
125
views
How iterate with cim.featureTable.fieldDescriptions?
I have the next code:
#Importar librerías necesarias
import arcpy
import pandas as pd
#Obtiene el Mapa activo
aprx = arcpy.mp.ArcGISProject("CURRENT")
current_map = aprx.activeMap
...
1
vote
0
answers
69
views
Source layer not recognized in tableFrame element of ArcGIS Pro Layout
I created a map series layout in ArcGIS Pro, and try to update it from a Python toolbox, using Cartographic Information Model (CIM).
Each time the toolbox is running, the layer used to display ...
0
votes
1
answer
62
views
Using CIM Maplex to include feature weights and never remove unplaced labels [closed]
I'm using ArcGIS Pro 2.9.
I've been trying to add feature weights and to include unplaced labels to a feature class, yet my understanding of the CIM engine seems to be lacking. My code below doesn't ...
0
votes
1
answer
90
views
Save CIMTableFrameField to JSON with Arcpy
I am trying to automatically update a layout table frame with a layer previously created from a model.
I am using CIM toolset. I am able to look for the table frame element and choose the layer to use ...
2
votes
1
answer
415
views
Adding new MapFrame to Existing Layout using arcpy and ArcGIS Pro
I am attempting to add a new MapFrame to an existing Layout Object in an ArcGIS Pro Project;
import arcpy
aprx = arcpy.mp.ArcGISProject("CURRENT")
layout = aprx.listLayouts("LayoutOne&...
1
vote
1
answer
126
views
Python CIM raster symbology edits don't appear in Symbology window
I want to set the symbology across multiple rasters to use custom min/max values. The following script is working as intended, and the raster displays correctly. However, the Symbology window does ...
0
votes
1
answer
168
views
Automate adding symbol size expression for all layers ArcGIS Pro
I have many layers on a map. I need to write an Arcade expression in the symbol size expression box, but I need to do it in all the layers. I do not want to do that one by one.
I wanted to create a ...
2
votes
2
answers
373
views
Increasing Sample Size for Symbology with arcpy.mp and CIM
I am closing in on finishing a script for some map production in ArcGIS Pro 2.9 and one of my last steps is to increase the sample size of the layer being symbolized, then apply a color ramp, and ...
2
votes
0
answers
180
views
Set Label to pre-defined text symbol from gallery ArcPy and CIM
In ArcPy (ArcGIS Pro 2.5), I am looking to set a label symbol to a pre-defined text style from the gallery. I'm hoping I can do something like this:
lblClass.visible = "True"
lyr....
3
votes
1
answer
578
views
Setting Halo property of label using ArcPy and CIM
I don't know how to set halo property in Python. I try it by CIM (code below) but I don't know, what line "lc.textSymbol.symbol.haloSymbol" should contain.
Can you advise me how to achieve ...
1
vote
1
answer
61
views
How to use CIMWFSServiceConnection in ArcGIS Pro
Does anyone know how to add a WFS service to a map using the CIMWFSServiceConnection class?
The WMS and WMTS equivalents work perfect, but when using CIMWFSServiceConnection, the layer that's added to ...
1
vote
1
answer
355
views
Label placement over other features and labels in ArcGIS Pro
I need place labels regardless of collisions with other layers. I use ArcPy and CIM. I need to place the label in the center of the polygon. At the same time, I need it not to change its position or ...
0
votes
1
answer
816
views
Update Query on Query layer in ArcGIS Pro
While updating query on query layer in ArcMap is nightmare process, it seems with ArcGIS Pro this could possibly be better using Python CIM Access.
I have tried following code and it works in the way ...
1
vote
1
answer
247
views
ESRI JS API - CIMSymbol with text from graphic attribute
The following sample shows a great use of the CIMSymbol in the ESRI JS API.
https://developers.arcgis.com/javascript/latest/sample-code/cim-symbols/index.html
Is it possible to set the textString ...
4
votes
1
answer
716
views
What is arcpy.cim?
In the help for ArcGIS Pro 2.4's Python CIM access there is "Example 3: Modify layer symbology" which has this code:
# Reference a project, map, and layer using arcpy.mp
p = arcpy.mp.ArcGISProject('...
1
vote
1
answer
766
views
Viewing ArcGIS Pro layer as JSON to illustrate CIM (Cartographic Information Model)
In order to work with the Cartographic Information Model (CIM) from ArcPy with ArcGIS Pro I am interested in viewing the JSON for a particular layer.
In a YouTube video from Esri's 2019 Developer ...
0
votes
2
answers
993
views
Altering graticule intervals logically in varying map scales using ArcPy and/or Data Driven Pages?
This question appears on many sites and I was wondering if there was a script that is now available that resolves it?
My workarounds have been to create multiple mxd's that just hold the same scale ...