The easiest way to find out things (which is obviously
NOT the er 'documentation'), is to use Reflector and its
search function.
LayoutManager manager = LayoutManager.Current;
Also keep in mnd that many classes follow this pattern
(where there's no public c'tor and instead, you must call
a static member to get an instance).
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
wrote in message news:4871047@discussion.autodesk.com...
How do you get access to the layout manager?
I found this posted under ObjectARX
AcApLayoutManager *pLayM = NULL;
pLayM = (AcApLayoutManager *)
acdbHostApplicationServices()->layoutManager();
AcDbLayout *pLayout =
pLayM->findLayoutNamed(pLayM->findActiveLayout(TRUE),TRUE);
This lead me to believe that I can create a reference to the object using this line
Dim oLayoutManager As LayoutManager = HostApplicationServices.WorkingDatabase.?
I would like to switch layouts using .Net.