Remove a CC part from a folder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a code that adds a CC part lets say (a 10 inch pipe) to a folder with a specific name and there is no problem in that.
The problem comes when I try to add another part a (12 inch pipe) with the same name to replace the old one. and I know you cant have two files with the same name So what my code does is it deletes the old file and supposedly creates the new one but here comes the error.
I tried to delete the file manually but the the New part will not be created unless it had a slight change in its name.
the code runs without any problems when i delete the file and restart the Laptop.
I tried to delete the Folder itself and create a new one but the code crashes when it tries to delete the folder because there is a lOCKFILE there being used by another application.
Any ideas on how to overcome this problem
I am using Inventor 2021 and No vault