查看单个帖子
旧 2009-05-07, 07:10 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】why Not Display The Diferrent Arrow Type For An Dimension In

why not display the diferrent arrow type for an dimension in
why not display the diferrent arrow type for an dimension indication?
why not display the diferrent arrow type for an dimension indication?
my code:
// strleadarrow1 and strleadarrow2 are cstring type
// strleadarrow1 and strleadarrow2 denote the arrow type
// such as "_oblique","_closed" .
if(strleadarrow1 == ""&&strleadarrow2 == "")
{
// 1) acarrowdefault uncompleted
}
else if(strcmp(strleadarrow1, strleadarrow2))
{
pdimstyle0->setdimsah(1);
pdimstyle0->setdimblk1(strleadarrow1);
pdimstyle0->setdimblk2(strleadarrow2);
}
else
{
pdimstyle0->setdimblk(strleadarrow1);
}
i have two question:
1)how to set acarrowdefault type for dimension style?
2)how to set two arrow type for an dimension indication?
because the following code don't play the role.
code: pdimstyle0->setdimsah(1);
pdimstyle0->setdimblk1(strleadarrow1);
pdimstyle0->setdimblk2(strleadarrow2);
the attached drawing is correct result that i want to display.
attached images (4.2 kb, 7 views)

this code works:
code:
// create a dimension style
oddbdimstyletablerecordptr pdimstyle = oddbdimstyletablerecord::createobject();
pdimstyle->setname("mydimstyle");
oddbdimstyletableptr pdstab = pdb->getdimstyletableid().safeopenobject(oddb::kforwrite);
oddbobjectid iddimstyle = pdstab->add(pdimstyle);
pdimstyle->setdimsah(true);
pdimstyle->setdimblk1("_oblique");
pdimstyle->setdimblk2("_dot");
....
pdimension->setdimensionstyle(iddimstyle);
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)