|
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 |
|