Skip to main content
12-Amethyst
Dec 29, 2022 7:39 AM UTC
Question

How to delete existing OIR from loadFrom File

Need to delete the existing specific oir from the system using load from file instead doing it manually from UI.

Any Inputs to achieve this?

4 replies

HelesicPetr
22-Sapphire II
Jan 4, 2023 1:17 PM UTC

Hi @NP_9998831 

Unfortunately if the Windchill\loadFiles\csvmapfile.txt does not contains the OIR delete definition you can not use load from file to delete OIR rule because function does not exists. 

 

PetrH

Translate
16-Pearl
Jan 4, 2023 4:24 PM UTC

Maybe it's possible to load new xml into the existing OIR, an empty xml file which does nothing

Translate
14-Alexandrite
Jan 20, 2023 5:16 PM UTC

Hello

 

@HelesicPetr is right, PTC  doesn't provide tool to delete OIR. Personnally, i delete them manually because i don't have so much.

I had similar situation with Task Form Templates and too much manual delete to do. So, i created a Java program to delete them from a list in a text file. I think it is feasible for OIR,  Java class of OIR is wt.rule.TypeBasedRule.

 

Regards,

Pascal

 

 

 

Translate
12-Amethyst
Jan 30, 2023 1:14 PM UTC

Thanks for the reply,
Can you please share the program for task form templates..

Translate