By Daniel Du
When plotting in Ajax viewer with QuickPlot, the coordinate labels of left-upper corner and bottom-right corner always show up as screen-shot below:
I got a request to disable this coordinate label. After some investigation, here is the solution for your reference.
The simplest way is to change the CSS of coordinate label div, please refer to C:Program FilesAutodeskAutodesk Infrastructure Web Server Extension 2012wwwviewerfilesquickplot.js and seach “createCoordinateLabel”, edit the value of label.style.cssText to “display:none;”
var label = this.innerDoc.createElement("div");
container.appendChild(label);
label.id = id;
label.style.cssText = "display:none;";
label.innerHTML = "X: " + cX + " Y: " + cY;
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/white-space: pre;/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }
Here is the screen-shot after modification, the coordinate label is disabled now.
This solution applies to AIMS 2013 as well.



Leave a Reply