高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】a problem about model and layou
a problem about model and layout
a problem about model and layout
hi, i am a beginner. i am developing a program that uses dwgdirect1.12.04 to dump the dwg file. there is a dwg file which have three layout: model, layout1 and layout2, and have many entities reside in model. some of these entities are displayed in layout1 and layout2. when my program open such a file, it prompts user to make a choice among model, layout1 and layout2, and then dump and display the choied layout.
the problem is that i don't konw how to acquire the information(such as position, scale and so on) of these entities that reside in model, but are displayed in layout1 or layout2.
model space entities which you see in paper layouts (layout1 and layout2) are dispayed via viewport (oddbviewport) entities in paper space.
oddbviewport has methods to access information like view target, view direction, width, height etc.
sergey slezkin
thanks, i'll try it!
|