cancel
Showing results for 
Search instead for 
Did you mean: 
Security Alert Log4j Security Vulnerability. Click here to know more.
cancel
Showing results for 
Search instead for 
Did you mean: 

Rename part file after update in VB.net

bsomasundaram
1-Newbie

Rename part file after update in VB.net

Hi Guys,

I want to rename the part file ( current active ) after update using VB.net.

I have searched in vbug.pdf and i try the bellow code but it show error.

Dim mdl as IpfcModel

mdl.rename("TSekl.prt","Orgskel.prt")

Please help me how to do and where i done mistake in my part.

Regards,

Balaji.S


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
2 REPLIES 2

Hi,

Did you load the source file in session of creo before you rename.

Alternative Save a copy or save as API can be work around.

regards,

kishore

Hi Kishore,

I tried with that option but another issue should solve - instance name also should rename in family table.

Now, i am looking that issue also(family instance name) while renaming part file.

So, Simultaneously the script should work for both(part file and family instance rename).

If you know, Please tell me.

Thnks

Balaji.S

Announcements