|
 |
asp_web_howto thread: Can I launch AutoCAD in ASP
Message #1 by "Weslley Wang" <weslleywang@h...> on Fri, 23 Feb 2001 11:06:03 -0500
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_00C9_01C09D88.9C6A7730
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
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.
I also check in the online help, I got this explaination:
1. Make sure all associated DLLs are available.
I can run the vbs version so i think it should work, right?
2. IE may be trying to create an object for you, but you do not have
the correct security permissions set in IE.
What is the "correct security permissions set "?
Thanks in advance.
Here is the code in my asp file:
<%
Server.ScriptTimeout =3D 300
Response.Write "Beging to launch AutoCAD"
dim oacad
set oacad =3D createobject("AutoCAD.Application")
oacad.visible =3D true
oacad.loaddvb Server.MapPath("test.dvb")
oacad.runmacro "test.test"
oacad.Unloaddvb "test.dvb"
oacad.quit
set oacad =3D nothing
Response.Write "Finish AutoCAD Macro Running"
%>
I have been run a similar VBS which work just fine. code is:
dim oacad
set oacad =3D createobject("AutoCAD.Application")
oacad.visible =3D 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 =3D nothing
Thanks
Wes
|
|
 |