Check If a Tag Is Used Before Deleting or Renaming
| Author |
Message |
|
aidamcg
Colonel
Joined: Wed Jul 29, 2009 10:55 pm Posts: 127 Location: Ireland
|
 Check If a Tag Is Used Before Deleting or Renaming
Hi
Not sure if this is possible but it would be useful if a check would be done to see if a tag is used in the project before Deleting or Renaming
Aidan
|
| Wed May 16, 2012 11:34 pm |
|
 |
|
Greg.Buehler
General
Joined: Tue May 31, 2011 6:27 am Posts: 311 Location: Minnesota
|
 Re: Check If a Tag Is Used Before Deleting or Renaming
Alternatively could we generate a list or highlight orphaned tags that aren't being used?
|
| Thu May 17, 2012 6:17 am |
|
 |
|
aidamcg
Colonel
Joined: Wed Jul 29, 2009 10:55 pm Posts: 127 Location: Ireland
|
 Re: Check If a Tag Is Used Before Deleting or Renaming
That is another good request. I suppose what I am looking for is similar to what a Control Logix can do. It will not allow a Tag to be deleted that is in use and also it will generate a list of all unused tags
Aidan
|
| Fri May 18, 2012 12:39 am |
|
 |
|
jay
Private
Joined: Fri Aug 13, 2010 1:29 pm Posts: 34
|
 Re: Check If a Tag Is Used Before Deleting or Renaming
I think it would be impossible to make an accurate list of which tags are used or not used since tagnames can be constructed on the fly within scripts and through parameter passing to template windows.
|
| Fri May 18, 2012 11:00 am |
|
 |
|
Greg.Buehler
General
Joined: Tue May 31, 2011 6:27 am Posts: 311 Location: Minnesota
|
 Re: Check If a Tag Is Used Before Deleting or Renaming
jay wrote: I think it would be impossible to make an accurate list of which tags are used or not used since tagnames can be constructed on the fly within scripts and through parameter passing to template windows. I think you might be confusing the difference between a variable and a tag...
|
| Mon May 21, 2012 4:49 am |
|
 |
|
JordanCClark
General
Joined: Tue Mar 24, 2009 9:14 am Posts: 661 Location: Hudson, MI
|
 Re: Check If a Tag Is Used Before Deleting or Renaming
gbuehler wrote: I think you might be confusing the difference between a variable and a tag... Not necessarily. An example is here where tags are created via scripting. The problem that I see is that a tag can be used anywhere, across projects and even across servers, making it difficult to know exactly where a tag is being used.
_________________ Jordan
Duct tape is like The Force. It has a light side, a dark side, and it holds the universe together.
|
| Mon May 21, 2012 5:02 am |
|
 |
|
Greg.Buehler
General
Joined: Tue May 31, 2011 6:27 am Posts: 311 Location: Minnesota
|
 Re: Check If a Tag Is Used Before Deleting or Renaming
JordanCClark wrote: gbuehler wrote: I think you might be confusing the difference between a variable and a tag... Not necessarily. An example is here where tags are created via scripting. The problem that I see is that a tag can be used anywhere, across projects and even across servers, making it difficult to know exactly where a tag is being used. I retract my previous statement 
|
| Mon May 21, 2012 5:42 am |
|
 |
|
JordanCClark
General
Joined: Tue Mar 24, 2009 9:14 am Posts: 661 Location: Hudson, MI
|
 Re: Check If a Tag Is Used Before Deleting or Renaming
Don't sweat it. I'll admit that it was an odd duck of an application. But it does show that if it can be done externally (not necessarily through Ignition) to a database, it can also happen to a tag. Learned that one the hard way, once. I had one script to giveth a tag and one script to taketh away. 
_________________ Jordan
Duct tape is like The Force. It has a light side, a dark side, and it holds the universe together.
|
| Mon May 21, 2012 8:17 am |
|
 |
|