Design Review

Reply
Distinguished Contributor
Rene-J
Posts: 305
Registered: ‎05-07-2005
Message 1 of 13 (3,173 Views)

ADR 2011 Api & VB2010 Express

3173 Views, 12 Replies
02-01-2011 04:12 AM

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

Employee
herbert.he
Posts: 338
Registered: ‎03-05-2008
Message 2 of 13 (3,124 Views)

Re: ADR 2011 Api & VB2010 Express

02-11-2011 07:17 PM 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.
New Member
dlundgren
Posts: 2
Registered: ‎09-26-2007
Message 3 of 13 (3,009 Views)

Re: ADR 2011 Api & VB2010 Express

03-09-2011 06:55 PM 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

Employee
herbert.he
Posts: 338
Registered: ‎03-05-2008
Message 4 of 13 (2,978 Views)

Re: ADR 2011 Api & VB2010 Express

03-11-2011 07:22 PM 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.
New Member
BachmannGmbH
Posts: 2
Registered: ‎03-14-2011
Message 5 of 13 (2,950 Views)

Re: ADR 2011 Api & VB2010 Express

03-14-2011 05:19 AM 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

Valued Contributor
gbneff
Posts: 63
Registered: ‎11-08-2000
Message 6 of 13 (2,813 Views)

Re: ADR 2011 Api & VB2010 Express

04-26-2011 03:18 PM 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.

Valued Contributor
jta_albert
Posts: 75
Registered: ‎01-10-2006
Message 7 of 13 (2,665 Views)

Re: ADR 2011 Api & VB2010 Express

07-21-2011 12:01 PM 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!!! :smileyhappy:

 

New Member
BachmannGmbH
Posts: 2
Registered: ‎03-14-2011
Message 8 of 13 (2,653 Views)

Re: ADR 2011 Api & VB2010 Express

07-21-2011 09:55 PM in reply to: jta_albert

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

Active Member
alexs
Posts: 7
Registered: ‎08-29-2008
Message 9 of 13 (2,251 Views)

Re: ADR 2011 Api & VB2010 Express

03-05-2012 08:38 PM 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

Active Contributor
vgottipa
Posts: 31
Registered: ‎02-10-2011
Message 10 of 13 (2,242 Views)

Re: ADR 2011 Api & VB2010 Express

03-06-2012 07:49 AM in reply to: alexs

Did you try targeted to x86?

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community