![]() |
【转帖】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. |