高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】saving Linear Dimension
saving linear dimension
saving linear dimension
i use version 1.07 beta
when i save linear aligned dimension dwgdirect don抰 create dimension blocks. then if you open file by autocad these block are generated by autocad and display ok. but it抯 strange: why dwgdirect generate blocks for angular dims (for example) and don抰 generate for aligned dims.
best regards,
ivan obraztsov
maybe dimension points are set incorrectly? see sample code at:
the block gets created using it.
sergey slezkin
btw, if you save result of odwriteex 1.07 to dxf, you will see dimension block for aligned dimension...
sincerely yours,
george udov
yes, it takes much time to reproduce this error on your samples. because creating dimension with same parameters in my case cause exception 揑nvalid input?(but dimension was already in database so just dimblock wasn抰 create) and in your samples create this dimension normally.
difference is in measurement unit. i use metric, you use english. to represent error please insert follow code to dbfiller::adddimensions function in odwriteex sample:
[code]
oddbaligneddimensionptr padmy = oddbaligneddimension::createobject();
padmy->setdimensionstyle(pdb->getdimstylestandardid());
padmy->setxline1point(odgepoint3d(0., 50., 0.));
padmy->setxline2point(odgepoint3d(50., 0., 0.));
padmy->setdimlinepoint(padmy->xline1point());
padmy->setdimensiontext(".");
padmy->usedefaulttextposition();
pblock->appendoddbentity(padmy);
</pre><hr></blockquote>
and change line where database is creating:
[code] oddbdatabaseptr pdb = svcs.createdatabase(true, oddb::kmetric); </pre><hr></blockquote>
best regards,
ivan obraztsov
thank you for feedback. this is a bug of dwgdirect, it was fixed today, fix will be available in next release.
sincerely yours,
george udov
|