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: 

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

12 REPLIES 12
Reply
Message 1 of 13
DonaldKerr123
3747 Views, 12 Replies

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

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?
12 REPLIES 12
Message 2 of 13
Anonymous
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?
Message 3 of 13
jerrymanz
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
Message 4 of 13

If the truth be known, it looks like this one is being ignored by Autodesk.

Donald
Message 5 of 13
baixiaobx
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.
Message 6 of 13

Thank you very much.
Message 7 of 13

I'm afraid that it still doesn't work. The ribbon is still in place (see attached file).
Message 8 of 13

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
Message 9 of 13
Anonymous
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
Message 10 of 13
aka.kamyk
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

Message 11 of 13
dipanjan
in reply to: aka.kamyk

I have a problem with a code which is working properly in Windows XP but not in Windows 7.

 

The code is :

 

<object id="drawing" classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF" width="700" height="500">
<param name="src" value="<%=drawing%>.dwf">
<param name="UserMode" value="ZoomToRect">
<param name="BackgroundColor" value="FFFFFF">
<param name="Layout" value="TOP">
<param name="DATAFRAMEUI" value="false">

 

In Windows XP, IE 8 and Autodesk DWF viewer 7 it displays the .dwf image correctly. However, this code does not work properly in Windows 7.

 

With Windows 7, IE9 and Autodesk DWF 7 viewer it shows a Autodesk box like feature . the image is present but not visible untill the canvas is dragged. Our customers are not happy with this dragging thing.

 

With Windows 7, IE9 and Autodesk Design Review 2012 or 2013 edition, the image is not at all visible. All the controls are disabled. 

Please see the attached doc file for the screenshot.

We are using Windows 7 , 64 bit.

Please help me with this issue.

Message 12 of 13
cql9
in reply to: DonaldKerr123

I have the same problem. So far haven't solved.Part of the code below

<script language="javascript" type="text/javascript">

  window.onload=function UserInterfaceEnabled()
  {
   Eview.Viewer.UserInterfaceEnabled = false;  //The function did worked.
   Eview.Viewer.ToolbarVisible = false;   //The function did  worked.

   Eview.Viewer.HyperlinksEnabled = true;
   Eview.Viewer.HyperlinksSingleClickEnabled = true;   //The function didn't worked.

   //Eview.Viewer.HyperlinksHighlightingEnabled = false;

  } 
   </script>

***********************************************************

<object
 classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF"
 codebase="http://www.autodesk.com/global/dwfviewer/installer/DwfViewerSetup.cab#version=6,0,0,200"
 id="Eview"
 onLoad="load()"


@DonaldKerr123 wrote:
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?



 width="100%"
 height="100%"
  >
<param name="src" value="../dwf/3.dwf"></param>
</object>

 

***********************************************************

Click the HyperlinksSingleClickEnabled to the realization of the function of the no, hope everyone to think how to solve, thank you.

 


 

Message 13 of 13
ofinext
in reply to: DonaldKerr123

hello

 

my problem is the opposite. i have embeded ADR in my web and sometimes ribbon appears and sometines not when i open a dwf file. I need ribbon appears always.

 

Can you help me?

 

thanks in advance.

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

Post to forums  

Autodesk Design & Make Report