Message 1 of 21
Can I launch AutoCAD in ASP

Not applicable
02-22-2001
11:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello:
I tried to run some routine in AutoCAD(MDT) from ASP (Active Server
Pages). It took too much time and fail. Is there anyone have been work on
the same situation? If yes, could you give me some advice. Thanks in
advance.
Here is the code in my asp file:
<%
Server.ScriptTimeout = 300
Response.Write "Beging to launch AutoCAD"
dim oacad
set oacad = createobject("AutoCAD.Application")
oacad.visible = true
oacad.loaddvb Server.MapPath("test.dvb")
oacad.runmacro "test.test"
oacad.Unloaddvb "test.dvb"
oacad.quit
set oacad = nothing
Response.Write "Finish AutoCAD Macro Running"
%>
I have been run a similar VBS which work just fine. code is:
dim oacad
set oacad = createobject("AutoCAD.Application")
oacad.visible = true
oacad.loaddvb "f:\mdt projects\mdtwebdb\test.dvb"
oacad.runmacro "test.test"
oacad.Unloaddvb "f:\mdt projects\mdtwebdb\test.dvb"
oacad.quit
set oacad = nothing
Thanks
Wes
I tried to run some routine in AutoCAD(MDT) from ASP (Active Server
Pages). It took too much time and fail. Is there anyone have been work on
the same situation? If yes, could you give me some advice. Thanks in
advance.
Here is the code in my asp file:
<%
Server.ScriptTimeout = 300
Response.Write "Beging to launch AutoCAD"
dim oacad
set oacad = createobject("AutoCAD.Application")
oacad.visible = true
oacad.loaddvb Server.MapPath("test.dvb")
oacad.runmacro "test.test"
oacad.Unloaddvb "test.dvb"
oacad.quit
set oacad = nothing
Response.Write "Finish AutoCAD Macro Running"
%>
I have been run a similar VBS which work just fine. code is:
dim oacad
set oacad = createobject("AutoCAD.Application")
oacad.visible = true
oacad.loaddvb "f:\mdt projects\mdtwebdb\test.dvb"
oacad.runmacro "test.test"
oacad.Unloaddvb "f:\mdt projects\mdtwebdb\test.dvb"
oacad.quit
set oacad = nothing
Thanks
Wes