<?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 Determine AutoCAD Type in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/determine-autocad-type/m-p/1755989#M22794</link>
    <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
is there a possibility to determine what type of AutoCAD is running? Standard AutoCAD or Map3D or Civil3D or whatever? I already drag the version info from the currently running acad.exe file, but there is to information about the AutoCAD type saved in the version info. I could parse the path, but that's not a solution for me since everyone can change the pathname to whatever he likes.&lt;BR /&gt;
Any ideas?&lt;BR /&gt;
Thanks in advance!&lt;BR /&gt;
&lt;BR /&gt;
Cheers, Hannes</description>
    <pubDate>Wed, 06 Sep 2006 14:13:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-09-06T14:13:11Z</dc:date>
    <item>
      <title>Determine AutoCAD Type</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/determine-autocad-type/m-p/1755989#M22794</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
is there a possibility to determine what type of AutoCAD is running? Standard AutoCAD or Map3D or Civil3D or whatever? I already drag the version info from the currently running acad.exe file, but there is to information about the AutoCAD type saved in the version info. I could parse the path, but that's not a solution for me since everyone can change the pathname to whatever he likes.&lt;BR /&gt;
Any ideas?&lt;BR /&gt;
Thanks in advance!&lt;BR /&gt;
&lt;BR /&gt;
Cheers, Hannes</description>
      <pubDate>Wed, 06 Sep 2006 14:13:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/determine-autocad-type/m-p/1755989#M22794</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-06T14:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Determine AutoCAD Type</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/determine-autocad-type/m-p/1755990#M22795</link>
      <description>Hannes,&lt;BR /&gt;
&lt;BR /&gt;
Its in the registry:&lt;BR /&gt;
HKLM\Software\Autodesk\R**.*\ACAD-****:***\ProductName</description>
      <pubDate>Wed, 06 Sep 2006 15:58:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/determine-autocad-type/m-p/1755990#M22795</guid>
      <dc:creator>davidm_adn</dc:creator>
      <dc:date>2006-09-06T15:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Determine AutoCAD Type</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/determine-autocad-type/m-p/1755991#M22796</link>
      <description>How about the AutoCAD _VERNUM variable?&lt;BR /&gt;
&lt;BR /&gt;
Deelip Menezes&lt;BR /&gt;
&lt;BR /&gt;
&lt;SCHNEIDER&gt; wrote in message news:5319201@discussion.autodesk.com...&lt;BR /&gt;
Hi all,&lt;BR /&gt;
&lt;BR /&gt;
is there a possibility to determine what type of AutoCAD is running? &lt;BR /&gt;
Standard AutoCAD or Map3D or Civil3D or whatever? I already drag the version &lt;BR /&gt;
info from the currently running acad.exe file, but there is to information &lt;BR /&gt;
about the AutoCAD type saved in the version info. I could parse the path, &lt;BR /&gt;
but that's not a solution for me since everyone can change the pathname to &lt;BR /&gt;
whatever he likes.&lt;BR /&gt;
Any ideas?&lt;BR /&gt;
Thanks in advance!&lt;BR /&gt;
&lt;BR /&gt;
Cheers, Hannes&lt;/SCHNEIDER&gt;</description>
      <pubDate>Wed, 06 Sep 2006 16:15:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/determine-autocad-type/m-p/1755991#M22796</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-06T16:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Determine AutoCAD Type</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/determine-autocad-type/m-p/1755992#M22797</link>
      <description>It's code maybe useful for you:&lt;BR /&gt;
[code]&lt;BR /&gt;
    static public void AInfo()&lt;BR /&gt;
    {&lt;BR /&gt;
      Editor ed =  Application.DocumentManager.MdiActiveDocument.Editor;&lt;BR /&gt;
      string AcadVer = Autodesk.AutoCAD.ApplicationServices.Application.Version.ToString();&lt;BR /&gt;
      ed.WriteMessage("\nAcadVersion: {0}", AcadVer);&lt;BR /&gt;
      string ProductKey = Autodesk.AutoCAD.Runtime.SystemObjects.DynamicLinker.ProductKey;&lt;BR /&gt;
      ed.WriteMessage("\nProductKey:  {0}", ProductKey);&lt;BR /&gt;
      RegistryKey key = Registry.LocalMachine.OpenSubKey(ProductKey);&lt;BR /&gt;
      string ProductName = key.GetValue("ProductName").ToString();&lt;BR /&gt;
      ed.WriteMessage("\nProductName: {0}", ProductName);&lt;BR /&gt;
      string ProductId   = key.GetValue("ProductId").ToString();&lt;BR /&gt;
      ed.WriteMessage("\nProductId:   {0}", ProductId);&lt;BR /&gt;
      string ProductCode = key.GetValue("ProductCode").ToString();&lt;BR /&gt;
      ed.WriteMessage("\nProductCode: {0}", ProductCode);&lt;BR /&gt;
   }&lt;BR /&gt;
[/code]&lt;BR /&gt;
In ObjectARX you can use:&lt;BR /&gt;
AcDbHostApplicationServices::getRegistryProductRootKey()&lt;BR /&gt;
AcDbHostApplicationServices::product()&lt;BR /&gt;
and so on.

Message was edited by: Alexander Rivilis</description>
      <pubDate>Wed, 06 Sep 2006 16:54:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/determine-autocad-type/m-p/1755992#M22797</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-06T16:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Determine AutoCAD Type</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/determine-autocad-type/m-p/1755993#M22798</link>
      <description>Thanks for all replies. I've found a way to definitely distinguish between different AutoCAD releases and versions. For those also facing this problem, here is the way to go:&lt;BR /&gt;
&lt;BR /&gt;
	CString regRootKey = acdbHostApplicationServices()-&amp;gt;getRegistryProductRootKey();&lt;BR /&gt;
	CRegistry reg;&lt;BR /&gt;
	reg.Open(HKEY_LOCAL_MACHINE, regRootKey, KEY_READ);&lt;BR /&gt;
	TCHAR buf[200];&lt;BR /&gt;
	ULONG bufSize = 200;&lt;BR /&gt;
	reg.QueryStringValue(_T("ProductName"), buf, &amp;amp;bufSize);&lt;BR /&gt;
	reg.Close();&lt;BR /&gt;
&lt;BR /&gt;
Now buf is "AutoCAD 200x" for standard AutoCAD-Releases, "Autodesk Map 3D 200x" for Map3D, "Autodesk Civil 3D 200x" for Civil3D and so on.&lt;BR /&gt;
&lt;BR /&gt;
Thanks everyone for pointing me to the right direction.&lt;BR /&gt;
&lt;BR /&gt;
Cheers, Hannes.</description>
      <pubDate>Thu, 07 Sep 2006 08:56:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/determine-autocad-type/m-p/1755993#M22798</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-09-07T08:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Determine AutoCAD Type</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/determine-autocad-type/m-p/3618536#M22799</link>
      <description>&lt;P&gt;What is this:&amp;nbsp;&lt;SPAN&gt;CRegistry ??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;error C2065: 'CRegistry' : undeclared identifier&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2012 12:43:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/determine-autocad-type/m-p/3618536#M22799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-13T12:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Determine AutoCAD Type</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/determine-autocad-type/m-p/3621452#M22800</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;What is this:&amp;nbsp;&lt;SPAN&gt;CRegistry ??&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;error C2065: 'CRegistry' : undeclared identifier&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;A href="http://www.codeproject.com/Articles/8953/Registry-Wrapper-Class-CRegistry" target="_self"&gt;Registry Wrapper Class (CRegistry)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Sep 2012 14:48:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/determine-autocad-type/m-p/3621452#M22800</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2012-09-15T14:48:24Z</dc:date>
    </item>
  </channel>
</rss>

