Remove a CC part from a folder

Remove a CC part from a folder

or.mokhtar
Contributor Contributor
154 Views
1 Reply
Message 1 of 2

Remove a CC part from a folder

or.mokhtar
Contributor
Contributor

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 

0 Likes
155 Views
1 Reply
Reply (1)
Message 2 of 2

Michael.Navara
Advisor
Advisor

NEVER try to delete file which is opened by Inventor.

You have two possibilities

1) Modify existing document and save them

2) Create new document and replace the occurrence which reference the old one.

0 Likes