AnsweredAssumed Answered

Removing items via DAML - not working

Question asked by fsheagle-co-nz-esridist Employee on Jul 15, 2018
Latest reply on Jul 23, 2018 by fsheagle-co-nz-esridist

Hi,

I'm trying to strip out the ArcGIS Pro UI via DAML. 

This bit works:

<backstage>
<deleteButton refID="esri_core_saveProjectButton" />
<deleteButton refID="esri_core_saveProjectAsButton" />
<deleteButton refID="esri_core_showOptionsSheetButton"/>
<deleteTab refID="esri_core_AddInsTab"/>
<deleteTab refID="esri_core_CondaTab"/>
<deleteTab refID="esri_core_LicensingTab"/>
</backstage>
</ArcGIS>

 

but if I use something like this

<updateModule refID="esri_mapping" caption="Mapping" description="Mapping">
<dockPanes>
<deleteDockPane refID="esri_mapping_symbologyDockPane"/>
<deleteDockPane refID="esri_mapping_labelClassDockPane"/>
<deleteDockPane refID="esri_mapping_popupsDockPane" />
<deleteDockPane refID="esri_mapping_locateDockPane"/>
<deleteDockPane refID="esri_mapping_geocodeTableDockPane"/>
<deleteDockPane refID="esri_mapping_animationDockPane"/>
<deleteDockPane refID="esri_mapping_animationEditorDockPane"/>
<deleteDockPane refID="esri_mapping_animationPreviewDockPane"/>
<deleteDockPane refID="esri_mapping_animationTimelineDockPane"/>
<deleteDockPane refID="esri_mapping_temporalViewerDockPane"/>
<deleteDockPane refID="esri_mapping_annotationDockPane"/>
<deleteDockPane refID="esri_mapping_annotationClassCreateDockPane"/>
<deleteDockPane refID="esri_mapping_interactiveAnalysisDockPane"/>
</dockPanes>
</updateModule>

 

It doesn't - these items are still visible / usable in the ArcGIS Pro UI. I can nuke it via var someElements = from seg in database.Root.Descendants(nsp + "module") select seg; and removing the elements but I'm sure this will cause null exceptions down the track. Why isn't the DAML being honoured? I'm missing something.

Thanks,

Fraser

Outcomes