查看单个帖子
旧 2009-05-06, 07:52 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】oddbmlineptr multiline

oddbmlineptr multiline
oddbmlineptr multiline
hello,
i want to create a block with a multiline.
here is my code :
code:
pmultiline = oddbmline::createobject();
oddbdictionaryptr pmldic = m_pexportdb->getmlstyledictionaryid().safeopenobject();
pmultiline->setstyle(pmldic->getat("odastandard"));
pmultiline->setjustification(0);
pmultiline->setscale(g_wallthickness);
for (cptwall = 0 ; cptwall<m_nbwalls ; cptwall++)
{
// begin point
wx = m_pwallstab[cptwall].m_beginpoint.x;
wy = m_pwallstab[cptwall].m_beginpoint.y ;
pmultiline->appendseg(odgepoint3d(wx,wy,0.0));
}
pmultiline->setclosedmline(true);

// adds the line to the block
proomblock->appendoddbentity(pmultiline);
i get an error as soon as i try to access the multiline (to add a vertex or to set the style ...).
do you know where this error could come from;
do i have forgotten something ?
thank you for your help
multi line style
it seems that my problem comes from the definition of my multiline style.
could somebody give me some help for creating a style for a multiline ? i want continious multiline with a given thickness.
does a default style exists ?
thank you !
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)