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

crash in setuplayoutviews
crash in setuplayoutviews
hi,
we've come across a couple of drawings that are crashing in setuplayoutviews when attempting to vectorize a layout. i have been able to work around this crash by first calling database->setcurrentlayout and then calling setupactivelayoutviews. i would like to know if there's any side effect of doing this. (since we don't write the dwg file, modifying it isn't an issue.)
in both cases i have seen, the problem occurs in 2000 format dwg files and goes away if you save the file in 2004 format.
thanks for any information,
chad
pdb->setactivelayout() initializes the layout (if it was not initialized yet and creates overall viewport for ps layout)
it would be interesting to see an example of drawing causing the problem.
sergey slezkin
quote:
originally posted by sergey slezkin
pdb->setactivelayout() initializes the layout (if it was not initialized yet and creates overall viewport for ps layout)
it would be interesting to see an example of drawing causing the problem.
thanks for the reply, sergey. related to this, do you know if there is a way to detect uninitialized layouts?
thanks for any information. i'll see if i can find a drawing that i can share with you.
chad
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)