几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】rendering Of Single Entities (http://www.dimcax.com/hust/showthread.php?t=18421)

yang686526 2009-05-07 02:57 PM

【转帖】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.


所有的时间均为北京时间。 现在的时间是 12:11 PM.