几何尺寸与公差论坛------致力于产品几何量公差标准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-04, 06:47 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】creating a sat file out of dxf solid file

creating a sat file out of dxf solid file
creating a sat file out of dxf solid file
i am trying to create a sat file out of a simple dxf file containing one solid box.
i am using the "oddb3dsolid::acisout" function and then parse through the memory stream to write the ascii file myself.
the problem is that the sat file created is not a legal sat file.
the "end of file" is missing and the version in the header is incorrect.
can someone tell me how to do this correctly?
is there a more simple way or method to get the acis data to sat file?
thanks,
ilan m.
do you pass a version as second parameter to acisout()?
by default it saves the data as it's stored in dwg/dxf file.
sergey slezkin
version..
[[left]
quote=sergey slezkin]do you pass a version as second parameter to
acisout()?
by default it saves the data as it's stored in dwg/dxf file.[/quote]
yes, i pass the version (kaf_ascii_800) in to the function.
it does not matter - it always return 20800 version.
i suspect it is the version where autocad left acis kernel for their own development...
no matter which version type i use - i always get the 20800 as result. this is not a valid acis version.
i tried using "odacisfileptr" but it is an abstruct class not usable (which should do the jobaccording to the example code - that is not compilable...).
do you have any clue????[/left
]
does your application use modelergeometry ?
have you it declared ?
odrx_declare_static_module_entry_point(modelermodu le);
you could see mfcapp application as example of modelergeometry using.
acissavedialog functionality save information from body\region\solid to different version of sat.
quote:
originally posted by alexander rumyantsev
does your application use modelergeometry ?
have you it declared ?
odrx_declare_static_module_entry_point(modelermodu le);
you could see mfcapp application as example of modelergeometry using.
acissavedialog functionality save information from body\region\solid to different version of sat.
yes,
i have seen the most logical use i can find in the file "debugcommand.h".
there objects odacisdata and odacisfile are used to save (with version control) the entity (solid, body, region) to a sat file.
it seems very good in the file, but it is not compilable for two reasons:
1. acisexport.h is missing (from example package)
2. both classes above (data and file) are abstract classes that cannot be used directly.
is there a more trivial way or am i missing something?
look at cacissavedialog::cacissavedialog(oddbobjectid &id, ...) in acissavedialog.cpp.
it get object by id and fill odarray<odmodelergeometryptr> m_bodies.
next step is m_bodies.first()->out(.....);
note : dont forget getmodelergeometrycreatorservice() call. it connect modelergeometry.drx with database !!!!
note 2 : all for 1.11.
quote:
originally posted by alexander rumyantsev
look at cacissavedialog::cacissavedialog(oddbobjectid &id, ...) in acissavedialog.cpp.
it get object by id and fill odarray<odmodelergeometryptr> m_bodies.
next step is m_bodies.first()->out(.....);
note : dont forget getmodelergeometrycreatorservice() call. it connect modelergeometry.drx with database !!!!
note 2 : all for 1.11.
i have no such file (acissavedialog) or similar.
modelermodule is unrecognized and exists nowhere in my example files.
quote:
originally posted by ilan
i have no such file (acissavedialog) or similar.
modelermodule is unrecognized and exists nowhere in my example files.
i have downloaded the new update of opendesign libs for c++ and tried it again.
now it works! i can finally get the acis data out of an entity in the desired versino.
now, i am facing a new problem:
if i wish to get all entities into a single sat file - dump all solid data into sat file, how can i do it in the best manner?
currently, i can get one entity at a time, save it to sat and then create a sat file out of all the entities saved before - a very big overhead...
is there an easier way to dump all data into a single sat file?
this functionality is not implemented yet. we have functionality to break multibody sat to set of single body (modelercreator) only.
is it critical for you?
quote:
originally posted by alexander rumyantsev
this functionality is not implemented yet. we have functionality to break multibody sat to set of single body (modelercreator) only.
is it critical for you?
well, my goal is to extract all solid data from dxf/dwg files into sat file.
if you can direct me to the best and simplest way to do it, i would appreciate it.
otherwise - i do need this functionality.
i am not very familiar with your libs and data.
if there is another way to do it - please let me know.
there is no way to save data from set of entities to single sat in 1.11 ddt. one to one only.
we are going to implement this in 1.12.
last edited by sslezkin; 12th july 2004 at 10:48 pmfff">.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】crash in dxf reading file yang686526 DirectDWG 0 2009-05-04 06:27 PM
【转帖】access violation loading dxf file yang686526 DirectDWG 0 2009-05-04 03:30 PM
【转帖】problem importing dxf file in sw2008 sp 4.0 - but no problem yang686526 SolidWorks二次开发 0 2009-04-13 01:34 PM
【转帖】create dxf macro yang686526 SolidWorks二次开发 0 2009-04-13 10:00 AM
【转帖】auto create 11 flat pattern and save as dxf yang686526 SolidWorks二次开发 0 2009-04-13 09:08 AM


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


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