几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】vertical Dimension Text Display (http://www.dimcax.com/hust/showthread.php?t=19020)

yang686526 2009-05-07 06:29 PM

【转帖】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::oneditrundebugcommand() 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.


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