Select to view content in your preferred language

Automate Maritime chart finishing in ArcGIS Pro 3.4

682
11
Jump to solution
12-13-2024 02:13 AM
NguyenBichHue
Occasional Contributor

Hello Everyone. 

I have issue when running Chart Automation tool in Maritime ArcGIS Pro 3.4. Like this:

Traceback (most recent call last):
File "C:\Users\Public\Documents\ArcGIS Maritime\Product Files\3.4\Charting\Tools\ChartAutomation.py", line 30, in tool_execute
ca = ChartAutomation(layout, map_frame_name, target_ws.value, aoi, chart_scale, proj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Public\Documents\ArcGIS Maritime\Product Files\3.4\Charting\Tools\ChartAutomationFunctions.py", line 48, in __init__
self.updateMembers(layout, map_frame_name)
File "C:\Users\Public\Documents\ArcGIS Maritime\Product Files\3.4\Charting\Tools\ChartAutomationFunctions.py", line 84, in updateMembers
if not self.map_frame:
^^^^^^^^^^^^^^
AttributeError: 'ChartAutomation' object has no attribute 'map_frame'

I think I am wrong in setting Map Frame. Please kindly guide me about issue

NguyenBichHue_1-1734084773580.png

Thank you,

 

 

 

 

0 Kudos
11 Replies
Tobias-Venable
Occasional Contributor

There appears to be some odd cache/refresh issue that I was able to reproduce with your map package. We'll need to look further into the issue, but I believe you can work around it.

The failure is coming from attempting to open the GRD_GRD_Grids feature class which is generated as part of the MakeGridsAndGraticulesLayer GP tool. After the failure, I refresh the GRD_Grids feature dataset in the target geodatabase and opened the properties on the GRD_GRD_Grids feature class. After this refresh, I ran CAT again and it succeeded.

TobiasVenable_1-1734735354229.png

 

TobiasVenable_0-1734735280361.png

 

NguyenBichHue
Occasional Contributor

Hi Tobias-Venable, thank you so much for your guide. 

I try to run MakeGridsandGraticules first, then run the remaining processes, and do not select GPU. So I can create successfull Chart Automation workflow. 

Thank you and Best regards,

 

0 Kudos