Skip to main content
1-Visitor
May 3, 2016
Question

Rename part file after update in VB.net

  • May 3, 2016
  • 1 reply
  • 1480 views

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.

1 reply

1-Visitor
May 29, 2016

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

1-Visitor
May 31, 2016

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