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

yang686526 2009-05-06 04:49 PM

【转帖】line weigh
 
line weight
line weight
hi,
i'm using an old version of the dwgdirect library (2002) and the function setlineweight doesn't work correctly because when i reopen the generated .dwg file in autocad, the line weight of any entity is set to bylayer. moreover, the call setlwdisplay(true) seems to work, at least, the value has changed to true when i call getlwdisplay() after the call to setlwdisplay(true). but when i open the generated file in autocad, the value lwdisplay is set to off.
format test : dwg r12,r13
autocad 2002
microsoft visual c++ .net 2003
windows xp
thanks,
mst
lineweights were introduced in autocad 2000 (r15).
round-trip information on lineweights can be saved to r13-r14 (depending on saveroundtrip variable).
but only autocad 2000 and later or dwgdirect can interprete it.
sergey slezkin


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