I need to run through each view frame in a group and get the rotation for each frame. As far as I can tell there is no "rotation" property or transform matrix that can be accessed through .NET. I also can't find any such property that you can set in Civil 3D. If anyone can help me out it would be greatly appreciated.
Here is my simple code section for inspecting the view frames.
Code:
CivilDocument cdoc = CivilApplication.ActiveDocument;
// Get editor for command line output
Document doc = Application.DocumentManager.MdiActiveDocument;
Editor ed = doc.Editor;
// Document Database
Database acDB = doc.Database;
ObjectIdCollection FGGIDs = cdoc.GetViewFrameGroupIds();
ed.WriteMessage("Object Class: " + FGGIDs[0].ObjectClass.DxfName + " ::: ");
using (Transaction trans = acDB.TransactionManager.StartTransaction())
{
ViewFrameGroup vfg = trans.GetObject(FGGIDs[0], OpenMode.ForRead) as ViewFrameGroup;
ObjectIdCollection vFrameIDs = vfg.GetViewFrameIds();
ed.WriteMessage("\nFrame Count: " + vFrameIDs.Count);
foreach (ObjectId vfID in vFrameIDs)
{
ViewFrame vf = trans.GetObject(vfID, OpenMode.ForWrite) as ViewFrame;
ed.WriteMessage("\nName: " + vf.Name + " Display Name: " + vf.DisplayName);
}
}
Thank you