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

yang686526 2009-05-07 07:13 PM

【转帖】widthfactor Problems
 
widthfactor problems
widthfactor problems
hello,
i have dxf/dwg files which are not created by autocad and they have text entities with incomplete data. in this case, ratio between text width and text height is not correct. when autocad loads such files, it recalculates and corrects the ratio. apparently, when text is fitted between two points, ratio is not relevant to autocad, and it is recalculated.
in old toolkit&viewkit library, there was a function adcomputenewtextparms,
which corrected text's base point and ratio!
but with new dwgdirect library i can't find the sam functionality any more.
there is a method adjustalignment(), but this just corrects base point.
is there any way, that library corrects the widthfactor for text?
best regards, tomaz
hi,
i was wrong in previous post. method adjustalignment() corrects also text width, if it is needed.
best regards, tomaz


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