How to create a custom PaperSpace?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I got the following code from internet.
bool createlayout(AcDbObjectId& layoutId,AcDbObjectId& btrId)
{
AcApLayoutManager *pLayerM =(AcApLayoutManager*)acdbHostApplicationServices()->layoutManager();
TCHAR* nextLayoutName = pLayerM->getNextNewLayoutName(NULL);
bool bRes = false;
if (Acad::eOk == pLayerM->createLayout(nextLayoutName, layoutId,btrId))
{
pLayerM->setDefaultPlotConfig(btrId);
pLayerM->setCurrentLayout(nextLayoutName);
pLayerM->updateLayoutTabs();
bRes = true;
}
acutDelString(nextLayoutName);
return bRes;
}
To my surprise, there are no methods like "setPapersize(double dWidth,double dHeight)" from ApLayoutManager or ApLayout.
but i want to create a custom size paperspace. any way to do it?
there is a method "getPlotPaperSize" from AcdbLayout, where is the "setPlotPaerSize"?