几何尺寸与公差论坛

 找回密码
 注册
查看: 652|回复: 0

【转帖】saveas step file

[复制链接]
发表于 2009-4-13 14:06:19 | 显示全部楼层 |阅读模式
saveas step file
i want to write a program to save a model as a .step file
question is: how to pick the option of 203 vs 214?
thx, chris
solidworks 2007 (office pro.) sp5.0
testing solidworks 2009 (pro) sp0.0
dell precision t3400
2 cpu (8500) 3.16 ghz, 3.25 gb of ram
window xp pro sp2
nvidia fx 570 6.14.11.6262
hi chris
sldworks.setuserpreferencevalue(swstepap, 203 or 214)
hope this help
################################
stef
designer / cad administrator
sw 2007 sp5 winxp pro sp2
i'm just wondering if there is a way to check the step file being saved in 214 or 203 format?
if so, how?
thx, chris
solidworks 2007 (office pro.) sp5.0
testing solidworks 2009 (pro) sp0.0
dell precision t3400
2 cpu (8500) 3.16 ghz, 3.25 gb of ram
window xp pro sp2
nvidia fx 570 6.14.11.6262
originally posted by: chris ch
i'm just wondering if there is a way to check the step file being saved in 214 or 203 format?
bingo, sometimes you just have to try the first that comes into mind. the step-format is an open format - with a readable file format (see it with notepad for example).
the header of the step-file is:
----------------------
iso-10303-21;
header;
file_description (( 'step ap214' ),
'1' );
file_name ('part1.step',
'2008-07-08t07:49:51',
...
-----------------------
so go look in the file for the line "file_description (( 'step ap214' )," and decompose it to find the version.
jorn bjarning
cswp
cad & plm consultant
sw2008 sp5 / sw2009 sp2
thx
chris
solidworks 2007 (office pro.) sp5.0
testing solidworks 2009 (pro) sp0.0
dell precision t3400
2 cpu (8500) 3.16 ghz, 3.25 gb of ram
window xp pro sp2
nvidia fx 570 6.14.11.6262
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 04:16 , Processed in 0.033761 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表