![]() |
【转帖】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. |