查看单个帖子
旧 2009-05-07, 03:41 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)