<?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: Error while programmatically launching AutoCad in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5670128#M40838</link>
    <description>&lt;P&gt;Augusto,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My batch file is actually a modification of a sample from the Console examples.&amp;nbsp; I tried working with Console for a few days last week, but my program is fairly extensive and may be beyond the scope of Console.&amp;nbsp; I have found very little documentation on it, and converting my program from the Acad API to the Console API is daunting, given that there is little, if any, documentation.&amp;nbsp; I will say that Console looks very useful for some things - I just wish it were better documented.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Given that I'm so close to having it done, were it not for this permissions thing, it's all very frustrating to think of having to re-write my program, simply because AutoCad's security has tightened up over the last few versions, and now doesn't play nice with others.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jun 2015 14:04:19 GMT</pubDate>
    <dc:creator>larry.daubenspeck</dc:creator>
    <dc:date>2015-06-09T14:04:19Z</dc:date>
    <item>
      <title>Error while programmatically launching AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5555190#M40821</link>
      <description>&lt;P&gt;We have had a VB.net program on a 32-bit machine for years. As part of its process, it was launching a standalone seat of AutoCad 2009 (which gives you an idea of how old it is). Recently, we upgraded to 64-bit AutoCad 2015 and migrated the program to a 64-bit machine. All works wonderfully from the Debugger, or when compiled as an executable and triggered manually. However, as with the original, we want to trigger the program with Task Scheduler. Here is where an error occurs. The error I get is that the “value does not fall within the expected range.” I have tried every different incantation to start AutoCad that I have come across:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;acadApp = New AcadApplication&lt;/LI&gt;&lt;LI&gt;acadApp = CreateObject(“Autocad.Application.20.0”)&lt;/LI&gt;&lt;LI&gt;Dim acType As Type = Type.GetTypeFromProgID(“AutoCAD.Application.20”)&lt;/LI&gt;&lt;LI&gt;acadApp = Activator.CreateInstance(acType, True)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But nothing seems to solve the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2015 15:52:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5555190#M40821</guid>
      <dc:creator>larry.daubenspeck</dc:creator>
      <dc:date>2015-03-24T15:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error while programmatically launching AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5556706#M40822</link>
      <description>Please make sure your code is using AutoCAD 2015 COM Type Lirabry, more specifically the 64 bit version. Also make sure your project is properly set to AnyCPU or 64 bit (if is set to 32 bit only, it can crash)</description>
      <pubDate>Wed, 25 Mar 2015 13:20:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5556706#M40822</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2015-03-25T13:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error while programmatically launching AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5557362#M40823</link>
      <description>&lt;P&gt;Thanks Augusto,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both things you suggest are set correctly, yet still getting the error.&amp;nbsp; There are two interesting errors, which might be enlightening:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warning&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; 3&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; Processing COM reference "AutoCAD" from path "C:\Program Files\Common Files\Autodesk Shared\acax20enu.tlb". Interface 'IAcadShadowDisplay' is marked as [dual], but does not derive from IDispatch. It will be converted as an IUnknown-derived interface.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warning&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; 4&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; Processing COM reference "AXDBLib" from path "C:\Program Files\Common Files\Autodesk Shared\axdb20enu.tlb". Interface 'IAcadShadowDisplay' is marked as [dual], but does not derive from IDispatch. It will be converted as an IUnknown-derived interface.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no idea what they mean.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 18:22:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5557362#M40823</guid>
      <dc:creator>larry.daubenspeck</dc:creator>
      <dc:date>2015-03-25T18:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error while programmatically launching AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5557375#M40824</link>
      <description>Got it!&lt;BR /&gt;&lt;BR /&gt;Please use Autodesk.AutoCAD.Interop.dll and Autodesk.AutoCAD.Interop.Common.dll references from AutoCAD install folder (e.g. \Program Files\Autodesk\AutoCAD 2015)</description>
      <pubDate>Wed, 25 Mar 2015 18:30:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5557375#M40824</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2015-03-25T18:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error while programmatically launching AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5557431#M40825</link>
      <description>&lt;P&gt;Thanks again Augusto,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You're on a roll!&amp;nbsp; It eliminated one of the Visual Studio warnings; however, still getting this one (along with the original error about the value not falling within the expected range).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warning&amp;nbsp;3&amp;nbsp;Processing COM reference "AXDBLib" from path "C:\Program Files\Common Files\Autodesk Shared\axdb20enu.tlb". Interface 'IAcadShadowDisplay' is marked as [dual], but does not derive from IDispatch. It will be converted as an IUnknown-derived interface.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 19:09:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5557431#M40825</guid>
      <dc:creator>larry.daubenspeck</dc:creator>
      <dc:date>2015-03-25T19:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error while programmatically launching AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5559000#M40826</link>
      <description>&lt;P&gt;I got the other warning to go away by deleting a reference that wasn't being used.&amp;nbsp; However, with some different error-trapping, I was able to get the following information:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM class factory for component with CLSID {0B628DE4-07AD-4284-81CA-5B439F67C5E6} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean&amp;amp; canBeCached, RuntimeMethodHandleInternal&amp;amp; ctor, Boolean&amp;amp; bNeedSecurityCheck)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark&amp;amp; stackMark)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark&amp;amp; stackMark)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Activator.CreateInstance(Type type, Boolean nonPublic)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Activator.CreateInstance(Type type)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at Draper_Draftsman.clsRolledScreens.Draw() in C:\Users\draftsman\Documents\Visual Studio 2012\Projects\Draper_Draftsman\Draper_Draftsman\clsRolledScreens.vb:line 331&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Line 331 is simply this:&amp;nbsp; acadApp = New AcadApplication&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As always, any&amp;nbsp;suggestions would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2015 17:14:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5559000#M40826</guid>
      <dc:creator>larry.daubenspeck</dc:creator>
      <dc:date>2015-03-26T17:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error while programmatically launching AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5559012#M40827</link>
      <description>I would suggest use Activator.CreateInstance instead&lt;BR /&gt;&lt;BR /&gt;The "New" operator is different...</description>
      <pubDate>Thu, 26 Mar 2015 17:19:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5559012#M40827</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2015-03-26T17:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error while programmatically launching AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5559190#M40828</link>
      <description>&lt;P&gt;Augusto,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used this, to no avail:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="2" face="Consolas"&gt;Dim&lt;/FONT&gt; &lt;FONT size="2" face="Consolas"&gt;acType&lt;/FONT&gt; &lt;FONT size="2" face="Consolas"&gt;As&lt;/FONT&gt; &lt;FONT size="2" face="Consolas"&gt;Type&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt; = &lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;Type&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;.&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;GetTypeFromProgID&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;(&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;"Autocad.Application.20"&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;acadApp&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; = &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;Activator&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;CreateInstance&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;acType&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;True&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;I saw that there are sixteen different versions of this method.&amp;nbsp; Is there perhaps a better version?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;Thanks, as always.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2015 19:16:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5559190#M40828</guid>
      <dc:creator>larry.daubenspeck</dc:creator>
      <dc:date>2015-03-26T19:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error while programmatically launching AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5559197#M40829</link>
      <description>That's the version I use &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Just replace ("Autocad.Application")&lt;BR /&gt;- no version number</description>
      <pubDate>Thu, 26 Mar 2015 19:20:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5559197#M40829</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2015-03-26T19:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error while programmatically launching AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5559213#M40830</link>
      <description>&lt;P&gt;Augusto,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still no change.&amp;nbsp; I'm pulling at straws now.&amp;nbsp; Would it make a difference that this is running on Windows Server 2008 R2 Standard?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2015 19:28:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5559213#M40830</guid>
      <dc:creator>larry.daubenspeck</dc:creator>
      <dc:date>2015-03-26T19:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error while programmatically launching AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5559226#M40831</link>
      <description>It may be a permission problem...&lt;BR /&gt;&lt;BR /&gt;Win Server is not listed as supported: &lt;A href="http://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/System-requirements-for-AutoCAD.html" target="_blank"&gt;http://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/System-requirements-for-AutoCAD.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Sorry...</description>
      <pubDate>Thu, 26 Mar 2015 19:35:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5559226#M40831</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2015-03-26T19:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error while programmatically launching AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5663189#M40832</link>
      <description>&lt;P&gt;Augusto,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We moved this project to a new virtual machine, with an OS of Windows 7 Professional.&amp;nbsp; As before, the program works fine when launched manually, but it seems that AutoCad doesn't like to be launched via Windows Task Scheduler.&amp;nbsp; Can you shed any light on this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Larry&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 18:08:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5663189#M40832</guid>
      <dc:creator>larry.daubenspeck</dc:creator>
      <dc:date>2015-06-03T18:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error while programmatically launching AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5663223#M40833</link>
      <description>Larry&lt;BR /&gt;&lt;BR /&gt;The main point is around permissions. When you launch AutoCAD (acad.exe/accoreconsole.exe) via a non-user interface, like Task Schedule, it will probably not have a user-permission on it.&lt;BR /&gt;&lt;BR /&gt;If you search for "Task Schedule Impersonate" there are some reports and suggestions of workarounds, like link to an account, turn of UAC, set admin as default, etc...&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://stackoverflow.com/questions/482905/error-when-impersonating-a-user-in-net-in-a-scheduled-task" target="_blank"&gt;http://stackoverflow.com/questions/482905/error-when-impersonating-a-user-in-net-in-a-scheduled-task&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://social.msdn.microsoft.com/forums/vstudio/en-US/4d83911f-3db9-4d78-ac2b-dc0b4403cb96/uac-and-impersonate-help" target="_blank"&gt;https://social.msdn.microsoft.com/forums/vstudio/en-US/4d83911f-3db9-4d78-ac2b-dc0b4403cb96/uac-and-impersonate-help&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Jun 2015 18:20:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5663223#M40833</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2015-06-03T18:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error while programmatically launching AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5665062#M40834</link>
      <description>&lt;P&gt;Augusto,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, but I still am having no luck whatsoever.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have gone into Component Services, the DCOM Config folder, under AutoCAD Application, properties.&amp;nbsp; There, under the Security tab, I have added any and all users I can think of, and given them full rights.&amp;nbsp; And then under the Identity tab, I have tried "The interactive user," "The launching user," and finally "This user", and given the username and password of a user with admin rights.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have gone to C:\Program Files\Autodesk\AutoCAD 2015\ and right-clicked on acad.exe to access its properties.&amp;nbsp; Under the Security tab, I have given all the users full access.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there another "mystery user" at work when using automation such as this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nothing I have tried seems to work.&amp;nbsp; I am beginning to think AutoCAD can't be launched with Task Scheduler.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2015 18:32:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5665062#M40834</guid>
      <dc:creator>larry.daubenspeck</dc:creator>
      <dc:date>2015-06-04T18:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error while programmatically launching AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5666329#M40835</link>
      <description>Indeed as it was not tested, we cannot guarantee it will work. The COM engine behind AutoCAD Automation is an old technology. &lt;BR /&gt;&lt;BR /&gt;There is a Microsoft article about Office Automation (that uses a similar COM engine): &lt;A href="https://support.microsoft.com/en-us/kb/257757" target="_blank"&gt;https://support.microsoft.com/en-us/kb/257757&lt;/A&gt;</description>
      <pubDate>Fri, 05 Jun 2015 14:25:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5666329#M40835</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2015-06-05T14:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error while programmatically launching AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5670037#M40836</link>
      <description>&lt;P&gt;Augusto,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is something interesting, and I think it points to permissions again:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I scrapped the idea of using Windows Task Scheduler.&amp;nbsp; I wrote a batch file to launch my executable, and put it into a loop and timer so it fires every 30 seconds.&amp;nbsp; It works fine, but the batch file has to be continuously running.&amp;nbsp; So, I created a Windows Service to do the same thing.&amp;nbsp; However, it's back to the same old error when trying to launch AutoCAD.&amp;nbsp; AutoCAD will launch just fine under the bat file, but not under the service.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know it's just a matter of finding the right combination of accounts and permissions.&amp;nbsp; I can't imagine that I am the only person in the world trying to do this sort of thing.&amp;nbsp; Surely there is an easy answer(?).&amp;nbsp; It's like I'm 99% there - I just need this one piece of the puzzle to complete this thing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be appreciated.&amp;nbsp; Again, thanks for your time!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2015 13:12:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5670037#M40836</guid>
      <dc:creator>larry.daubenspeck</dc:creator>
      <dc:date>2015-06-09T13:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error while programmatically launching AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5670056#M40837</link>
      <description>Some time ago I wrote a small sample app that watch a specific folder. When a new .dwg file is copied/moved to that folder, the app launch AutoCAD Console and process the file, using a .scr that contains the sequence of commands. &lt;BR /&gt;&lt;BR /&gt;Would that work? I'll place it on our blog and send you a link. Give me a couple hours..</description>
      <pubDate>Tue, 09 Jun 2015 13:23:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5670056#M40837</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2015-06-09T13:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error while programmatically launching AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5670128#M40838</link>
      <description>&lt;P&gt;Augusto,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My batch file is actually a modification of a sample from the Console examples.&amp;nbsp; I tried working with Console for a few days last week, but my program is fairly extensive and may be beyond the scope of Console.&amp;nbsp; I have found very little documentation on it, and converting my program from the Acad API to the Console API is daunting, given that there is little, if any, documentation.&amp;nbsp; I will say that Console looks very useful for some things - I just wish it were better documented.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Given that I'm so close to having it done, were it not for this permissions thing, it's all very frustrating to think of having to re-write my program, simply because AutoCad's security has tightened up over the last few versions, and now doesn't play nice with others.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2015 14:04:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/error-while-programmatically-launching-autocad/m-p/5670128#M40838</guid>
      <dc:creator>larry.daubenspeck</dc:creator>
      <dc:date>2015-06-09T14:04:19Z</dc:date>
    </item>
  </channel>
</rss>

