几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » AutoCAD二次开发 » DirectDWG
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


回复
 
主题工具 搜索本主题 显示模式
旧 2009-05-06, 11:27 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】problem with oddbregionacisout90

problem with oddbregion::acisout()
problem with oddbregion::acisout()
attached is a mech desktop dwg file which causes oddbregion::acisout() to create an invalid sat file. i've also attached the sat file and you can see that there are spurious '@' characters, in the header and elsewhere, which are not part of the sat standard. this sat file is unreadable in any sat viewer/parser. i've also attached a snippet showing my call to acisout(), which is taken directly from the odreadex sample.
i have not yet updated to 1.11.01, but i don't see anything like this in the list of items addressed in that release. that's the next thing i'll try, but the oda website is crawling this morning.
in fact the 'upload' button on the 'manage attachments' page is erroring out on me right now, so it might take a while to get that attachment up there.
meanwhile, is anyone aware of problems with oddbregion::acisout()?
pete rimkus
cnc software, inc.
hi,
i am ddt acis engineer. please, send email with files directly to me (arumyantsev@softdev.spb.ru).
alexander,
thanks. i sent them to you this morning.
pete rimkus
'@' is a string tag (acis ver >= 700).
i don't understand what you mean by " '@' is a string tag". it is not part of the sat format. i cannot get my app which uses the acis toolkit to read this sat file, and the hoops acisviewer crashes with it!
the following is not considered valid sat data...
20800 38 2 0
@33 open design alliance acis builder @14 acis 208.00 nt @24 tue aug 10 08:56:17 2004
25.399999999999999 9.9999999999999995e-007 1e-010
asmheader $-1 -1 @12 208.0.2.7026 #
body $2 -1 $-1 $3 $-1 $-1 #
ref_vt-eye-attrib $-1 -1 $-1 $-1 $1 $4 $5 #
lump $6 -1 $-1 $-1 $7 $1 #
eye_refinement $-1 -1 @5 grid 1 @3 tri 1 @4 surf 0 @3 adj 0 @4 grad 0 @9 postcheck 0 @4 stol 0.076493134425800857 @4 ntol 30 @4 dsil 0 @8 flatness 0 @7 pixarea 0 @4 hmax 0 @6 gridar 0 @5 mgrid 3000 @5 ugrid 0 @5 vgrid 0 @10 end_fields #
vertex_template $-1 -1 3 0 1 8 #
i also wish i could 'upload' an attachment - i still get an error when trying. anyone know what's up with that?
pete
20800 sat version is internal autocad sat version. it means that acis based viewers can fail on 20800 sat.
you should simply pass valid acis version to acisout().
the syntax of the acisout is as follows:
code:
odresult acisout(odstreambuf* pout, aftypever typever = kaftypeverany);
if you do omit the second parameter, i.e. - do not care what version you want to obtain, then stored sat is returned as is.
currently, in r18, sat is stored in autodesk specific manner, that is marked as version 20800. this sat is only valid to put it back into 3dsolid. no sat toolkit will understand it. if you want to get sat ver 7, pass kafver700 to acisout().
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭



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


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多