<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to create a custom category for an added layer through the Operation class for the undo/redo stack in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-create-a-custom-category-for-an-added-layer/m-p/1588932#M12676</link>
    <description>&lt;P&gt;I am having difficulty being able to create a custom category for adding a map layer through the Operation class that will go into the undo/redo stack using C# and the 3.1 SDK.&amp;nbsp; By default, it appears that the category for a new layer is simply "Mapping."&amp;nbsp; However, I want to add layers that I can find and differentiate them from others in the undo/redo stack with a custom category, like "MyCategory" (or something else).&amp;nbsp; I would ultimately like to be able to make a call to eventually remove these custom layers from the undo/redo stack when they are no longer needed with some code, like &lt;STRONG&gt;map.OperationManager.ClearUndoCategory("MyCategory")&lt;/STRONG&gt;.&amp;nbsp; I have tried subclassing the Operation class into a new class that I could define the custom category with, but this doesn't appear to be possible in the 3.1 SDK because "Category" appears to be read only.&amp;nbsp; I have read online that it is possible to assign a custom category to an operation, but haven't found a workable option (including using ChatGPT).&amp;nbsp; Is this possible and if so how would I go about doing it?&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2025 14:23:36 GMT</pubDate>
    <dc:creator>DaveLewis73</dc:creator>
    <dc:date>2025-02-25T14:23:36Z</dc:date>
    <item>
      <title>How to create a custom category for an added layer through the Operation class for the undo/redo stack</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-create-a-custom-category-for-an-added-layer/m-p/1588932#M12676</link>
      <description>&lt;P&gt;I am having difficulty being able to create a custom category for adding a map layer through the Operation class that will go into the undo/redo stack using C# and the 3.1 SDK.&amp;nbsp; By default, it appears that the category for a new layer is simply "Mapping."&amp;nbsp; However, I want to add layers that I can find and differentiate them from others in the undo/redo stack with a custom category, like "MyCategory" (or something else).&amp;nbsp; I would ultimately like to be able to make a call to eventually remove these custom layers from the undo/redo stack when they are no longer needed with some code, like &lt;STRONG&gt;map.OperationManager.ClearUndoCategory("MyCategory")&lt;/STRONG&gt;.&amp;nbsp; I have tried subclassing the Operation class into a new class that I could define the custom category with, but this doesn't appear to be possible in the 3.1 SDK because "Category" appears to be read only.&amp;nbsp; I have read online that it is possible to assign a custom category to an operation, but haven't found a workable option (including using ChatGPT).&amp;nbsp; Is this possible and if so how would I go about doing it?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 14:23:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-create-a-custom-category-for-an-added-layer/m-p/1588932#M12676</guid>
      <dc:creator>DaveLewis73</dc:creator>
      <dc:date>2025-02-25T14:23:36Z</dc:date>
    </item>
  </channel>
</rss>

