<?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 Get the Window Owner for OpenFileDialog in Civil 3D Customization Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/get-the-window-owner-for-openfiledialog/m-p/8777309#M9744</link>
    <description>&lt;P&gt;I have the following code at my plugin class ( the one that inherits from IExtensionApplication):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; SaveFileDialog saveDialog = new SaveFileDialog();
       
            if (saveDialog.ShowDialog(/*System.Windows.Window winObj */) == true)
            {
                serializer.Write(proj, saveDialog.FileName);
            }&lt;/PRE&gt;
&lt;P&gt;In the ShowDialog, I can pass in the owner of the SaveFileDialog,&amp;nbsp; so I want to pass in the AutoCAD Main Window as the owner.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to do get the AutoCAD Main Window ?&lt;/P&gt;</description>
    <pubDate>Wed, 08 May 2019 05:56:09 GMT</pubDate>
    <dc:creator>soonhui</dc:creator>
    <dc:date>2019-05-08T05:56:09Z</dc:date>
    <item>
      <title>Get the Window Owner for OpenFileDialog</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/get-the-window-owner-for-openfiledialog/m-p/8777309#M9744</link>
      <description>&lt;P&gt;I have the following code at my plugin class ( the one that inherits from IExtensionApplication):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; SaveFileDialog saveDialog = new SaveFileDialog();
       
            if (saveDialog.ShowDialog(/*System.Windows.Window winObj */) == true)
            {
                serializer.Write(proj, saveDialog.FileName);
            }&lt;/PRE&gt;
&lt;P&gt;In the ShowDialog, I can pass in the owner of the SaveFileDialog,&amp;nbsp; so I want to pass in the AutoCAD Main Window as the owner.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to do get the AutoCAD Main Window ?&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 05:56:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/get-the-window-owner-for-openfiledialog/m-p/8777309#M9744</guid>
      <dc:creator>soonhui</dc:creator>
      <dc:date>2019-05-08T05:56:09Z</dc:date>
    </item>
  </channel>
</rss>

