Author Topic: Need to Open AutoCAD 2006 with VB.NET  (Read 3484 times)

0 Members and 1 Guest are viewing this topic.

sanderson

  • Guest
Need to Open AutoCAD 2006 with VB.NET
« on: January 28, 2010, 02:03:15 PM »
I would like to think this would be pretty simple, but I get the following error on the open line of code (last line):

Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED))

Thanks in advance for any help you can provide...


Conplete Code Listing
Imports System
Imports System.Runtime.InteropServices

Imports Microsoft.VisualBasic

Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.DatabaseServices

Imports Autodesk.AutoCAD.Interop.Common

Imports AutoCADPlot

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim vAcadApp As Autodesk.AutoCAD.Interop.AcadApplication
        Dim vAcadDoc As Autodesk.AutoCAD.Interop.AcadDocuments

        vAcadApp = New Autodesk.AutoCAD.Interop.AcadApplication
        vAcadApp.Visible = True
        vAcadDoc = vAcadApp.Documents.Open("\\d2\library\2050\205003B2.dwg")

    End Sub
End Class



fixo

  • Guest
Re: Need to Open AutoCAD 2006 with VB.NET
« Reply #1 on: January 28, 2010, 04:34:45 PM »

removed because of ignoring

~'J'~
« Last Edit: February 01, 2010, 11:39:26 AM by fixo »

sanderson

  • Guest
Re: Need to Open AutoCAD 2006 with VB.NET
« Reply #2 on: February 04, 2010, 01:18:45 PM »