Design Review

Reply
Active Member
DonaldKerr123
Posts: 9
Registered: ‎12-04-2008
Message 1 of 13 (2,516 Views)

Autodesk Design Review Embedded in HTML Page - Removing All Toolbars/Ribbon

2516 Views, 12 Replies
08-24-2009 08:51 AM
I am trying to embed Autodesk Design Review in a web/html page with all toolbars and ribbons removed and am experiencing the following issues:

1. Autodesk Design Review 2009

I can hide everything but when the program instantiates, it creates a rectangle in the top left hand corner of the screen that covers the html underneath. Momentarily, all the toolbars appear then disappear after it loads. I've tried turning off as Params and also with Javascript to no avail. Toolbars show when the ActiveX is loading. I have tried z-index, display: none, moving off screen etc. etc. etc.

2. Autodesk Design Review 2010

I cannot get rid of the ribbon using Params or Javascript. Is there a Param or Javascript code to do this?


Is there a way around any of the above two problems?
*Bill Bai
Message 2 of 13 (2,516 Views)

Re: Autodesk Design Review Embedded in HTML Page - Removing All Toolbars/Ribbon

08-27-2009 02:04 AM in reply to: DonaldKerr123
Thank you for your question.

Autodesk Design Review 2009 has a known issue regarding hiding toolbars as
you described so we suggest you to use Autodesk Design Review 2010.

Autodesk Design Review 2010 Toolbar UI includes two parts. One is Ribbon UI,
the other is canvas toolbar. You can set below Param to hide them as
default:


classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF" width="100%"
height="100%">




Please let me know if I can be of any further help.
-Bill

wrote in message news:6242167@discussion.autodesk.com...
I am trying to embed Autodesk Design Review in a web/html page with all
toolbars and ribbons removed and am experiencing the following issues:

1. Autodesk Design Review 2009

I can hide everything but when the program instantiates, it creates a
rectangle in the top left hand corner of the screen that covers the html
underneath. Momentarily, all the toolbars appear then disappear after it
loads. I've tried turning off as Params and also with Javascript to no
avail. Toolbars show when the ActiveX is loading. I have tried z-index,
display: none, moving off screen etc. etc. etc.

2. Autodesk Design Review 2010

I cannot get rid of the ribbon using Params or Javascript. Is there a Param
or Javascript code to do this?


Is there a way around any of the above two problems?
New Member
jerrymanz
Posts: 1
Registered: ‎09-02-2009
Message 3 of 13 (2,516 Views)

Re: Autodesk Design Review Embedded in HTML Page - Removing All Toolbars/Ribbon

09-02-2009 10:35 PM in reply to: DonaldKerr123
I've the same ptroblem too! but I can't find Ribbon UI disabling example/reference in Design Review 10 Api help (I would like to use java script).

Could you suggest me a small sample code?

Best Regards

Francesco
Active Member
DonaldKerr123
Posts: 9
Registered: ‎12-04-2008
Message 4 of 13 (2,516 Views)

Re: Autodesk Design Review Embedded in HTML Page - Removing All Toolbars/Ribbon

09-02-2009 11:47 PM in reply to: DonaldKerr123
If the truth be known, it looks like this one is being ignored by Autodesk.

Donald
Employee
baixiaobx
Posts: 8
Registered: ‎07-15-2009
Message 5 of 13 (2,516 Views)

Re: Autodesk Design Review Embedded in HTML Page - Removing All Toolbars/Ribbon

09-06-2009 07:18 PM in reply to: DonaldKerr123

Add example:

<object id="SampleControl1" classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF" width="100%" height="100%">
<param name="RibbonDisplayMode" value='RibbonNotShown'>
<param name="CanvasToolbarEnabled" value='0'>
</object>



Bill Bai
SW Team Lead
AEC
Autodesk, Inc.
Active Member
DonaldKerr123
Posts: 9
Registered: ‎12-04-2008
Message 6 of 13 (2,516 Views)

Re: Autodesk Design Review Embedded in HTML Page - Removing All Toolbars/Ribbon

09-06-2009 11:42 PM in reply to: DonaldKerr123
Thank you very much.
Active Member
DonaldKerr123
Posts: 9
Registered: ‎12-04-2008
Message 7 of 13 (2,516 Views)

Re: Autodesk Design Review Embedded in HTML Page - Removing All Toolbars/Ribbon

09-07-2009 05:56 AM in reply to: DonaldKerr123
I'm afraid that it still doesn't work. The ribbon is still in place (see attached file).
New Member
montehall3780
Posts: 2
Registered: ‎01-22-2009
Message 8 of 13 (2,516 Views)

Re: Autodesk Design Review Embedded in HTML Page - Removing All Toolbars/Ribbon

10-12-2009 11:30 AM in reply to: DonaldKerr123
I have the same issue.

I want the DWFViewer control to retain the ability to zoom/pan, but not have any ability to modify/save/etc. the DWF in the viewer. This was possible in Inventor 2008 by hiding all of the toolbars. My application worked as desired.

Now that I have upgraded to Inventor 2010, I can still hide the toolbars, but I cannot find anything in the API that lets me hide the new ribbon menu (which gives the user functionality I don't want them to have).

How can the ribbon menu be removed? I tried the following, but it did not work:

try
{
// RibbonDisplayModeEnum is defined in the AdCommon type library reference.
axCExpressViewerControlForDWF.RibbonDisplayMode = RibbonDisplayModeEnum.RibbonNotShown; // THIS DID NOT WORK


// THE COMMANDS BELOW WORK FOR INVENTOR 2008 and INVENTOR 2010 to remove a toolbar, but not the ribbon menu.

ECompositeViewer.IAdECompositeViewer CompositeViewer; // control inside the DWFViewer control

// the Composite Viewer controls the various panes (windows) within the DWF Viewer control.
CompositeViewer = (ECompositeViewer.IAdECompositeViewer)axCExpressViewerControlForDWF.ECompositeViewer;

CompositeViewer.MarkupsVisible = false;
CompositeViewer.NavigationBarVisible = false;
CompositeViewer.PaperTilesVisible = false;
CompositeViewer.PaperVisible = false;
CompositeViewer.ToolbarVisible = false;
CompositeViewer.UserInterfaceEnabled = false; // turns off the right-click context menu
CompositeViewer.HyperlinksEnabled = false;
CompositeViewer.HyperlinksHighlightingEnabled = false;
CompositeViewer.HyperlinksSingleClickEnabled = false;
CompositeViewer.HyperlinksTooltipsEnabled = false;
}
catch (Exception ex)
{
} Edited by: montehall3780 on Oct 12, 2009 6:32 PM
*Bill Bai
Message 9 of 13 (2,516 Views)

Re: Autodesk Design Review Embedded in HTML Page - Removing All Toolbars/Ribbon

10-19-2009 08:10 PM in reply to: DonaldKerr123
Thank you for your question.

Autodesk Design Review 2010 doesn't provide any public API to hide the
Ribbon. Above is some example code which can be placed in an HTML file to
hide the Ribbon by setting RibbonDisplayMode. You need to make sure this is
set before the control created.

We will consider your idea to add a new API for possible inclusion in future
releases.

Bill
Active Member
aka.kamyk
Posts: 7
Registered: ‎06-22-2011
Message 10 of 13 (1,918 Views)

Re: Autodesk Design Review Embedded in HTML Page - Removing All Toolbars/Ribbon

06-22-2011 06:18 AM in reply to: DonaldKerr123

I know it is off topic but when I was looking for this problem this was the only place where this problem was mentioned.

 

For somenone who will search for the answer how to hide Ribbon bar using AutoDesk Design Review 2011 using ActiveX control inside WindowsForms.

 

I was able to do this be setting _ViewerParams = ?RibbonDisplayMode=RibbonNotShown inside Property window of axCExpressViewerControl

 

HideRibbon.png

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