AutoCAD Land Desktop

Reply
*Killion, Michael
Message 1 of 1 (55 Views)

VBScript

55 Views, 0 Replies
03-14-2002 04:52 AM
I am certain I am not supposed to be trying this, but I am able to launch
the application from my VBScript file:

Set objAcad = WScript.CreateObject("Autocad.Application")

and I had thought that if I opened a file associated with a project, that I
would be able to expose the AeccApplication object so that I could create
projects from outside the application using something like:

objAcad.Documents.Open ("N:\proj\000-000\dwg\JUNK.dwg")
strJobNumber = "2802-1512"
Set projs = AeccApplication.Projects

Set proj = projs.Add(strJobNumber, "default (feet)")

but it won't let me, "Object required: AeccApplication". Can I expose this
object using VBScript?

I hope I have provided enough information for you to respond. Thanks for any
input.

Mike killion
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.