.NET

Reply
Active Member
vinkd
Posts: 7
Registered: ‎09-22-2012
Message 1 of 3 (440 Views)

Ribbon freezes with custom WPF objects

440 Views, 2 Replies
02-21-2013 03:18 AM

Hello,

 

I've been developing a way for our drafters to properly use a layer scheme. I implemented this by using a background database defined in Excel and loading this on startup. The interface is provided by custom ribbon elements as described in Fenton Webb's "UI Design featuring WPF" (autodesk university, 2009).

 

The ribbon contains the following custom elements:

- two series of radioboxes which are stripped of the default WPF multithreading

- a dropdown which monitors and manipulates LTSCALE

- a dropdown which selects values from the background database. 

- a UserControl which displays information from the background database about the current layer

 

All this has worked fine on multiple (about eight) computers with AutoCAD 2010 and 2012, vanilla and Map 3D. Now for two users, the workspace randomly freezes up. The freeze is just visually, commands are still executed and it is still possible to switch to a workspace without my ribbon in it, but my ribbon just stays on the foreground. This freeze happens when the user interacts with any part of the ribbon: switching tab, clicking buttons, etcetera.

 

The only way to resolve this problem so far is as following:

- Switch to another workspace without my custom ribbon tab

- Restart AutoCAD

- Switch back to the original workspace, everything works now

Directly restarting AutoCAD just results in another frozen interface.

 

Any ideas on how this is caused and of course, how this can be avoided?

 

With kind regards,

Daniël Vink

Rail design & design automation

 

ADN Support Specialist
fenton.webb
Posts: 352
Registered: ‎07-24-2007
Message 2 of 3 (362 Views)

Re: Ribbon freezes with custom WPF objects

02-27-2013 09:54 AM in reply to: vinkd

Sounds like it might be a .NET runtime version/and or an AutoCAD sp missing issue maybe? I advise installing .NET 4.5 and any AutoCAD updates...

 

Also, did you see my Performance gauges bundle sample - you should check that out if you have not seen it yet. Makes WPF Ribbon deployment supper easy. http://adndevblog.typepad.com/autocad/2012/06/autocad-performance-gauges-app.html





Fenton Webb

Developer Technical Services

Autodesk Developer Network


Active Member
vinkd
Posts: 7
Registered: ‎09-22-2012
Message 3 of 3 (327 Views)

Re: Ribbon freezes with custom WPF objects

03-07-2013 02:50 AM in reply to: fenton.webb

Fenton,

 

Thanks for your response. The article you provided is certainly helpful and will be keeping me busy for a while :') Unfortunately the company is still on AutoCAD 2010 and .NET 3.5 and the migration to 2012 / .NET 4.0 is slow at best. 

 

The mentioned bug has not reoccurred after occuring about five times in a few days. As soon as anyone gets the freezes I'll try your fixes.

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 or visit the Installation and Licensing Forum to get help installing your software.