AutoCAD Land Desktop (Read Only)
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 1
Anonymous
152 Views, 0 Replies

VBScript

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
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report