高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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.
|