.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TrueView 2014 AcCtrl Control

23 REPLIES 23
Reply
Message 1 of 24
absStructural
16809 Views, 23 Replies

TrueView 2014 AcCtrl Control

Has anyone successfully embedded the TrueView 2014 control in a Windows form?  It seems like it shouldn't be all that difficult, but I'm not having much luck.

Tags (2)
23 REPLIES 23
Message 2 of 24
Balaji_Ram
in reply to: absStructural

Hi Michael,

 

I have attached a sample project that embeds the DWG TrueView ActiveX control and the screenshots to show the steps to use the ActiveX in a .Net project. I have tested this in my Windows 7, 64 bit system that has DWG TrueView 2014 installed.

 

To try this :

 

1) Open Visual Studio 2010 64 bit command prompt

 

2) regsvr32 "C:\Program Files\Autodesk\DWG TrueView 2014\AcCtrl.dll"

 

3) aximp "C:\Program Files\Autodesk\DWG TrueView 2014\AcCtrl.dll"

 

4) copy "c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ACCTRLLib.dll" "C:\Program Files\Autodesk\DWG TrueView 2014\ACCTRLLib.dll"

 

5) copy "c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\AxACCTRLLib.dll" "C:\Program Files\Autodesk\DWG TrueView 2014\AxACCTRLLib.dll"

 

6) Add reference to the assemblies in your .Net project from "C:\Program Files\Autodesk\DWG TrueView 2014\ACCTRLLib.dll" and "C:\Program Files\Autodesk\DWG TrueView 2014\AxACCTRLLib.dll"

 

7) Set the "Embed Interop types" for the assemblies to False as shown in the attached screenshot

 

😎 Build and run the sample. Select a drawing using the Browse button and click on Load button

 

Regards,

Balaji

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

Message 3 of 24
Balaji_Ram
in reply to: absStructural

 

Sorry, wanted to attach one more file, but the system would not let me add more than 3 files in a reply.

 

So, here is the screenshot of the Form with TrueView embedded.

 

Regards,

Balaji



Balaji
Developer Technical Services
Autodesk Developer Network

Message 4 of 24
alex_b
in reply to: Balaji_Ram

Hi Balaji,

 

I'm trying to do the above (for Acad & TrueView 2012 and a bit more elaborate though).

I followed your instructions for registering the TrueView assemblies.

I get this error when calling AxACCTRLLib.AxAcCtrl.PutSourcePath(path);

"Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"

 

Any idea what causes this? 

 

Thanks,

 

alex

Message 5 of 24
absStructural
in reply to: alex_b

In my experience, that error is caused because TrueView was not the last Autodesk product installed.  AutoCAD, for instance, registers a different DLL with the same name.

 

Try running the TrueView installer again, and see if you have the same problem.

Message 6 of 24
Balaji_Ram
in reply to: absStructural

Yes, you are right. 

TrueView 2014 has to be installed as the last product.

 

But this has been fixed in TrueView 2015. The ActiveX control is now renamed as "dwgviewrAcCtrl.dll" and can be found in "C:\Program Files\Common Files\Autodesk Shared" 

 

Regards,

Balaji



Balaji
Developer Technical Services
Autodesk Developer Network

Message 7 of 24
absStructural
in reply to: Balaji_Ram

That's really good to hear.  From an IT and Development perspective - that requirement was kind of a pain.

Message 8 of 24
hgasty1001
in reply to: Balaji_Ram

Hi Balaji,

 

What about True View 2015?, as I can't find AcCtrl.dll in its installation directory.

 

Gaston Nunez

Message 9 of 24
Balaji_Ram
in reply to: hgasty1001

Hi Gaston,

 

You will find it as "dwgviewrAcCtrl.dll" under "C:\Program Files\Common Files\Autodesk Shared" to avoid naming conflict with AutoCAD's AcCtrl.dll

 

Regards,

Balaji



Balaji
Developer Technical Services
Autodesk Developer Network

Message 10 of 24
absStructural
in reply to: Balaji_Ram

Balaji, please take a look at this when yiou get some time: http://forums.autodesk.com/t5/NET/TrueView-2015-ActiveX-Control/td-p/5083988

 

 

Message 11 of 24
hgasty1001
in reply to: Balaji_Ram

Hi Balaji,

 

Thank you very much, I'll give it a try.

 

Gaston Nunez

Message 12 of 24
alex_b
in reply to: absStructural

Thank you for the tip. I wouldn't have thought of that in a milion years.

About your post mentioned below:

The crosshairs indeed disappear after restoring a minimized window, but a left-click restores it. But I am using TV 2012.

I entierly agree with the speed issue, it is a big pain. OTH, I couldn't find anything better than TV, so...

(I played a while with Teigha, but couldn't make it work offhand and didn't have the time to go deeper)

One other thing: can I use the TV2015 control on a system with A2012 only?  

Message 13 of 24
paulohenrique.dvc
in reply to: alex_b

How I make available Model and Paper Spaces buttons?


There is one way to do open file process faster?

I'm using DWG True View 2015.

 

Thanks.

Tags (1)
Message 14 of 24

Hi

Did you find an answer to the Model and Paper Spaces buttons?

Thanks.

Message 15 of 24
abboudkoo
in reply to: absStructural


Message 16 of 24
abboudkoo
in reply to: absStructural

How can Change the back color of axAcCtrl to black ?

and how can take tutorial of that , please ?

with .Net code 

 

 

Message 17 of 24
$sbk$
in reply to: abboudkoo

Hi,

 

I am new to the csharp.

 

Today I created new file browser and viewer in Form.

I used DWG True viewer 2013 in VS2010. Problems are!!

 

1. If i give rebuild the solution, axAcCtrl  controls are missing and Acc**.dll is deleting automatically. then through error while debug.

2. When selecting the file from listbox, displaying time is very slow....

3. Is any code to turn off the  Paper space, orbit and mini tool set in viewer.

Message 18 of 24
$sbk$
in reply to: $sbk$

Hi everyone!

 

Is it possible to run this AcCtrl by default.

 

when application starts the window + blank viewer to run in Acctrl.

Message 19 of 24
gala_soft
in reply to: Balaji_Ram

Is it possible to display TrueView inside HTML page, please? With other words, I need to display DWG files in HTML.

Thank you

Message 20 of 24
alex_b
in reply to: gala_soft

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost