AutoCAD Land Desktop

AutoCAD Land Desktop

*Killion, Michael
Message 1 of 1 (57 Views)


57 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

Mike killion
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.