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

rendering of single entities
rendering of single entities
i am busy with the creation and/or updating of single entities in dwgdirect 1.08. after the creation or updating i need to redraw everything in order to see the changes that have been made. this can take an appreciable amount of time in large drawings.
is it possible to have only the created/updated entity redrawn though its worlddraw/viewportdraw functions ? i cannot find a way of getting the odgiworlddraw pointer for the view so i can draw just the entity i am holding.
any help would be greatly appreciated.
currently it's not possible but partial redraw instead of full regen is one of our priorities.
sergey slezkin
drawing single entity
just read the above post and thought i might add my pennies worth.
in older viewkit / toolkit, this was also not possible. my workaround is to have a few drawing databases open simultaneously.
1 = main drawing being editing.
2 = buffer drawing for rendering individual entities only.
3 = undo buffer etc.
steps:
1. copy relevant entity from drawing 1 to drawing 2
2. make the entity in drawing 2black with solid linestyle (continuos)
3. draw drawing 2
4. erase drawing 2
5. make changes to relevant entity in drawing 1
6. copy this entity to drawing 2
7. draw drawing 2
etc.
cad system i have developed uses just this technique and it works well. (not elegant but does save time on redraws etc.)
multiple entities to be redrawn are added into drawing 2 and drawn from there. eg. translating polygon in a drawing.
maybe not applicable to dwgdirect but might be useful and could also work.
i know that has stated at some stage that this would be possible in dwgdirect.
thanks
thanks for your reply keith.
your method seems eminently suitable for what i am trying to do at the moment.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)