几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】why Not Display The Diferrent Arrow Type For An Dimension In (http://www.dimcax.com/hust/showthread.php?t=19135)

yang686526 2009-05-07 07:10 PM

【转帖】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


所有的时间均为北京时间。 现在的时间是 06:14 AM.