• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    DWG TrueView

    Reply
    Member
    Posts: 3
    Registered: ‎04-23-2012

    Adding acctrl control kills Visual Studio 2010

    1369 Views, 9 Replies
    04-23-2012 01:31 AM

    I am using Visual Studio 2010 and DWG TrueView 2013 (windows 7 32-bit).

    When I try drag AcCtrl into WinForm, Visual Studio show message:

    "Microsoft Visual Studio has encountered a problem and need to close".

     

    How solve this problem ??

    Please use plain text.
    New Member
    Posts: 1
    Registered: ‎04-23-2012

    Re: Adding acctrl control kills Visual Studio 2010

    04-23-2012 04:04 PM in reply to: wlasek

    the problem is the compatibility between the control and visual studio 2010. VS use to have some problems with controls like that or database management. That happened to me too, the control works fine on visual studio 2008.

     

    Since few days ago I'm looking for detailed information about the properties of this control to use it however I want, if someone can help me with that I would thank it very much.

     

    Diego

    Please use plain text.
    Member
    mona.akkoush
    Posts: 4
    Registered: ‎09-28-2011

    Re: Adding acctrl control kills Visual Studio 2010

    11-06-2012 11:35 PM in reply to: wlasek

    Hi, I am facing the same problem & need to add TrueView control to VS 2010 application, were you able to reach a solution to this problem? Is it solved in any VS service pack or even trueView SP? 

     

    Please advise.

    Thanks, Mona

    Please use plain text.
    Active Contributor
    Posts: 42
    Registered: ‎09-05-2012

    Re: Adding acctrl control kills Visual Studio 2010

    11-29-2012 02:42 AM in reply to: wlasek

    This problem is because of a bug introduced in AxImp the activeX importer when .NET 4.0 came out.  The workaround that I used was to retarget the winforms app to .NET 3.5 framework, drop the control on the form and then retarget again to .NET 4.0

     

    More detailed and less simple workarounds can be found here:

     

    http://blogs.agi.com/engine/?p=628

    Please use plain text.
    Active Contributor
    Posts: 42
    Registered: ‎09-05-2012

    Re: Adding acctrl control kills Visual Studio 2010

    11-29-2012 05:56 AM in reply to: mona.akkoush

    Another solution for the VS 2010 crash at least under my install:

     

    I found that I have 2 different versions of this ActiveX control installed.  I think once you run DWG TrueView it copies the control to Autodesk Shared.  So make sure you select the COM component for your toolbox from the Shared folder not the DWG TrueView folder. 

     

    The one that crashes has identity: {950FE960-6EDD-407A-8A18-74D3EAD58376}\1.0\0\aximp

    The one that works for me is: {EB54BB24-1CF3-44C9-8978-D1E8E5641775}\1.0\0\aximp

     

    Please use plain text.
    Member
    mona.akkoush
    Posts: 4
    Registered: ‎09-28-2011

    Re: Adding acctrl control kills Visual Studio 2010

    12-01-2012 12:49 AM in reply to: wlasek

    Hi, 

    Thanks for suggestions, but unfortunately none worked for me.

     

    When trying to add the control from "C:\Program Files\Common Files\Autodesk Shared\AcCtrl.dll", I get the following error: Self-registration for C:\Program Files\Common Files\Autodesk Shared\AcCtrl.dll failed.

     

    I tried to registed the DLL manually but it did not work.

     

    Please advise.. Thanks

    Please use plain text.
    Active Contributor
    Posts: 42
    Registered: ‎09-05-2012

    Re: Adding acctrl control kills Visual Studio 2010

    12-01-2012 05:36 AM in reply to: mona.akkoush

    what is your .NET version your project is targeting when you drop the control on the form?

    Also, can you run DWG TrueView standalone?!

    Please use plain text.
    Member
    mona.akkoush
    Posts: 4
    Registered: ‎09-28-2011

    Re: Adding acctrl control kills Visual Studio 2010

    12-03-2012 12:06 AM in reply to: wlasek

    Hi,

    I tried to change my target .Net to 3.5, add the control, then target 4.0 but it did not work. I will need to target .Net 4.0 in my project. As for true view (2013), yes it runs perfectly standalone.

     

    Thanks,

    Please use plain text.
    Contributor
    Posts: 14
    Registered: ‎02-19-2009

    Re: Adding acctrl control kills Visual Studio 2010

    03-20-2013 04:57 AM in reply to: mona.akkoush

    Is there any news, how to use DWG TrueView 2013 ActiveX (AcCtrl.dll) control with Visual Studio 2010?

    After I drop the control from the toolbox to Form Visual Studio is collapsed. When I changed the target Framework (2.0, 3.0, 3.5, 3.5 Client, 4.0, 4.0 Client) the result was the same.

    On ADN a saw: I have to use this ActiveX to display DWG images.

    Please use plain text.
    Contributor
    Posts: 14
    Registered: ‎02-19-2009

    Re: Adding acctrl control kills Visual Studio 2010

    03-25-2013 03:37 AM in reply to: satu777

    Here is the answer for myself:

     

    You have to create and assign ActiveX control runtime.

     

    1. Use Aximp.exe (Windows Forms ActiveX Control Importer) to convert type definitions in a COM type library for an ActiveX control into a Windows Forms control.

        "aximp.exe C:\Program Files\Autodesk\DWG TrueView 2013\AcCtrl.dll"

    The result: ACCTRLLib.dll and AxACCTRLLib.dll

     

    2. Copy these files to your folder

     

    3. Add reference from Solution Explorer to AxACCTRLLib.dll

     

    4. Instantiate the control:

           AxACCTRLLib.AxAcCtrl ac = new AxACCTRLLib.AxAcCtrl();

           this.Controls.Add(ac);
           ac.Dock = DockStyle.Fill;


    5. Load your DWG file:

           ac.PutSourcePath(@"d:\test.dwg");

     

    The AcCtrl control is not compatible with VS 2010.

    Please use plain text.