几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】what Renders Acdbline (http://www.dimcax.com/hust/showthread.php?t=19084)

yang686526 2009-05-07 06:52 PM

【转帖】what Renders Acdbline
 
what renders acdbline?
what renders acdbline?
i am trying out the odvectorizeex example with one of
my test files and noticed that acdbline entities don't
seem to be handled by any of the function calls in
exgssimpledevice (i.e. polylineproc, xlineproc, etc).
the draw() method in exsimpleview would see the
line entity and print out the name and object id,
but odgsbasevectorizeview::draw(pdrawable)
does not seem to hand it off to any methods in
exgssimpledevice.
can anybody please tell me how i can get exgssimpledevice
to support acdblines?
thank you.
steven
hi,
i can't reproduce it in latest code.
code:
load completed------------------------
begin drawing: < acgidrawable non-db >
begin drawing: < acgidrawable non-db >
begin drawing: < acdbblocktablerecord 1f >
begin drawing: < acdbline 89 >
draw_color_index: 7
draw_linewidth: 0
polyline, 2 points:
(18.687982, 70.499477, 0.000000)
(23.759647, 44.268964, 0.000000)
begin drawing: < acdbline 8a >
draw_color_index: 7
draw_linewidth: 0
polyline, 2 points:
(23.759647, 44.268964, 0.000000)
(34.564498, 72.593509, 0.000000)
begin drawing: < acdbline 8b >
draw_color_index: 7
draw_linewidth: 0
polyline, 2 points:
(34.564498, 72.593509, 0.000000)
(39.305402, 45.811935, 0.000000)
finished ok.
are you sure lines in your dwg are visible ?
doh!
noob mistake on my part ... tested again with
another file and it worked as advertised.
mea culpa


所有的时间均为北京时间。 现在的时间是 10:04 AM.