几何尺寸与公差论坛

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

【转帖】check if part name exists

[复制链接]
发表于 2009-4-13 09:43:04 | 显示全部楼层 |阅读模式
check if part name exists
hi everyone,
i want to save a part with a new name so i use the saveas function call.
is there a way to check in the directory where i want to save my new part, that the name that i intent to use does not already exist?
cheers,
--stav.
in this world i am nobody...
and nobody is perfect ;) !!!
---------
solidworks office 2008 sp4.0
dell precision pws390
nvidia quadro fx 3450/4000 sdi
what language are you using? .net does this automatically and so does vba if you use the standard system file dialogs. if not you need to use the .net file.exists() function to check manually, and in vba use the microsoft.scripting class
answer hi luke,
it was for vba.
i used the dir function of vba and i solved the issue.
thanks for the reply though
--stav.
in this world i am nobody...
and nobody is perfect ;) !!!
---------
solidworks office 2008 sp4.0
dell precision pws390
nvidia quadro fx 3450/4000 sdi
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-24 08:47 , Processed in 0.036657 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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