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

yang686526 2009-05-06 10:03 PM

【转帖】plot preview question
 
plot preview question
plot preview question
hi,
i wrote some simple code to draw a line in file. i can see it in file as well as i can plot it. however i can't see it in plot preview. the code is like:
oddbblocktablerecordptr pblock = modelspaceid.safeopenobject(oddb::kforwrite);
//add line and set the attributes
oddblineptr pline;
pline = oddbline::createobject();
entid = pblock->appendoddbentity(pline);
pline->setstartpoint(start);
pline->setendpoint(end);
pline->setcolor(forecolor);
pline->setlayer(player);
anyone knows the reason?
thanks,
al
i found the reason, that is because of the color set for the entity.


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