What help you need? What is the problem?
Why you use CreateObject to create
Autodesk.AutoCAD.ApplicationServices.Application object? If your .NET API
app runs, the object is there already, since Acad is running. Or your code
is in a stand-alone application? if yes, then you cannot use ObjectAXR .NET
API, that is, there is no Autodesk.AutoCAD.ApplicationServices.Application
object available to use in stand-alone VB.ENT app.
wrote in message news:5651062@discussion.autodesk.com...
Hey, any help would be appreciated, I can seem to open a window here's the
code
Dim Acadapp As Autodesk.AutoCAD.ApplicationServices.Application
Acadapp = CreateObject("AutoCAD.Application")
Acadapp.DocumentManager.Open("c:\test.dwg", True, "null")
Acadapp.MainWindow.Visible = True
Acadapp.DocumentManager.MdiActiveDocument.CloseAndSave("bob.dwg")
Acadapp.Quit()