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.