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

yang686526 2009-05-07 05:29 PM

【转帖】wo Problems For Dwgdirect 2.04.2
 
two problems for dwgdirect 2.04.2
two problems for dwgdirect 2.04.2
1. oddbmtext::linebreak() should return "\p",but currently,it return "\p".
this may cause oddbmtext massed.
2. when call to oddbentity::setdatabasedefaults,entity will use default
property of database. so for oddbtext, it should use all information
include in oddbtextstyletablerecord that id return from
oddbdatabase::gettextstyle(). but currently, oddbtext doesn't
auto use this default setting.
quote:
originally posted by lab_zj
1. oddbmtext::linebreak() should return "\p",but currently,it return "\p".
this may cause oddbmtext massed.
here is arx reference:
"static const achar * const linebreak();
this static member function returns the string "\p". "
and
"static const achar * const paragraphbreak();
this static member function returns the string "\p". "
quote:
originally posted by lab_zj
2. when call to oddbentity::setdatabasedefaults,entity will use default
property of database. so for oddbtext, it should use all information
include in oddbtextstyletablerecord that id return from
oddbdatabase::gettextstyle(). but currently, oddbtext doesn't
auto use this default setting.
text size and text style are set for oddbtext from textsize() and textstyle() database variables. others property (sush as obliquing, width factor) has default value and it aren't set from default text style. object arx creates text entity by this way.
best regards,
sergey z.
thanks for reply.
i have done full test for oddbtext's creation,and most of you said is right,
that's my fault. i'm sorry.
but by default,oddbtext entity only use "standard" style, and not database's default textstyle. because my database's default style isn't "standard".
hello lab_zj,
i am sorry. where is bug in dwgdirect (setting text style and size). we will fix it in next release. thank you for report.
best regards,
sergey z.


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