<?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: Getting autocad application details in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/getting-autocad-application-details/m-p/3462772#M55540</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; But I am unable to get the details&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;At the moment I don't know what details you are looking for, what is "the details" for you? The only one you mentioned (I understood) is you want to know if a DWT or a DWG is opened.&lt;/P&gt;&lt;P&gt;For that check the extension (last three characters) of:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Database.FileName&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need any other properties (and you don't find them by Intellisense under the two statements in my previous post) then let us know what properties (exactly) you look for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
    <pubDate>Fri, 18 May 2012 06:28:47 GMT</pubDate>
    <dc:creator>Alfred.NESWADBA</dc:creator>
    <dc:date>2012-05-18T06:28:47Z</dc:date>
    <item>
      <title>Getting autocad application details</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-autocad-application-details/m-p/3460906#M55535</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please any one help me on below issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How i can retrieve the autocad application details like autocad file type like ( drawing file or dwt file) and file extension of active open autocad file using c#.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raman&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2012 06:44:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-autocad-application-details/m-p/3460906#M55535</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-17T06:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting autocad application details</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-autocad-application-details/m-p/3460948#M55536</link>
      <description>&lt;P&gt;Check FileInfo property, e.g.:&lt;/P&gt;&lt;PRE&gt;        using System.IO;

...................................
        [CommandMethod("cfile")]
        public static void CheckExtension()
        {
            FileInfo fi = new FileInfo(@"C:\Test\MyFile.dwg");
            if (fi.Exists)
            {
                MessageBox.Show(fi.Extension);
            }
        }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000" face="arial,helvetica,sans-serif"&gt;~'J'~&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2012 07:39:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-autocad-application-details/m-p/3460948#M55536</guid>
      <dc:creator>Hallex</dc:creator>
      <dc:date>2012-05-17T07:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting autocad application details</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-autocad-application-details/m-p/3460956#M55537</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes, in this way we can get the file info.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But&amp;nbsp;I need to get the autocad active file details , like type (dwg or dwt) of the autocad file either it is saved or not. and application name like (Autocad drawing file) or (Autocad template file)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using autocad APIs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raman&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2012 07:45:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-autocad-application-details/m-p/3460956#M55537</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-17T07:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Getting autocad application details</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-autocad-application-details/m-p/3461278#M55538</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; I need to get the autocad active file details&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;You find all properties of the current open file under this object:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;There you have all "Document"-based infos and on hierarchie deeper:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Database&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;you have all "Database"-relevant info (also .Filename for knowing about DWT or DWG)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything missing then?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2012 12:51:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-autocad-application-details/m-p/3461278#M55538</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-05-17T12:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Getting autocad application details</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-autocad-application-details/m-p/3462732#M55539</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your post this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am unable to get the details as you mentioned. Could you please help on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raman&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2012 05:12:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-autocad-application-details/m-p/3462732#M55539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-18T05:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Getting autocad application details</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-autocad-application-details/m-p/3462772#M55540</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; But I am unable to get the details&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;At the moment I don't know what details you are looking for, what is "the details" for you? The only one you mentioned (I understood) is you want to know if a DWT or a DWG is opened.&lt;/P&gt;&lt;P&gt;For that check the extension (last three characters) of:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Database.FileName&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need any other properties (and you don't find them by Intellisense under the two statements in my previous post) then let us know what properties (exactly) you look for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2012 06:28:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-autocad-application-details/m-p/3462772#M55540</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-05-18T06:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Getting autocad application details</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-autocad-application-details/m-p/3462788#M55541</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your quick reply...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apart from this file type, i would like to know what is the application name. like "autocad drawing" file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;why I need this data from application is same addin is going to install in inventor and micro station.&lt;/P&gt;&lt;P&gt;So, i need to show application type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think, you got my point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raman&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2012 06:47:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-autocad-application-details/m-p/3462788#M55541</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-18T06:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Getting autocad application details</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-autocad-application-details/m-p/3462798#M55542</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; what is the application name. like "autocad drawing" file.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; I think, you got my point.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Sorry, not any word, as I don't know how an &lt;STRONG&gt;application name&lt;/STRONG&gt; could be "AutoCAD Drawing" or "AutoCAD Drawing File".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you think about the caption of the application-window, then the property is called "Caption".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2012 06:57:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-autocad-application-details/m-p/3462798#M55542</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-05-18T06:57:49Z</dc:date>
    </item>
  </channel>
</rss>

