查看单个帖子
旧 2009-05-06, 04:42 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】layout tabs order

layout tabs order
layout tabs order
hello,
coud you give me an advice.
i import a dwg file and read entities form paper space.
i should pass through all layout tabs and do not change the tab's order.
how can i get a layout tabs' order?
best regards,
andrey.
sorry,
i found function gettaborder
here is code:
oddbobjectidarray arr; // layouts - упорядоченный массив "вкладок"
oddblayoutmanagerptr playoutmanager = appserv.layoutmanager();
if ( !playoutmanager.isnull() )
{
arr.resize( playoutmanager->countlayouts(&db) );
oddbobjectid layoutdictionaryid = db.getlayoutdictionaryid( false );
if ( layoutdictionaryid.isvalid() )
{
oddbdictionaryptr playoutdict = layoutdictionaryid.safeopenobject();
oddbdictionaryiteratorptr piter = playoutdict->newiterator();
while (!piter->done())
{
oddbobjectid layoutid = piter->objectid();
if ( layoutid.isvalid() )
{
oddblayoutptr playout = layoutid.safeopenobject();
int taborder = playout->gettaborder();
arr.setat( taborder, layoutid );
}
piter->next();
}
}
}
if ( arr.size() )
{
....
}
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)