Message 1 of 7
Layout Manager - switching Layouts
Not applicable
06-09-2005
03:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
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.