Closed kgonzago closed 6 years ago
Here is the data Chris was using: CmacConvexHullPoints.gdb.zip
@kgonzago - I see what is happening in this scenario - by adding data to the Military Info Database with the append GP tool - some of the fields, but most importantly SymbolSet (2525D) or ExtendedFunctionCode (2525C), are unexpected null. Looks like we never planned for this scenario.
Fixing the crash would be simple, but getting things to fully work in this scenario might be more involved.
For now, the workaround would be to run CalculateField with a valid value on this required field. Example of the workaround:
(Added) We should probably also change the data model so that all of the feature classes have a good default value for this field - that will fix this scenario and make the overall solution more robust
The crash that occurs when the symbol set (2525D) or Function Code (2525C/B) is fixed in this branch: https://github.com/Esri/military-symbol-editor-addin-wpf/tree/csm/%23214-null-symbolset-crash
However this does uncover some missing functionality in 2525D to fully support the workflow above. This workflow is: (1) import/append a table of existing data that lacks symbol information into the military overlay datamodel (2) use the military symbol editor to set the military symbol for the feature
Because in 2525D you can't change the symbol type (entity code) for a symbol you are modifying.
2525C/B2 does allow you to change the symbol type (function code):
Moving into to Sprint 10
Addressed crash in PR #221 + #223
Also updated original issue to add more steps and pro 2.1 project with test data.
I will also create a few additional issues with some things noticed while testing this (2525D can't change/modify the features entity field -#222, 2525B HQ/TF/FD modifier no longer working)
I have been able to verify this issue using the test data provided above and the outlined steps:
Chris McGuire from Defense Services reported the select tool in the Modify Tab crashed pro.
Given: ArcGIS Pro 2.1.1, Military Tools says 2.0 (date created says 6/28/2017 on AddinX file)
Here are the steps he took to repro his issue:
(ADDED - more detailed steps):
Start with/open the test project : Test-2525Bc2-Append.ppkx
*
--> https://esri.box.com/s/s9wefqejrrju2wofzhb79rmi3nj06ttt (note: requires Esri box login)Open the Military Symbol Editor
Use the Select Tool on the Modify tabe to select on off the symbols with the "?" on the map
Results: Pro Crash
Expected Results: Can select the symbol and modify
*
This Pro Project was created using the steps:Start Pro with New Map Project
Launch Military Symbol Editor
Create a 2525B Military Overlay project a. On Military Symbol Editor Search Tab b. Search for a symbol, click on symbol c. Click yes to add Military Overlay datamodel d. Save project
Add non-military overlay test data to the project - from ConvexHullPoints.gdb --> https://esri.box.com/s/w8q3gdfh96igq8hw29r1ncki41ihvntz (note: requires Esri box login)
Save the Project
Return to the steps to select the data from the Units Layer on the map in the repro steps above (at
*
)