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

yang686526 2009-05-04 06:14 PM

【转帖】converting attribute definitions to text objects
 
converting attribute definitions to text objects
converting attribute definitions to text objects
hi,
i want to simplify a drawing to make it compatible with old cad software. in the drawing, there are blocks with constant attributes. i want to convert these attributes to text objects.
so obviously i need to convert oddbattributedefinition objects to oddbtext objects. i know that oddbattributedefinition is a subclass of oddbtext, but i want to "remove" all additional attrribute information and just keep the text with all its properties like text position etc.
i have tried to first convert the oddbattributedefinition to a oddbmtext object (using oddbattribute::getmtextattribute() ) and then i have exploded the mtext, but the resulting oddbtext looks slightly different.
is there a simpler solution than creating a new oddbtext object and manually setting all its properties to the same as the oddbattributedefinition's properties?
you can use oddbentget() / oddbentmod()
sergey slezkin
thank you for your answer! i'll try to use oddbentmod().


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