Subversion Repositories wimsdev

Rev

Rev 1265 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1265 schaersvoo 1
 
338 schaersvoo 2
function zirkel2wims(type,name){
1265 schaersvoo 3
    var data;
4
    if(type != null && name != null){
5
        // get only the things we want...
6
        data = document.getElementById("zirkel").getDrawing(type,name);
338 schaersvoo 7
    }
1265 schaersvoo 8
    else
9
    {
10
        // this function retreives all construction details 
11
        // excluded objects with name prefix "my_" 
12
        data = document.getElementById("zirkel").getAllObjects();    
338 schaersvoo 13
    }
1265 schaersvoo 14
    if(data.indexOf("error") != -1){alert(r19+"\n"+data); return "error";}else{return data;}
5807 schaersvoo 15
}