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

yang686526 2009-05-07 03:41 PM

【转帖】setlinetypescale Function
 
setlinetypescale function
setlinetypescale function
i'm not able to set a scale factor for a line object.
here is the code i have used.
odresult odres;
//add line
oddbblocktablerecordptr pblock1 = m_crblockid.openobject(oddb::kforwrite);
oddblineptr pline = oddbline::createobject();
pblock1->appendoddbentity(pline);
pline->setstartpoint(start);
pline->setendpoint(end);
pline->setlayer(m_szcrlayer, false);
pline->setlinetype(m_szcrlinetype);
odres = pline->setlinetypescale(m_fdlnscl,true); // m_fdlnscl is a double variable with the scale factor.
pline->setcolor(m_crcol);
if i read the dxf file i don't have a code 48 with tha scale factor.
any suggestion?
thanks.
luke
hi,
you probably save file in r12 or lower dxf format.
but gc 48 is supported starting from r13 version.


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