Try this.
[CommandMethod("CvportScale")]
public void CurrentVportScale()
{
Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;
ObjectId vpid = ed.CurrentViewportObjectId;
using (Transaction tr =
ed.Document.TransactionManager.StartTransaction())
{
Viewport vport = (Viewport)tr.GetObject(vpid, OpenMode.ForRead);
ed.WriteMessage(vport.CustomScale.ToString());
}
}
"Nate Hunter" wrote in message
news:5347486@discussion.autodesk.com...
I need to pull the scale of a viewport that the user is already in. How can
I do this.? Th
Thanks in advance