How to get the instance of AcApLayoutManager?

How to get the instance of AcApLayoutManager?

Anonymous
Not applicable
388 Views
1 Reply
Message 1 of 2

How to get the instance of AcApLayoutManager?

Anonymous
Not applicable
I know that

acdbHostApplicationServices()->layoutManager()...

will return the instance of AcApLayoutManager, but how do I get the instance
of AcApLayoutManager so that I can call GUI functions i.e.
AcApLayoutManager::pageSetup()?

Thanks
0 Likes
389 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Hi,

This is the code snippet showing how to use AcApLayoutManager and the use of
AcApLayoutManager::pagesetup().

AcApLayoutManager* pLM =
(AcApLayoutManager*)acdbHostApplicationServices()->layoutManager();
AcDbBlockTableRecord* pBTR;
acdbOpenAcDbObject((AcDbObject*&)pBTR, idObj,AcDb::kForRead);
acutPrintf("\n Pagesetups: %i n:",pLM->pageSetup(idObj,NULL,TRUE));
AcDbObjectId layoutId = pBTR->getLayoutId();
pBTR->close();

cheers,
Varadan

"cadman" wrote in message
news:89C142534020E4988582773EB7D223C2@in.WebX.maYIadrTaRb...
> I know that
>
> acdbHostApplicationServices()->layoutManager()...
>
> will return the instance of AcApLayoutManager, but how do I get the
instance
> of AcApLayoutManager so that I can call GUI functions i.e.
> AcApLayoutManager::pageSetup()?
>
> Thanks
>
>
0 Likes