When attempting to use arcpy.mp.ArcGISProject('CURRENT') within a labeling properties class python expression a map drawing alert is generated although the expression is valid. I simplified the label logic to show just the key issue. This technical support FAQ page indicates that arcpy.mp.ArcGISProject('CURRENT') returns the OSError when ran in a standalone environment. I am trying to run this in the ArcGIS Pro labeling properties. This Arcpy documentation doesn't designate that labeling properties is outside of the application. Is labeling properties somehow considered a standalone environment, even though it appears to be within ArcGIS Pro? @ShareUser
I have only seen examples using the LabelClass within the mp module as in the examples here
LabelClass—ArcGIS Pro | Documentation
I don't know if arcpy used to create expressions in the environment you show is possible since it doesn't access a project directly
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.