
What is SAP VE Viewer
SAP Visual Enterprise Viewer (VEV) is used to view 2D/3D images on various SAP tools, web pages and even with Microsoft Office. VEV is an end-user tool which is lightweight, powerful, easy to use, and free of charge. It enables nontechnical users to view and interact with authored and published 2D and 3D content. One can provide visual instruction to a shop floor operator with help of SAP VEV. Following is a screen shot of image representation in VEV.
<object id="DeepView" type="application/rh" width="100%" height="60%" >
<paramname="FileName" value="filePath”>
</object>
dvPlugin= document.getElementById("DeepView");
dvPlugin.LoadFile("filePath");
dvPlugin.SceneLoaded= sceneLoaded; //assigning sceneLoaded function on node selection event
dvPlugin.NodesSelected= selectionChanged; //assigning selectionChanged function on node selection event
selectionChanged([]);
//sceneLoaded function which will be trggered on scene loaded event
function sceneLoaded(){
GetNodeMetadataStrings();
var sceneLoad=GetNodeMetadataStrings();
}
//sceneLoaded function which will be trggered on node selected event
function selectionChanged(nodes) {
var refdes=[]; //declaring an array to store refdes value of all the selected nodes
for (var i = 0; i < nodes.count; i++) { //looping around all the selected nodes
var node = nodes.item(i); //storing current node info in node variable
var refdesData=node.Metadata.Item("rh").Item("refdes"); //fetching value of refdes
var refdesStr=GetMetadataVariableStringValue(refdesData); //converting value to a //string
refdes.push(refdesStr); //pushing string values in an array
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.