Skip to Content
Recently there was a  post  (Open ECL Viewer on a BSP Page) in BSP forum about using CL_GUI_ECL_3DVIEWER in BSP  applications and that lead to this weblog. This class(CL_GUI_ECL_3DVIEWER) is primarily for using in SAPGUI. I took a deeper look  to see which control they are using , whether the same can be used in webpage  and found out that its quite simple. This class uses methods of a dll (webviewer3d.dll) installed as  part of SAP GUI installation. For this example to work, your system should have  this dll registered in your local pc. Generally this dll can be found in the  following path – c:program filessapfrontendsapguiwebviewer3d.dll.image
BSP Page layout code
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
  <htmlb:page title=" " >
          <script language="javascript">
        function setFile(value){
        if ( ( value.lastIndexOf(".jt") != -1 ) || ( value.lastIndexOf(".wrl") != -1 ) || ( value.lastIndexOf(".stl") != -1 )){
                        document.getElementById('WebViewer3D1').File = value;
                        return true;
            } else{
                        alert("Please upload files with extension .jt OR .wrl OR .stl files only!");
                        return false;
            }
    }
        </script>
    <htmlb:form>
      <object classid="clsid:AFBBE070-7340-11d2-AA6B-00E02924C34E" id="WebViewer3D1" width="851" height="532">
       <param name="BackgroundColor" value="8421440">
       <param name="File" value="">
       <param name="ContextMenuMode" value="1">
       <param name="InteractionMode" value="6">
      </object>
      <br>
      <input type="file" value="file get" name="f1" onchange="javascript:setFile(this.value);">
      <br>
    </htmlb:form>
  </htmlb:page>
</htmlb:content>
To report this post you need to login first.

20 Comments

You must be Logged on to comment or reply to a post.

  1. Hi raja
      It’s good but how u came to know the class id is
    ‘AFBBE070-7340-11D2-AA6B-00E02924C34E’ could u please tell me .
    thanks in advance

    (0) 
    1. Durairaj Athavan Raja Post author
      Couple of ways.

      1. If you look at the constructor method code of CL_GUI_ECL_3DVIEWER, it uses activex control EAIWeb.webviewer3D.1. To find the class id of this control from windows start menu execute the following .
      Start->run-> type in regedit in the box and click ok. this will start the registry editor, in there you can do a serach for EAIWeb.webviewer3D.1 and find the class id.

      2. If you have Frontpage installed in your machine, you can go to
      Insert->Web Componenet->Advanced Controls->Activex Control and choose the control you want , it will automatically create object tag with class id.

      Hope this helps,

      Regards
      Raja

      (0) 
  2. Former Member
    Dear Raja!

    You have done a fantastic job of opening up the ecl viewer on a web page. It helped me a great deal.
    I would be obliged if now you could help me with providing the functionality of redlining in this ECL Viewer.

    Thanks n Regards,
    Reema

    (0) 
  3. Former Member
    Hi,

    This is a very interesting article.
    We have another powerful multi desciplinary viewer called VCollab ( http://www.vcollab.com ).  One can easily embed into WEB pages.  Please do write to me, if any SAP user is interested in this  and I would be happy to share more info.   

    Thanks
    prasad

    (0) 
      1. Former Member
        VCollab  has a free viewer.  Our experience with large corporations is that the IT departments are very skeptical in installing any free S/W on their users machines.   Instead, IT departments are looking for low fee, fully supported and professional 3D viewers.  VCollab Presenter is one such professional viewer with which one can view not just CAD but also FEA, CFD, VSA and CAM simulations and this viewer is continuously developed and supported based on customer feedback.  The VCollab files can also be embedded into MS Office documents and then go thru the PLM process very elegantly, opening up new possibilities to SAP user community.   See the following link to experience VCollab Presenter demos.

        http://www.vcollab.com/Presenter/PresenterDemoServer.asp

        Thanks
        prasad

        (0) 
      2. Former Member
        VCollab  has a free viewer too.  Our experience with large corporations is that the IT departments are very skeptical in installing any free S/W on their users machines.   Instead, IT departments are looking for low fee, fully supported and professional 3D viewers.  VCollab Presenter is one such professional viewer with which one can view not just CAD but also FEA, CFD, VSA and CAM simulations and this viewer is continuously developed and supported based on customer feedback.  The VCollab files can also be embedded into MS Office documents and then go thru the PLM process very elegantly, opening up new possibilities to SAP user community.   See the following link to experience VCollab Presenter demos.

        http://www.vcollab.com/Presenter/PresenterDemoServer.asp

        VCollab is another choice for SAP users.

        Thanks
        prasad

        (0) 
      3. Former Member
        VCollab  has a free viewer too.  Our experience with large corporations is that the IT departments are very skeptical in installing any free S/W on their users machines.   Instead, IT departments are looking for low fee, fully supported and professional 3D viewers.  VCollab Presenter is one such professional viewer with which one can view not just CAD but also FEA, CFD, VSA and CAM simulations and this viewer is continuously developed and supported based on customer feedback.  The VCollab files can also be embedded into MS Office documents and then go thru the PLM process very elegantly, opening up new possibilities to SAP user community.   See the following link to experience VCollab Presenter demos.

        http://www.vcollab.com/Presenter/PresenterDemoServer.asp

        VCollab is another choice for SAP users.

        Thanks
        prasad

        (0) 
    1. Former Member
      VCollab  has a free viewer too.  Our experience with large corporations is that the IT departments are very skeptical in installing any free S/W on their users machines.   Instead, IT departments are looking for low fee, fully supported and professional 3D viewers.  VCollab Presenter is one such professional viewer with which one can view not just CAD but also FEA, CFD, VSA and CAM simulations and this viewer is continuously developed and supported based on customer feedback.  The VCollab files can also be embedded into MS Office documents and then go thru the PLM process very elegantly, opening up new possibilities to SAP user community.   See the following link to experience VCollab Presenter demos.

      http://www.vcollab.com/Presenter/PresenterDemoServer.asp

      VCollab is another choice for SAP users.

      Thanks
      prasad

      (0) 
      1. Former Member
        Hi Prasad,

        I downloaded trial copy of vcollab presenter.

        Can you please put some light if it be integrated with cFolders in mySAP PLM ?

        Regards,

        Rahul

        (0) 
  4. Former Member
    Hi,
    You just did a great job.
    Could you please tell now how to print the file?
    I’m using the CL_GUI_ECL_2DVIEWER class id
    A76CEBEE-7364-11D2-AA6B-00E02924C34E.

    thank you

    (0) 
      1. Former Member

        Thanks for getting back to me!  Is there anything that needs to be done in the event handler or any other background information that would help get this working?

        Would greatly appreciate it.

        (0) 

Leave a Reply