// For this example to run, a graph window must exist in the project.
// Also, the active layer in the Graph should have a graphic object (such as rectangle) with
// the name "Rect".
// Create and attach a graph layer from current Graph:
GraphLayer gl = Project.ActiveLayer();
// Get the graphic object:
grobj = gl.GraphObjects("Rect");
// Display the width:
out_double("DX = ", grobj.DX);
Width of the object in axes units Read and Set access