- Choose an eligible visualization library
- Embed an HTML control with this library
- Read the 3D data for a material and give it to the library as input
The result is an interactive presentation of the CAD data of the material:
First of all, the data to be visualized must be available in a suitable 3D format. We chose the STL format, a (quasi-)standard format of many CAD systems. The name of the. stl file corresponds to the material number, e. g.
Then we create an HTML file, which we load later in the browser control and in which we use a library to display 3D graphics,
"three.js" (see Wikipedia) to load the corresponding 3D file of a material and
visualize it on the sap screen.
Finally, when you display a material with GuiXT in transaction MM03, we display the browser control and pass the material number to the script as a parameter in the URL:
You can download all required files for this example here as a .zip file:
Browsercontrol with WebGL (approx. 0.2 MB)
WebGL is only supported by Internet Explorer from version 11!
By default an older version is used when using the IE control. However, you can specify in the GuiXT script which version should be used for the control with the following command:
Further details can be found here: