AutoCAD Land Desktop

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

VBScript

56 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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!