<?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: Accessing AcadDocument and AcadApplication via .NET assembly in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3765481#M70565</link>
    <description>&lt;PRE&gt;    Public Function isAutocadOpen() As Boolean

        Dim rtnValue As Boolean
        Dim ProcessList As System.Diagnostics.Process()
        Dim Proc As System.Diagnostics.Process

        ProcessList = System.Diagnostics.Process.GetProcesses()
        Try
            For Each Proc In ProcessList
                If UCase(CStr(Proc.ProcessName)) = UCase("acad") Then
                    MsgBox(Proc.Id.ToString)
                    rtnValue = True
                End If
            Next
        Catch ex As Exception
        End Try

        Return rtnValue
    End Function&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jan 2013 21:13:37 GMT</pubDate>
    <dc:creator>arcticad</dc:creator>
    <dc:date>2013-01-30T21:13:37Z</dc:date>
    <item>
      <title>Accessing AcadDocument and AcadApplication via .NET assembly</title>
      <link>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/2487465#M70559</link>
      <description>Wondering if someone could please tell me what is the equivalent code of my COM accessing code below in .NET assembly?&lt;BR /&gt;
&lt;BR /&gt;
For many years the code below has given me the results I needed but now I was told that I have to use .NET AutoCAD assemblies &lt;BR /&gt;
instead and rewrite the code shown below so that it would use all the rich features provided via AutoDesk.AutoCAD.ApplicationServices.&lt;BR /&gt;
&lt;BR /&gt;
In a nutshell, my code below allows me to grab an existing instance of AutoCAD or create a new one if no instance of AutoCAD is open then grabs the active AutoCAD document for my use.  Thank you so much for all the kind help you could give&lt;BR /&gt;
&lt;BR /&gt;
Gratefully,&lt;BR /&gt;
Matt&lt;BR /&gt;
&lt;BR /&gt;
My code is shown below:&lt;BR /&gt;
 &lt;BR /&gt;
Public ThisDrawing as Autodesk.AutoCAD.InterOp.AcadDocument&lt;BR /&gt;
&lt;BR /&gt;
Public Sub CreateOrGetAutoCADinstance &lt;BR /&gt;
&lt;BR /&gt;
     Dim acadApp  as Autodesk.AutoCAD.InterOp.AcadApplication&lt;BR /&gt;
&lt;BR /&gt;
     On Error Resume Next&lt;BR /&gt;
&lt;BR /&gt;
      acadApp = GetObject(, "AutoCAD.Application")&lt;BR /&gt;
&lt;BR /&gt;
      If Err.Number Then &lt;BR /&gt;
                acadApp = CreateObject("AutoCAD.Application")&lt;BR /&gt;
      End If&lt;BR /&gt;
&lt;BR /&gt;
      acadApp.Visible = True&lt;BR /&gt;
&lt;BR /&gt;
      ThisDrawing = acadApp.ActiveDocument&lt;BR /&gt;
&lt;BR /&gt;
End Sub</description>
      <pubDate>Tue, 12 May 2009 22:27:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/2487465#M70559</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-12T22:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing AcadDocument and AcadApplication via .NET assembly</title>
      <link>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/2487466#M70560</link>
      <description>You can not use the AutoCAD .NET API from outside of AutoCAD. Therefore if you have an application that connects to an existing or creates a new instance of AutoCAD you will only be able to use the COM API.</description>
      <pubDate>Tue, 12 May 2009 23:22:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/2487466#M70560</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-12T23:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing AcadDocument and AcadApplication via .NET assembly</title>
      <link>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/2487467#M70561</link>
      <description>if you are going to be writing in .NET with the managed API, then you never have to and would probably never want to create an instance of AutoCAD.  Your code will need to be compiled into a .dll instead of an .exe and your .dll will be loaded into autocad, instead of starting AutoCAD externally.&lt;BR /&gt;&lt;BR /&gt;Application level methods and properties are then always accessible through ApplicationServices.Application.  &lt;BR /&gt;&lt;BR /&gt;Documents can be accessed via: dim acdocs as  ApplicationServices.DocumentCollection = ApplicationServices.Application.DocumentManager, dim ThisDrawing as Document = acdocs.MdiActiveDocument&lt;BR /&gt;&lt;BR /&gt;You can not use the managed API's from an external application.</description>
      <pubDate>Tue, 12 May 2009 23:41:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/2487467#M70561</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2009-05-12T23:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing AcadDocument and AcadApplication via .NET assembly</title>
      <link>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/2487468#M70562</link>
      <description>Thank you so much for this enlightening answer ...  now, I have more control of the tools I use knowing that both COM and &lt;BR /&gt;
.NET managed API have their places. &lt;BR /&gt;
&lt;BR /&gt;
Gratefully,&lt;BR /&gt;
Matt</description>
      <pubDate>Wed, 13 May 2009 07:45:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/2487468#M70562</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-13T07:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing AcadDocument and AcadApplication via .NET assembly</title>
      <link>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/2487469#M70563</link>
      <description>Thank you so much for this valuable answer... this gives me the nuts and bolts I need to &lt;BR /&gt;
build my .NET managed API solution ... now I can proceed with more confidence &lt;BR /&gt;
towards this new frontier.&lt;BR /&gt;
&lt;BR /&gt;
Gratefully,&lt;BR /&gt;
Matt</description>
      <pubDate>Wed, 13 May 2009 07:48:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/2487469#M70563</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-13T07:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing AcadDocument and AcadApplication via .NET assembly</title>
      <link>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3765462#M70564</link>
      <description>&lt;P&gt;Hello, I'm having a similar problem.&amp;nbsp; We have a web appliaction that will create a 2D array, then&amp;nbsp;launch my .dll and pass it the array.&amp;nbsp; My code is supposed to launch AutoCad and then create a drawing using the info passed in the array.&lt;/P&gt;&lt;P&gt;I also want to check to see if AutoCad is running already.&lt;/P&gt;&lt;P&gt;Thanks in advance for your help&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 20:46:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3765462#M70564</guid>
      <dc:creator>mgorecki</dc:creator>
      <dc:date>2013-01-30T20:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing AcadDocument and AcadApplication via .NET assembly</title>
      <link>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3765481#M70565</link>
      <description>&lt;PRE&gt;    Public Function isAutocadOpen() As Boolean

        Dim rtnValue As Boolean
        Dim ProcessList As System.Diagnostics.Process()
        Dim Proc As System.Diagnostics.Process

        ProcessList = System.Diagnostics.Process.GetProcesses()
        Try
            For Each Proc In ProcessList
                If UCase(CStr(Proc.ProcessName)) = UCase("acad") Then
                    MsgBox(Proc.Id.ToString)
                    rtnValue = True
                End If
            Next
        Catch ex As Exception
        End Try

        Return rtnValue
    End Function&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 21:13:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3765481#M70565</guid>
      <dc:creator>arcticad</dc:creator>
      <dc:date>2013-01-30T21:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing AcadDocument and AcadApplication via .NET assembly</title>
      <link>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3765499#M70566</link>
      <description>&lt;P&gt;Hi, thank you very much for that code.&amp;nbsp; I'll try it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 21:26:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3765499#M70566</guid>
      <dc:creator>mgorecki</dc:creator>
      <dc:date>2013-01-30T21:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing AcadDocument and AcadApplication via .NET assembly</title>
      <link>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3766103#M70567</link>
      <description>&lt;P&gt;Again, thanks for the code.&amp;nbsp; I was also wondering if you could give me the command that will launch AutoCad if it's not currently running.&amp;nbsp; I don't normally ask for stuff like this, but I've looked all over and found many convoluted websites or sites that I needed to have a phd in programming to understand.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2013 16:29:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3766103#M70567</guid>
      <dc:creator>mgorecki</dc:creator>
      <dc:date>2013-01-31T16:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing AcadDocument and AcadApplication via .NET assembly</title>
      <link>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3766952#M70568</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please look for the usage of "Activator.CreateInstance" as in this blog post :&lt;/P&gt;
&lt;P&gt;&lt;A href="http://through-the-interface.typepad.com/through_the_interface/2007/12/launching-autoc.html" target="_blank"&gt;http://through-the-interface.typepad.com/through_the_interface/2007/12/launching-autoc.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the sample code from the blog post, remember to change the progId based on the version of AutoCAD that you want to launch. For example : "AutoCAD.Application.19" for AutoCAD 2013.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2013 17:14:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3766952#M70568</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2013-02-01T17:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing AcadDocument and AcadApplication via .NET assembly</title>
      <link>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3770389#M70571</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've looked into that code, but I couldn't get it to convert to VB.net.&amp;nbsp; Do you have a VB version?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2013 00:30:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3770389#M70571</guid>
      <dc:creator>mgorecki</dc:creator>
      <dc:date>2013-02-06T00:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing AcadDocument and AcadApplication via .NET assembly</title>
      <link>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3770473#M70572</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/70249"&gt;@mgorecki&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I've looked into that code, but I couldn't get it to convert to VB.net.&amp;nbsp; Do you have a VB version?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What about using &lt;A href="http://www.developerfusion.com/tools/convert/csharp-to-vb/" target="_self"&gt;online C# &amp;lt;-&amp;gt; VB.NET converter&lt;/A&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2013 06:27:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3770473#M70572</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-02-06T06:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing AcadDocument and AcadApplication via .NET assembly</title>
      <link>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3770999#M70573</link>
      <description>&lt;P&gt;I've tried 2 different c# to VB converters and they both give me the same message, but for differing lines:&lt;/P&gt;&lt;P&gt;"An error occured converting your code, probably due to a syntax error:-- line&amp;nbsp;12 col 3: EOF expected"&lt;/P&gt;&lt;P&gt;I removed the extra spaces and changed the 17.1 to 18.0, but I still get the same error.&lt;/P&gt;&lt;PRE&gt;using System;
using System.Runtime.InteropServices;
using Autodesk.AutoCAD.Interop;

//This C# code can be added to an “on-click” event handler for a button (for example) or another function
//that makes sense in the context of your application.

  // "AutoCAD.Application.17" uses 2007 or 2008,
  //  whichever was most recently run
  // "AutoCAD.Application.17.1" uses 2008, specifically

  const string progID = "AutoCAD.Application.18.0";
  AcadApplication acApp = null;

  try
  {
    acApp = (AcadApplication)Marshal.GetActiveObject(progID);
  }
  catch
  {
    try
    {
      Type acType = Type.GetTypeFromProgID(progID);
      acApp = (AcadApplication)Activator.CreateInstance(acType, true);
    }
    catch
    {
      MessageBox.Show("Cannot create object of type \"" + progID + "\"");
    }
  }
  if (acApp != null)
  {
    // By the time this is reached AutoCAD is fully
    // functional and can be interacted with through code

    acApp.Visible = true;
    acApp.ActiveDocument.SendCommand("_MYCOMMAND ");
  }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2013 15:17:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3770999#M70573</guid>
      <dc:creator>mgorecki</dc:creator>
      <dc:date>2013-02-06T15:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing AcadDocument and AcadApplication via .NET assembly</title>
      <link>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3771061#M70574</link>
      <description>&lt;PRE&gt;Imports System
Imports System.Runtime.InteropServices
Imports Autodesk.AutoCAD.Interop

Namespace Test
    Public Class Test
        Public Shared Sub StartAutoCAD()
            ' "AutoCAD.Application.17" uses 2007, 2008, 2009
            '  whichever was most recently run
            ' "AutoCAD.Application.17.1" uses 2008, specifically
            ' "AutoCAD.Application.18" uses 2010, 2011, 2012
            ' "AutoCAD.Application.18.1" uses 2011, specifically
            ' "AutoCAD.Application.19" uses 2013,...

            Const progID As String = "AutoCAD.Application.19"
            Dim acApp As AcadApplication = Nothing

            Try
                acApp = DirectCast(Marshal.GetActiveObject(progID), AcadApplication)
            Catch
                Try
                    Dim acType As Type = Type.GetTypeFromProgID(progID)
                    acApp = DirectCast(Activator.CreateInstance(acType, True), AcadApplication)
                Catch
                    MessageBox.Show("Cannot create object of type """ &amp;amp; progID &amp;amp; """")
                End Try
            End Try

            If acApp IsNot Nothing Then
                ' By the time this is reached AutoCAD is fully
                ' functional and can be interacted with through code
                acApp.Visible = True
                acApp.ActiveDocument.SendCommand("_MYCOMMAND ")
            End If
        End Sub
    End Class
End Namespace&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Feb 2013 15:47:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3771061#M70574</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-02-06T15:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing AcadDocument and AcadApplication via .NET assembly</title>
      <link>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3772378#M70575</link>
      <description>&lt;P&gt;Hi Alexander,&lt;/P&gt;&lt;P&gt;This gets long, but I'm hoping you can help me out with this.&lt;/P&gt;&lt;P&gt;The scenario:&lt;/P&gt;&lt;P&gt;We have a web app that launches one program (just like the one below).&amp;nbsp; I add code to let the web app know AutoCad is running.&lt;/P&gt;&lt;P&gt;The web app&amp;nbsp;then sends an array to another function in the same program.&amp;nbsp; The array sent has a handful of keys and variables.&amp;nbsp; My function&amp;nbsp;reads the keys and variables to determine a second program to launch in Autocad (there are three potential programs to launch, the variables will let the code know which one to launch).&lt;/P&gt;&lt;P&gt;Once it knows, how does it go about doing the "netload", entering the path and .dll name of the program to launch, and then sending the command to launch the program (keeping in mind the program to launch will need to receive data, like passing the values of the variables)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for helping me&amp;nbsp;this far.&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2013 15:31:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3772378#M70575</guid>
      <dc:creator>mgorecki</dc:creator>
      <dc:date>2013-02-07T15:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing AcadDocument and AcadApplication via .NET assembly</title>
      <link>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3772609#M70576</link>
      <description>&lt;P&gt;Hello Alexander,&lt;/P&gt;&lt;P&gt;I think I found something that could work:&lt;/P&gt;&lt;P&gt;acApp.ActiveDocument.SendCommand(&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;"(command "&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; &amp;amp; Chr(34) &amp;amp; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;"NETLOAD"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; &amp;amp; Chr(34) &amp;amp; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;" "&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; &amp;amp; _&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Chr(34) &amp;amp; &lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;"C:\myFiles\myProgram.dll"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; &amp;amp; Chr(34) &amp;amp; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&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&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;If that would work, and I have a sub called "POD" that's expecting an array, can I use acApp.ActiveDocument.SendCommand(&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;"(command "&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;POD(arrayName)")")&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2013 18:32:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3772609#M70576</guid>
      <dc:creator>mgorecki</dc:creator>
      <dc:date>2013-02-07T18:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing AcadDocument and AcadApplication via .NET assembly</title>
      <link>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3772614#M70577</link>
      <description>&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class="hps"&gt;I think&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I began to understand&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;what you want. But you can not pass array to command any way. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2013 18:36:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/accessing-acaddocument-and-acadapplication-via-net-assembly/m-p/3772614#M70577</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-02-07T18:36:52Z</dc:date>
    </item>
  </channel>
</rss>

