高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|