![]() |
【转帖】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. |