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

vertical dimension text display
vertical dimension text display
hello,
i'm trying to create vertical dimension by creating an oddbrotateddimension object and using the "setrotation" method. a problem occurs when the dimension is rotated vertically - the dimension text is not displayed properly.
can anybody help me with this, i think that a specific setting must be done, but i cannot find the proper one(system variable or method).
thanks!
what does mean "not displayed properly"?
for example, following code
oddbdatabase* pdb = getdocument();
oddbblocktablerecordptr pms = pdb->getmodelspaceid().openobject(oddb::kforwrite);
oddbrotateddimensionptr protdim = oddbrotateddimension::createobject();
protdim->setdatabasedefaults(pdb);
protdim->setdimlinepoint(odgepoint3d(6.9, 9.0, 0.0));
protdim->setxline1point(odgepoint3d(12.3, 16.0, 0.0));
protdim->setxline2point(odgepoint3d(8.0, 9.0, 0.0));
protdim->setrotation(odapi2);
pms->appendoddbentity(protdim);
inserted to cdwgview:neditrundebugcommand() creates vertical dimension looking same with one generated by autocad with such input data. (input data is fitted for default english settings).
sincerely yours,
george udov
thank you for your help.
regards, hotsouce
creating a rotated dimension with a dimension style with, or dimension style override of, dimtih=0 (dimension text inside the dimension lines) and/or dimtoh=0 (dimension text outside the dimension lines), your text will be alligned with the dimension line.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)