高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】paper model space
paper / model space
paper / model space
in the attached part, paper space contains 5 layers: 0, bdr, vports, dim, text. model space contains 10: 0, obj, pv-5bc3, ph-5bc3 ... & screen.
however, using acad 2004, the layout1 view also displays the layer screen. what piece of data instructs layout1 to include layer screen? where and how do you retrieve the entity data?
attached files
any ideas?
i don't understand the question.
as i know model space and paper space do not contain layers. they can contain only entities. each entity has layer property.
if an entity having screen layer is visible in layout1 then
1. this entity is realy in layout1 paper space.
2. or the entity is in model space and is visible via viewport entity inserted in layout1.
sergey slezkin
quote:
originally posted by sergey slezkin
i don't understand the question.
as i know model space and paper space do not contain layers. they can contain only entities. each entity has layer property.
if an entity having screen layer is visible in layout1 then
1. this entity is realy in layout1 paper space.
2. or the entity is in model space and is visible via viewport entity inserted in layout1.
sergey,
thanks for your reply. as you can see, my knowledge of acad/dd is limited.
the screen layer entities exist in model space, therefore, i'll need to pursue the second method indicated above. i've looked for example code in the dwg direct folders but could not find any, only references to viewport classes in the include files exist.
is it possible to receive a code snippet demonstrating the function calls necessary to display model space entities in a specified layer in a paper space layout view. i've based my viewer codes on the exprotocolextensions example.
one more question... for a viewer to display all entities in a model space view, you'll have to walk through the model space database and also the paper space database to check for visible viewport entities in model view? similarly, to display all entities in a paper space view, both paper and model space databases must be processed?
thanks,
the screen layer entities exist in model space, therefore, i'll need to pursue the second method indicated above. i've looked for example code in the dwg direct folders but could not find any, only references to viewport classes in the include files exist.
is it possible to receive a code snippet demonstrating the function calls necessary to display model space entities in a specified layer in a paper space layout view. i've based my viewer codes on the exprotocolextensions example.
help please.
if you want to implement a viewer you need not worry how to display model entities in paper space viewport. odamfcapp contains sample code for a viewer.
one more sample which can be used for creating a viewer is dwf export.
sergey slezkin
|