高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】given pdb, how is paper size found
given pdb, how is paper size found?
given pdb, how is paper size found?
i am guessing that
od?db?database::getpaperspaceid() is a good place to start, and
that i eventually want to get to an object that has
oddbplotsettings::getplotpapersize() available to it.
but how do i do that?
oddbobjectid pspace = pdb->getpaperspaceid();
oddbobjectptr ps = pspace.safeopenobject();
printf (ps->isa()->name() );
tells me that ps is a acdbblocktablerecord:
then i get lost in the maze of class hierarchies?
any pointers?
oddbobjectid idlayout = oddbblocktablerecordptr( ps )->getlayoutid();
oddblayoutptr playout = idlayout.safeopenobject( );
oddbplotsettings *pplotsettings = playout.get();
pplotsettings->getplotpapersize( w, h );
thanks a lot. i don't think i would ever have found that.
for eany future users, include "tables.h" to get all the definitions
you need here.
|