Controlling AutoCAd ion Client From Web
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Controlling AutoCAd ion Client From Web

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
Dave Preston
Guest





Posted: Wed Dec 22, 2004 2:58 pm    Post subject: Controlling AutoCAd ion Client From Web Reply with quote

Does anyone have any experience of this:-

I want an AutoCAD user to be able to select information on a web site, then
select, or maybe place, a block in their AutoCAD drawing and update a few
attributes. I have no problem doing this in VB / VBA on the client PC, but
wondered the best method of achieveing this from a web page?

Can VBscript, or maybe JavaScript be used to access the AutoCAD object
model? As I have more VB / VBA experience would it be better / possible to
get the web script to call a program on the client that in turn accessed the
AutoCAd object Model, or maybe just get it to run a VBA module with
parameters

Is there another technique that I have overlooked?

--
Dave Preston
Technical Dev. Engineer
C A Design Services Limited
Address: Design Centre, Hewett Rd, Gapton Hall,
GREAT YARMOUTH,
Norfolk 31 0NN,
Tel: 01493 440444,
Fax: 01493 442480,

E-Mail: dpreston@cadesignservices.co.uk,
Web Site: www.cadesignservices.co.uk,

Registered in England No. 1595687

This e-mail and any attached files is confidential and intended for the
addressee(s) only. It may contain privileged and confidential information,
and may not be disclosed to anyone else. Unauthorised recipients are
requested to preserve this confidentiality by deleting the original and to
advise the sender immediately of any mistakes in transmission. Internet
communications are not secure and therefore C A Design Services Limited does
not accept any legal responsibility for the contents of this message, and
the message and files are opened at the risk of the recipient. Unless
otherwise specifically stated any views or opinions are solely those of the
author and do not represent those of C A De

Back to top
LochDhu
Guest





Posted: Wed Dec 22, 2004 7:15 pm    Post subject: Re: Controlling AutoCAd ion Client From Web Reply with quote

Dave,

Do you manage the contents of the web page? If so, one approach would be to deploy a dll through the web page to each client machine. This dll would be your hook between the web page script - vbscript or javascript - and AutoCAD.

If you don't have control of the web page then we really need more information on what you need to accomplish.

Good Luck,

Scott
Back to top
TomD
Guest





Posted: Wed Dec 22, 2004 7:26 pm    Post subject: Re: Controlling AutoCAd ion Client From Web Reply with quote

"LochDhu" <nospam@address.withheld> wrote in message
news:1086410.1103724937852.JavaMail.jive@jiveforum1.autodesk.com...
Quote:
Dave,

Do you manage the contents of the web page? If so, one approach would be
to deploy a dll through the web page to each client machine. This dll
would be your hook between the web page script - vbscript or javascript -
and AutoCAD.

Do you happen to know of any simple examples of doing something like this?

I'm vaguely familiar with what you're suggesting, but do not know exactly
what the DLL would look like and exactly how this would be implemented.

Thanks for the post.

Back to top
Mikko
Guest





Posted: Wed Dec 22, 2004 8:58 pm    Post subject: Re: Controlling AutoCAd ion Client From Web Reply with quote

Sounds similar to i-drop.
Back to top
Ed Jobe
Guest





Posted: Wed Dec 22, 2004 9:44 pm    Post subject: Re: Controlling AutoCAd ion Client From Web Reply with quote

PS. If you don't sign the control, every time you load the htm, you will get
a warning dialog. "Warning: this page contains a control that may not be
safe."

--
----
Ed
----
"LochDhu" <nospam@address.withheld> wrote in message
news:992325.1103732948161.JavaMail.jive@jiveforum1.autodesk.com...
Quote:
Tom,

Attached is a zip with a tiny, simple example. Register the dll on your
pc, open acad 2004 (I used 2004 in this example, you can modify the source

and recompile or use late binding, your call).
Quote:

Open at least one dwg. Load the htm file in IE. One thing to remember
here, the DLL is not Signed - in the real world you would sign the DLL as

secure. I don't want to sign this control with my companies name on it
because it should only be used for our use. So you will have to set your IE
security settings to allow or prompt to use unsigned activeX Controls for
this test. Don't worry, I'm not gonna format C: on you. You can look at
the source code to verify that there is nothing malicious in the DLL.
Quote:

Plug in the coordinates for a new point in the web page. Press submit and
the control will add the new point to the first dwg in the documents

collection. I am using Javascript as the client-side scripting.
Quote:

The OBJECT tag in the HTM will automatically deploy the dll to all client
machines. If IE settings are to allow Signed controls it will be

transparent to the user. This is good for making updates to the dll and
redeploying it.
Quote:

Hope that helps,

Scott
Back to top
TomD
Guest





Posted: Wed Dec 22, 2004 10:34 pm    Post subject: Re: Controlling AutoCAd ion Client From Web Reply with quote

"Mikko" <nospam@address.withheld> wrote in message
news:19199052.1103731146477.JavaMail.jive@jiveforum1.autodesk.com...
Quote:
Sounds similar to i-drop.

It would allow much greater control, though.
Back to top
TomD
Guest





Posted: Wed Dec 22, 2004 10:35 pm    Post subject: Re: Controlling AutoCAd ion Client From Web Reply with quote

"LochDhu" <nospam@address.withheld> wrote in message
news:992325.1103732948161.JavaMail.jive@jiveforum1.autodesk.com...
Quote:
Tom,

Attached is a zip with a tiny, simple example. Register the dll on your
pc, open acad 2004 (I used 2004 in this example, you can modify the source
and recompile or use late binding, your call).
SNIPPED
The OBJECT tag in the HTM will automatically deploy the dll to all client
machines. If IE settings are to allow Signed controls it will be
transparent to the user. This is good for making updates to the dll and
redeploying it.

Hope that helps,

That will help tremendously. Thank you, very much. ;)
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB