AutoCAD API

AutoCAD API

Anonymous
Not applicable
764 Views
14 Replies
Message 1 of 15

AutoCAD API

Anonymous
Not applicable

Does AutoCAD API have a viewer that I can link my application to?

Thanks

0 Likes
765 Views
14 Replies
Replies (14)
Message 2 of 15

lando7189
Advocate
Advocate

Yes.  Check in to acctrl.dll.

0 Likes
Message 3 of 15

Anonymous
Not applicable

Forgive my ignorance Lando7189, but what is "acctrl.dll."?

Thanks

Rasheeda

0 Likes
Message 4 of 15

lando7189
Advocate
Advocate

It is the 'DWG TrueView' control that you can drop onto a form to view dwg files.  You would need to call it from an application developed in VB.NET as it can't be called from VBA within AutoCAD.

0 Likes
Message 5 of 15

Anonymous
Not applicable

Is it difficult to add the API to an application and then call the "DWG TrueView"?

What is involved in this? ie Does it take alot of hours?

thanks

Rasheeda

0 Likes
Message 6 of 15

lando7189
Advocate
Advocate

Rasheeda,

 

Here is an example of how to use it within Visual Studio (The example is for AutoCAD 2009 & VS2005 using C#, but it demonstrates the basic idea of how it works). 

 

http://through-the-interface.typepad.com/through_the_interface/2008/03/embedding-autoc.html

 

It also requires DWG True View being installed on the machine the program is running. 

 

 

 

 

0 Likes
Message 7 of 15

Anonymous
Not applicable

So, would I embed the DWG True View within my software application that is on the web?

0 Likes
Message 8 of 15

lando7189
Advocate
Advocate

DWG True View must be installed on the local machine, but the web page should then work.

 

 

0 Likes
Message 9 of 15

Anonymous
Not applicable

Therefore it would have to be embedded into the software on a server (ie server license)?

thanks

0 Likes
Message 10 of 15

lando7189
Advocate
Advocate

No -- the dll would be referenced only.  The server wouldn't need it, just the local pc calling the webpage.

0 Likes
Message 11 of 15

Anonymous
Not applicable

So, would I need to develop a viewer for my software using the AutoCAD api, or has this been done already?

I want to be able to view .pdfs and dwgs within my software?

thanks

0 Likes
Message 12 of 15

lando7189
Advocate
Advocate

The acctrl.dll contains the viewer control.  You just reference it, add the control, and add it to a form.  The example i listed earlier shows an example.

0 Likes
Message 13 of 15

Anonymous
Not applicable

my clients wouldn't be able to download a dwg viewer onto their pc, because of restrictions. Hence I wanted to incorporated into the web based software?

Is this doable?

0 Likes
Message 14 of 15

dgorsman
Consultant
Consultant

What you are after, I think (viewing DWG files online, as you would a movie or image) isn't currently doable at least not very easily.  There are a few prototype systems out there but they are quite complex.  You may want to consider a non-scripted solution such as A360 which includes viewers for many different file types.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


0 Likes
Message 15 of 15

Anonymous
Not applicable
0 Likes