几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】layout tabs order (http://www.dimcax.com/hust/showthread.php?t=17021)

yang686526 2009-05-06 04:42 PM

【转帖】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() )
{
....
}


所有的时间均为北京时间。 现在的时间是 06:02 AM.