Questions tagged [cartographic-information-model]

Use for questions about the Cartographic Information Model (CIM) of the ArcGIS platform

Filter by
Sorted by
Tagged with
2 votes
1 answer
76 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&...
user avatar
  • 305
1 vote
1 answer
39 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 ...
user avatar
  • 325
0 votes
1 answer
53 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 ...
user avatar
  • 21
2 votes
2 answers
110 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 ...
user avatar
1 vote
0 answers
51 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....
user avatar
  • 11
3 votes
1 answer
235 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 ...
user avatar
  • 143
1 vote
1 answer
41 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 ...
user avatar
  • 4,182
1 vote
1 answer
98 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 ...
user avatar
  • 143
0 votes
1 answer
470 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 ...
user avatar
  • 9,276
1 vote
1 answer
159 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 ...
user avatar
  • 31
4 votes
1 answer
389 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('...
user avatar
  • 63.9k
1 vote
1 answer
498 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 ...
user avatar
  • 63.9k
0 votes
2 answers
924 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 ...
user avatar
  • 7,616