<?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 Re: SelectEntity() - Slow performance in Vault Customization Forum</title>
    <link>https://forums.autodesk.com/t5/vault-customization-forum/selectentity-slow-performance/m-p/6873683#M7805</link>
    <description>&lt;P&gt;Just an update to this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I was developing this code I did it in an external VS solution.&amp;nbsp;After I moved it into the project we load in Vault explorer and used the connection object I get when I register a new detail tab, this issue resolved itself. Responsiveness is the same as browsing in Vault explorer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Tore&lt;/P&gt;</description>
    <pubDate>Mon, 13 Feb 2017 12:49:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-02-13T12:49:59Z</dc:date>
    <item>
      <title>SelectEntity() - Slow performance</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/selectentity-slow-performance/m-p/6868671#M7804</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the&amp;nbsp;Autodesk.DataManagement.Client.Framework.Vault.Forms.Library.SelectEntity() form I experience very slow performance when entering folders with many files. Has anyone experienced the same? And have anyone been able to solve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The performance seems to be related to the amount of entities in the folder being browsed. Folders with few sub folders and files renders in less than a second. A folder containing 100-150 entities takes 20-30 seconds. Browsing the same folder in Vault Explorer renders in seconds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried with and without filters and performance is the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SelectEntitySettings settings = new SelectEntitySettings();
            settings.ActionableEntityClassIds.Add("FLDR");
            settings.ActionButtonEnablementRule = SelectEntitySettings.ActionButtonEnablementRules.MustExist;
            settings.ActionButtonNavigatesContainers = false;
            settings.DialogCaption = "Select folder to move into";
            settings.MultipleSelect = false;
            settings.ShowHiddenChildren = false;
            settings.SelectionTextLabel = "Folder";

            FolderFilter filter = new FolderFilter("Folders");
            EntityFilter[] filters = { filter };
            settings.ConfigureFilters("Folders", filters, filter);
            
            SelectEntityResults folderRes = Autodesk.DataManagement.Client.Framework.Vault.Forms.Library.SelectEntity(_conn, settings);&lt;/PRE&gt;&lt;P&gt;FolderFilter is just my&amp;nbsp;extention of EntityFilter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    public class FolderFilter : SelectEntitySettings.EntityFilter
    {
        public FolderFilter(string displayName) : base(displayName)
        {
        }

        public override bool CanDisplayEntity(IEntity entity)
        {
            return entity.EntityClass.Id == "FLDR";
        }
    }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Tore&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 12:29:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/selectentity-slow-performance/m-p/6868671#M7804</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-10T12:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: SelectEntity() - Slow performance</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/selectentity-slow-performance/m-p/6873683#M7805</link>
      <description>&lt;P&gt;Just an update to this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I was developing this code I did it in an external VS solution.&amp;nbsp;After I moved it into the project we load in Vault explorer and used the connection object I get when I register a new detail tab, this issue resolved itself. Responsiveness is the same as browsing in Vault explorer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Tore&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 12:49:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/selectentity-slow-performance/m-p/6873683#M7805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-13T12:49:59Z</dc:date>
    </item>
  </channel>
</rss>

