Get uv mapping

Hi all;

Does any one know how to retrieve the box mapping information from an object?

I have found this:

TextureMapping.TryGetMappingBox Method (Plane, Interval, Interval, Interval, Boolean)

But I don’t know how to call it so it keeps telling me it doesn’t exist in this context.

All the info I can find is about how to set the mapping, but not how to retrieve it.

Any pointers would be much appreciated.

Many thanks to all

Cracked it!

Rhino.DocObjects.RhinoObject obj = doc.Objects.Find(ID);

var txt = obj.GetTextureMapping(1);

var pln = new Plane();
var d1 = new Interval();
var d2 = new Interval();
var d3 = new Interval();


bool b = txt.TryGetMappingBox(out pln, out d1, out d2, out d3);


A = new Box(pln, d1, d2, d3);