几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】how to set blocks scaling, explodability and description (http://www.dimcax.com/hust/showthread.php?t=16771)

yang686526 2009-05-06 03:14 PM

【转帖】how to set blocks scaling, explodability and description
 
how to set block's scaling, explodability and description
how to set block's scaling, explodability and description
hello,
i am creating a block entity and want to set its description, scale and explodability.
for that i am creating a blocktablerecord object.
oddbblocktablerecordptr poddbblock = oddbblocktablerecord::createobject();
after that i am calling setcomments function and setting desc as description.
poddbblock->setcomments(desc);
but it is not setting block description which is stored at dxf 4.
similarly i am calling setexplodable and setblockscaling for explodability and scaling.
poddbblock->setexplodable(false);
poddbblock->setblockscaling(oddbblocktablerecord::kuniform) ;
but this is also not saving. even causing error in entity saving and not saving block in drawing.
please tell me the way by witch i can set above 3 values for the block entity.
regards...
nitin
which dd version do you use?
can you reproduce the problem in odwriteex sample?
which error do you get on saving? maybe ewasopenforwrite?
sergey slezkin


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