Select to view content in your preferred language

Automate Maritime chart finishing in ArcGIS Pro 3.4

446
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
1 Solution

Accepted Solutions
Tobias-Venable
Occasional Contributor

Could you try activating the map initially and then launching the tool? Based on the missing drop down button next to your Map Frame parameter, activating the map may resolve your issue.

View solution in original post

11 Replies
Tobias-Venable
Occasional Contributor

Could you try activating the map initially and then launching the tool? Based on the missing drop down button next to your Map Frame parameter, activating the map may resolve your issue.

NguyenBichHue
Occasional Contributor

Hi, Tobias-Venable. Thank you so much for you response. It's reality helpful for me. I passed this step, however I have another problem again. Please kindly help me.

I have new error, though I already no stick on MakeGridsAndGraticulesLayer, like this:

Start Time: Saturday, December 14, 2024 9:25:28 AM
Failed to execute. Parameters are not valid.
Grid type: INT2_E

Description: INT2 E grid for South Western hemisphere

Rotation Type: Fixed

Scale Type: Use Environment

These units are treated as page units in this tool.
ERROR 001079: The primary coordinate system must be a projected coordinate system.
Failed to execute (MakeGridsAndGraticulesLayer).
Failed at Saturday, December 14, 2024 9:25:29 AM (Elapsed Time: 1.25 seconds)

NguyenBichHue_0-1734149649404.png

 Please guide me.

Thank you,

 

0 Kudos
NguyenBichHue
Occasional Contributor

Please find this picture

NguyenBichHue_1-1734149826081.png

 

0 Kudos
Tobias-Venable
Occasional Contributor

Unfortunately when we attempted to reproduce your issue using the same settings, it executed successfully for us. Would you be able to bundle up your project and share it to see if we could reproduce your error using that?

NguyenBichHue
Occasional Contributor

Thank you Tobias-Venable,

Please check the attached project and give me some advices. 

Best regards,

 

0 Kudos
Tobias-Venable
Occasional Contributor

I don't think I have the same project setup you were using in the picture of the failure as the attached project has a different map name. I also noticed in this project there were existing generated grid features, suggesting this project has the result of a successful run of MakeGridsAndGraticulesLayer.

 

I still attempted to reproduce your error using the project you provided, but it ran successfully:

TobiasVenable_0-1734643760996.png

 

0 Kudos
NguyenBichHue
Occasional Contributor

Hi Tobias-Venable, I still can not run successfully like below error's picture. 

 

 

 

 

NguyenBichHue_1-1734671755991.png

Please rerun with that data for select all of chart finishing process. Thank you.

 

0 Kudos
Tobias-Venable
Occasional Contributor

Could you try adding GRD_GRD_GRIDS to the map and try again?

NguyenBichHue
Occasional Contributor

I still have error, event I add GRID_Girds.

NguyenBichHue_0-1734677351066.png

 

0 Kudos