<?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: WPF tree view dialog is blank in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/wpf-tree-view-dialog-is-blank/m-p/7388394#M29649</link>
    <description>&lt;P&gt;Thanks norman.yuan, you are correct to suggest spell checking.&amp;nbsp; I double checked my xaml code and sure as s*** the case of the variable names&amp;nbsp;did not match those in the classes. Don't remember when it happened but I know how it happened.&amp;nbsp; I must've took VS's suggestion to correct it. It surely likes to popup it's little light bulbs with suggestions for "improvement".&amp;nbsp; Of course I trusted it too much and did not think to check the xaml code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Problem solved.&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;Allen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Sep 2017 17:34:46 GMT</pubDate>
    <dc:creator>Allen_Hart</dc:creator>
    <dc:date>2017-09-18T17:34:46Z</dc:date>
    <item>
      <title>WPF tree view dialog is blank</title>
      <link>https://forums.autodesk.com/t5/net-forum/wpf-tree-view-dialog-is-blank/m-p/7378829#M29645</link>
      <description>&lt;P&gt;I have a small sheet set app that loads the list of sheets &amp;amp; views into a wpf tree view list. (We use it to associate callout blocks to a sheet set view.)&amp;nbsp; It's been working very well.&amp;nbsp; I decided to recompile the code with references to the current ACAD files (AcCoreMgd, AcDbMgd, AcMgd, &amp;amp; ACSMCOMPONENTS22Lib) &amp;amp; .NETFramework 4.6.&amp;nbsp; Now the tree view is blank.&amp;nbsp; Stepping through the code in debug clearly shows the data is there ready to display but it just doesn't.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is anyone else seeing odd behavior with current rebuilds?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks,&lt;/P&gt;
&lt;P&gt;Allen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 21:06:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wpf-tree-view-dialog-is-blank/m-p/7378829#M29645</guid>
      <dc:creator>Allen_Hart</dc:creator>
      <dc:date>2017-09-13T21:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: WPF tree view dialog is blank</title>
      <link>https://forums.autodesk.com/t5/net-forum/wpf-tree-view-dialog-is-blank/m-p/7387119#M29646</link>
      <description>&lt;P&gt;I suspect the problem either could be with registering acsmcomponents22.tlb or may require debugging to understand the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The type lib is acsmcomponents22.tlb, this needs to register using "tlbimp".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Component Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UUID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Release&lt;/P&gt;
&lt;P&gt;AcSmComponents.AcSmSheetSetMgr.22&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8026E779-B5FB-4EE2-8D94-DCBD406394C5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AutoCAD 2018&lt;/P&gt;
&lt;P&gt;AcSmComponents.AcSmSheetSetMgr.20&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B1C4EDD8-0266-46C9-A9BB-1F9655D5E402&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AutoCAD 2016&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To troubleshoot the problem now, use should register latest component assembly which is shipped with AutoCAD 2018 ObjectARX SDK/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;First register the tlb.&lt;/LI&gt;
&lt;LI&gt;tlbimp &amp;lt;.tlb&amp;gt; /machine: "X64"&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;Note: Type libraries supplied with SDK needs to be register, UUIDs of components should be written to registry hive.&lt;/LI&gt;
&lt;LI&gt;Ideally, AutoCAD at time of installing should have done, but it is not doing for SDK interop’s, may be for legacy reasons.&lt;/LI&gt;
&lt;/UL&gt;
&lt;LI&gt;Next, add the generated assembly to .csproj&lt;/LI&gt;
&lt;LI&gt;Build and run // it should work.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;You can retrieve class id, by using " oleview &amp;lt;.tlb&amp;gt;" from Visual Studio Developer command.&lt;/LI&gt;
&lt;LI&gt;From the oleview editor, get the “UUID of required component”&lt;/LI&gt;
&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="oleTlb.jpg" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/402389i39F487E40F0F4F43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="oleTlb.jpg" alt="oleTlb.jpg" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Search the class id in registry hive.&lt;/LI&gt;
&lt;LI&gt;If it is not present, go and register the typelib.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 18 Sep 2017 09:40:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wpf-tree-view-dialog-is-blank/m-p/7387119#M29646</guid>
      <dc:creator>moogalm</dc:creator>
      <dc:date>2017-09-18T09:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: WPF tree view dialog is blank</title>
      <link>https://forums.autodesk.com/t5/net-forum/wpf-tree-view-dialog-is-blank/m-p/7388097#M29647</link>
      <description>&lt;P&gt;madhukar.moogala, &amp;nbsp;Thanks for your response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not familiar with "oleview editor" - using VS Community 2017 and VB.Net. I know barely enough to write a small app.&lt;/P&gt;
&lt;P&gt;Anyway, I did find the UUID you show for 2018 in&amp;nbsp;the registry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have two copies of the AcSmComponents22.tlb file. &lt;BR /&gt;- one in \Program Files\Common Files\Autodesk Shared.&amp;nbsp; File version says 22.0.154.0.0&lt;BR /&gt;- one in \Autodesk\Autodesk_ObjectARX_2018_Win_64_and_32_Bit\inc-x64.&amp;nbsp; File version says 22.0.49.0.0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've built the app using both, with the same results.&amp;nbsp; It builds with no errors or warnings, loads and runs fine in AutoCAD.&amp;nbsp; Just won't display the sheet set data.&amp;nbsp; Here are before &amp;amp; after screen snags:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="How it should look" style="width: 484px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/402518iB2A662C570AC8499/image-dimensions/484x298?v=v2" width="484" height="298" role="button" title="ssm1.PNG" alt="ssm1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="How it looks now" style="width: 486px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/402520iEFD6A2C05FF325B4/image-dimensions/486x292?v=v2" width="486" height="292" role="button" title="ssm2.PNG" alt="ssm2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Maybe the problem is not with the .tlb reference, but instead with the three .dll references?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Still confused,&lt;/P&gt;
&lt;P&gt;Allen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 15:50:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wpf-tree-view-dialog-is-blank/m-p/7388097#M29647</guid>
      <dc:creator>Allen_Hart</dc:creator>
      <dc:date>2017-09-18T15:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: WPF tree view dialog is blank</title>
      <link>https://forums.autodesk.com/t5/net-forum/wpf-tree-view-dialog-is-blank/m-p/7388269#M29648</link>
      <description>&lt;P&gt;If your debugging clearly shows the "data is there", that means the data related to the sheet set is correctly obtained, so, there is no point to suspect anything wrong with the AutoCAD .NET API assemblies and the AcsmComponents22.tlb (by the way, the mentioning of "registering AcsmComponents22.tbl" in the other post is sort of misleading: Tlbimport is for generating .NET interop wrapper for a COM component, which has nothing to do with registering COM DLL/TLB with Windows registry).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, you need to make really sure if the data is actually there prior to present them in the form/dialog box. If the data is there, then you only need to examine the code of presenting data. For example, if you use MVVM pattern to bind data to the form,&amp;nbsp;how the DataContext is set/bounf to the view, do you have typing error of the binding properties in the view...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You only suspect something could be related to the AcsmComponents22 when there is no sheet set data is obtained, or you get exceptions when retrieve sheet set data (do you have empty catch{} clause in your code that could hide the exception?).&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 16:53:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wpf-tree-view-dialog-is-blank/m-p/7388269#M29648</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2017-09-18T16:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: WPF tree view dialog is blank</title>
      <link>https://forums.autodesk.com/t5/net-forum/wpf-tree-view-dialog-is-blank/m-p/7388394#M29649</link>
      <description>&lt;P&gt;Thanks norman.yuan, you are correct to suggest spell checking.&amp;nbsp; I double checked my xaml code and sure as s*** the case of the variable names&amp;nbsp;did not match those in the classes. Don't remember when it happened but I know how it happened.&amp;nbsp; I must've took VS's suggestion to correct it. It surely likes to popup it's little light bulbs with suggestions for "improvement".&amp;nbsp; Of course I trusted it too much and did not think to check the xaml code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Problem solved.&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;Allen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 17:34:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wpf-tree-view-dialog-is-blank/m-p/7388394#M29649</guid>
      <dc:creator>Allen_Hart</dc:creator>
      <dc:date>2017-09-18T17:34:46Z</dc:date>
    </item>
  </channel>
</rss>

