We're having a Section Editor display issue in our template.
Whenever the Viewport Configuration is set to anything other than "Single" this causes the Plan Viewport to cover the other VP's and the other VP's can't be activated.
Works fine in our 2012.dwt
Also works fine in the OOTB _AutoCAD Civil 3D (Imperial) NCS.dwt
In our 2014.dwt (which was migrated from our 2012.dwt) is where things get strange.
The problem appears when changing the VP Layout to any multiple configuration option.
In command Settings for ViewEditCorridorSecttion we have the Apply Viewport Configuration option turned off.
Has anyone seen this issue before?
2014.dwt with the issue
2014 Imperial OOTB.dwt
2012.dwt
Solved! Go to Solution.
Solved by Jay_B. Go to Solution.
Eidt: Using the "Three Above:" option as shown, the viewports can all be activated by using ctrl R, then it's cycling through 4 viewports.
I just don't know of a way to get rid of the 4th viewport covering the entire drawing area?
The solution to this issue was rebuilding the template.
Now the Model Space Viewports are functioning properly.
We have this exact problem, we get the 3 viewports from the tool but still have the one large viewport. what specifically did you focus on when you rebuilt the template??
Hi Jim,
Didn't really focus on anything in particular but rebuilt the affected templates from scratch.
There's a lot that goes into rebuilding an entire template.
I'd recommend starting with the OOTB C3D Imperial NCS.dwt as the starting point.
This happens to to me in a template created from the acad.dwt for 2016 where I use a two viewport split. I just click in the viewport and use the middle mouse to pan and it regenerates correctly.
@jrampello wrote:
Does this make the overall modelspace viewport disappear or do you just get the info "out of the way"?
It just cleans the screen as is supposed to look.
This is caused by a viewport that Civil 3D did not clean up. This usually occurs when a user undoes the Corridor Section Editor command instead of using the close button. The code below deletes all of the model space viewports and starts from scratch, including the bad viewport.
using (var tr = db.TransactionManager.StartTransaction())
{
var vpTable = db.ViewportTableId.GetObject(OpenMode.ForWrite) as ViewportTable;
foreach (var vpObjId in vpTable)
{
var vpTblRec = vpObjId.GetObject(OpenMode.ForRead) as ViewportTableRecord;
if (vpTblRec.Name.Equals("*Active", StringComparison.OrdinalIgnoreCase) ||
vpTblRec.Name.Equals("Civil 3D Section Editor Viewport Configuration Snapshot", StringComparison.OrdinalIgnoreCase))
{
vpTblRec.UpgradeOpen();
vpTblRec.Erase();
}
}
using (var vpRightTblRec = new ViewportTableRecord() { Name = "*Active", LowerLeftCorner = new Point2d(0, 0), UpperRightCorner = new Point2d(0.5, 1) })
{
vpTable.Add(vpRightTblRec);
tr.AddNewlyCreatedDBObject(vpRightTblRec, true);
}
using (var vpLeftTblRec = new ViewportTableRecord() { Name = "*Active", LowerLeftCorner = new Point2d(0.5, 0), UpperRightCorner = new Point2d(1, 1) })
{
vpTable.Add(vpLeftTblRec);
tr.AddNewlyCreatedDBObject(vpLeftTblRec, true);
}
vpTable.DowngradeOpen();
ed.UpdateTiledViewportsFromDatabase();
tr.Commit();
}