Design Review
Welcome to Autodesk’s Design Review Forums. Share your knowledge, ask questions, and explore popular Design Review topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ADR 2011 Api & VB2010 Express

13 REPLIES 13
Reply
Message 1 of 14
Rene-J
4776 Views, 13 Replies

ADR 2011 Api & VB2010 Express

Hi

I have a problem, when I try to Insert  the Autodesk DWF Viewer Control.
in a form.  VB 2010 Express is crash immediately.

 

René J

13 REPLIES 13
Message 2 of 14
herbert.he
in reply to: Rene-J

Thank you for reporting this issue.

 

It seems like an issue of VS2010 rather than ADR. Please refer to this article:

https://connect.microsoft.com/VisualStudio/feedback/details/568769/aximp-error-with-vb6-activex-cont...

 

Please try to apply VS2010 hotfix-2066987 to resolve this issue.

 

Please let us know if it works.



Herbert He
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.
Message 3 of 14
dlundgren
in reply to: Rene-J

I am experiencing similar behavior with Visual Studio 2010 Professional.  I've applied the hotfix from Microsoft (2066987) and the same behavior continues.  I've attached a screenshot of the VS designer right before it crashes and has to be restarted.

 

Any ideas would be greatly appreciated.

 

Sincerely,

 

Dale Lundgren

Message 4 of 14
herbert.he
in reply to: dlundgren

Thank you for your question.

 

Since ADR 2011 required .NET 3.5 runtime, please insure to select Target Framework as .NET Framework 3.5 for your project.

 

Please let me know if you have any further question.



Herbert He
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.
Message 5 of 14
Anonymous
in reply to: herbert.he

Hello,

 

I have the same problem with integration the ADR2011 in Visual Studio Premium via the COM component. I have checked several combinations:

 

- x86 or x64 machine with C# or VB .NET -> crashes in WIndows Forms Designer

- Framwork 3.5 or Framework 4.0 -> crashes in WIndows Forms Designer

- installing HotFix from MS Support KB2066987 -> same result

- installing Visual Studio SP 1 -> same result

 

So I didn't find a combination to integrate the ADR2011 in VS2010. Does anybody know what to to? The error is the same as described in the previous comments.

 

Regards

 

Jens

Message 6 of 14
gbneff
in reply to: Rene-J

Same problem here using visual studio 2010 professional and c#.  Visual Studio crashes every time I try to add the viewer to the form.

Message 7 of 14
jalbert300
in reply to: gbneff

Has anyone found a solution to this issue?

 

I have the same problem with Visual Studio 2010 and ADR 2012.

 

I need help ASAP please someone!!! 🙂

 

Message 8 of 14
Anonymous
in reply to: jalbert300

Yes I have. My solution was to use Visual Studio 2008 with .NET Framework 2, build a DLL and use this DLL in your VS2010 project. This works fine.

Regards,


Jens

Message 9 of 14
acaseger
in reply to: Rene-J

It seems to me, by reading the messages in this tread, which go back to over a year, that the situation with using the ADR 2012 with VS2010, has not changed.

I just started with developing an application that uses the RealDWG to create a set of drawings based on templates and change the values of attributed blocks. This part works fine. However, since that the RealDWG does not displays or prints out but it can save drawing files to the dxf format, I planned to use ADR to view and print out completed drawings.

So far I wasn’t able to use the Autodesk DWF Viewer Control with VS2010; VS2010 crushes immediately after inserting the control into a form. I then created a DLL using the VS2008, but it didn’t work. By the way, with VS2008, I have to use the .NET Framework 2.0 to make the programme works.

With no success in the above attempts, I created a line command for ADR to print out a specific file. It worked well with the DWF files but will not work with DXF files. This is unfortunate, since that the RealDWG SDK will not save DWG to DWF format.

Herbert He, the Autodesk SW Engineer, has made a comment stating that this seems to be a VS2010 issue rather than ADR. If this is so, I would like to see more specific or detailed explanation and conformation about ADR 2012 compatibilities with the VS2010, including a working sample, VB or C#.

If in the meantime if an updated ADR is available, please advice.

I am not a professional programmer, but if so many other users are reporting the same issue, I trust that it should not be ignored

Alex Seger

Engineering & Manufacturing Systems Specialist

Message 10 of 14
vgottipa
in reply to: acaseger

Did you try targeted to x86?

Message 11 of 14
acaseger
in reply to: vgottipa

Yes. The targeted environment is x86 and .Net Frameworks 3.5.

Has anybody managed to successfully use the DWF Viewer Control with VS2010? If so, what did the trick?

By the way I am using VS2010 Ultimate with SP1 on the Windows 7 Professional.

 

Alex

Message 12 of 14
FRFR1426
in reply to: acaseger

Old thread, but if it can help someone. I've managed to get it works:

 

  1. Open a console and browse to C:\Program Files (x86)\Common Files\Autodesk Shared\DWF Common\ ;
  2. Run aximp.exe AdView.dll. Two files are generated: ExpressViewerDll.dll and AxExpressViewerDll.dll ;
  3. Add the AxExpressViewerDll.dll as a reference to your VS solution ; 
  4. In the load event of your form, create the control by code:

 

var aev = new AxExpressViewerDll.AxCExpressViewerControl();
Controls.Add(aev);
aev.Dock = DockStyle.Fill;

 

 

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
Message 13 of 14
andred
in reply to: FRFR1426

Hi,

 

I'm trying your solution but I was not able to extract axExpressViewerDLL.dll. There is no registered Activez Control found in adview.dll.

 

Regards,

 

André

 

Message 14 of 14
nstone2
in reply to: andred

You still need to build the solution with .net 3.5 framework and a platform target x86

 

and this worked for me.

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

Post to forums  

Autodesk Design & Make Report