<?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 : Is there a .NET property that can be used to identify the AutoCAD vertical? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/is-there-a-net-property-that-can-be-used-to-identify-the-autocad/m-p/5975304#M37621</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I didnt get the problem you are facing, using API userproductregistrykey for Acad electrical you 'll get F007:409 in the string.&lt;/P&gt;
&lt;P&gt;F007 is for Acade and F001 is for Acad vanilla.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think there is an API to check if mnl file is loaded.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jan 2016 11:34:59 GMT</pubDate>
    <dc:creator>moogalm</dc:creator>
    <dc:date>2016-01-06T11:34:59Z</dc:date>
    <item>
      <title>Is there a .NET property that can be used to identify the AutoCAD vertical?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-there-a-net-property-that-can-be-used-to-identify-the-autocad/m-p/5967686#M37618</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm about to create some -NET add-ins for AutoCAD Electrical, using the AutoCAD Electrical "API", which is all LISP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to do a check before running any code, to see if AutoCAD Electrical is the version my code is running in.&lt;/P&gt;
&lt;P&gt;I've found some &lt;A href="http://blog.jtbworld.com/2013/10/how-to-know-what-service-pack-is.html" target="_self"&gt;LISP-examples&lt;/A&gt; for this, but I'd really prefer to use something .NET-ish instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 21:52:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-there-a-net-property-that-can-be-used-to-identify-the-autocad/m-p/5967686#M37618</guid>
      <dc:creator>rhesusminus</dc:creator>
      <dc:date>2015-12-29T21:52:28Z</dc:date>
    </item>
    <item>
      <title>Re : Is there a .NET property that can be used to identify the AutoCAD vertical?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-there-a-net-property-that-can-be-used-to-identify-the-autocad/m-p/5967793#M37619</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can get the registry product key using:&lt;/P&gt;
&lt;PRE&gt;HostApplicationServices.Current.MachineRegistryProductRootKey&lt;/PRE&gt;
&lt;P&gt;or:&lt;/P&gt;
&lt;PRE&gt;HostApplicationServices.Current.UserRegistryProductRootKey&lt;/PRE&gt;
&lt;P&gt;And you can have some informations about AutoCAD ProductIds &lt;A href="http://adndevblog.typepad.com/autocad/2013/08/registry-values-for-productid-and-localeid-for-autocad.html" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 23:56:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-there-a-net-property-that-can-be-used-to-identify-the-autocad/m-p/5967793#M37619</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2015-12-29T23:56:13Z</dc:date>
    </item>
    <item>
      <title>Re : Is there a .NET property that can be used to identify the AutoCAD vertical?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-there-a-net-property-that-can-be-used-to-identify-the-autocad/m-p/5971446#M37620</link>
      <description>&lt;P&gt;Thanks Gilles.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However... Running AutoCAD 2016 from the icon created when installing AutoCAD Electrical 2016, this still reports as AutoCAD Electrical.There's&amp;nbsp;1 registry key for both &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way to check if a file is loaded maybe? If "acade.mnl" is loaded, we're running AutoCAD Electrical...&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;</description>
      <pubDate>Mon, 04 Jan 2016 10:11:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-there-a-net-property-that-can-be-used-to-identify-the-autocad/m-p/5971446#M37620</guid>
      <dc:creator>rhesusminus</dc:creator>
      <dc:date>2016-01-04T10:11:38Z</dc:date>
    </item>
    <item>
      <title>Re : Is there a .NET property that can be used to identify the AutoCAD vertical?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-there-a-net-property-that-can-be-used-to-identify-the-autocad/m-p/5975304#M37621</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I didnt get the problem you are facing, using API userproductregistrykey for Acad electrical you 'll get F007:409 in the string.&lt;/P&gt;
&lt;P&gt;F007 is for Acade and F001 is for Acad vanilla.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think there is an API to check if mnl file is loaded.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 11:34:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-there-a-net-property-that-can-be-used-to-identify-the-autocad/m-p/5975304#M37621</guid>
      <dc:creator>moogalm</dc:creator>
      <dc:date>2016-01-06T11:34:59Z</dc:date>
    </item>
    <item>
      <title>Re�: Is there a .NET property that can be used to identify the AutoCAD vertical?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-there-a-net-property-that-can-be-used-to-identify-the-autocad/m-p/5975328#M37622</link>
      <description>When you install AutoCAD Electrical, you will slso get an icon in the start menu, with the option to start AutoCAD Electrical as plain, vanilla AutoCAD.&lt;BR /&gt;&lt;BR /&gt;When I check the registry keys, there is only one there, for AutoCAD Electrical.&lt;BR /&gt;&lt;BR /&gt;So, I will need some other way to find out if it is AutoCAD Electrical that is running.</description>
      <pubDate>Wed, 06 Jan 2016 11:54:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-there-a-net-property-that-can-be-used-to-identify-the-autocad/m-p/5975328#M37622</guid>
      <dc:creator>rhesusminus</dc:creator>
      <dc:date>2016-01-06T11:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a .NET property that can be used to identify the AutoCAD vertical?</title>
      <link>https://forums.autodesk.com/t5/net-forum/is-there-a-net-property-that-can-be-used-to-identify-the-autocad/m-p/5982422#M37623</link>
      <description>&lt;P&gt;This seems to work for AutoCAD Electrical recognition:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; &amp;lt;CommandMethod("CTRLALTEL", "AREWERUNNINGAUTOCADELECTRICAL", "AREWERUNNINGAUTOCADELECTRICAL", CommandFlags.Modal)&amp;gt; _
        Public Sub AreWeRunningAutoCADElecrical()

            If IsThisAutoCADElectrical() Then

                System.Windows.Forms.MessageBox.Show("Yes :)")

            Else

                System.Windows.Forms.MessageBox.Show("No :(")

            End If

        End Sub

        Private Function IsThisAutoCADElectrical() As Boolean

            Try
                Dim Request As New ResultBuffer
                Request.Add(New TypedValue(5005, "ace_getactiveproject"))

                Dim Result As ResultBuffer = Autodesk.AutoCAD.ApplicationServices.Application.Invoke(Request)

                If Not Result Is Nothing Then

                    Return True

                Else

                    Return False

                End If

            Catch Ex As System.Exception

                Return False

            End Try

        End Function&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Jan 2016 13:27:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/is-there-a-net-property-that-can-be-used-to-identify-the-autocad/m-p/5982422#M37623</guid>
      <dc:creator>rhesusminus</dc:creator>
      <dc:date>2016-01-11T13:27:39Z</dc:date>
    </item>
  </channel>
</rss>

