Jump to content

ignore pcm istructions


---
 Share

Recommended Posts

hello,

we have a problem with pcm command "clearCAD" only on Autorun (since Calypso 7.2.12, worked before). the Bug prevents the inspections from running.
Problem is we have this command in hundreds of programs so removing it is not an option.
My question is, because we dont need the command on Autorun, is there a command to say something like "ignore clearCAD" or add "// before command clearCAD" in the inspection_start_pcm file so that on the machines where we run Autorun clearCAD gets removed or ignored.

We already changed back to Calypso 7.2.08 where the read-pcm-error is not present. But i want to know maybe for future problems if there is a workaround.

thanks in advance
Daniel
Link to comment
Share on other sites

It depends on whether the clearCAD command is used in any kind of conditional context or is executed unconditionally.
If it has a condition, maybe you can add something that changes the result of the condition, so it's not executed. If it's unconditional I see no chance to ignore it other than to edit all the programs.

The above is also the way to work around such problems in the future: Add conditions to commands you think are unneeded in certain situations. Make them depend on a variable that you can control with an external PCM file.Then you can disable them later by just changing the value of the variable. The problem is to know which commands are worth the extra effort. Who can foresee a bug like this?

As a last resort you could look for a tool program that allows mass edits of text files by searching for a string and replacing it with another. I don't know of any currently (well, awk may be able to do that, but that's for commandline gurus), but I'm sure something like this is out there. With such a tool you could search the inspection (or inspset) files for the string "clearCAD" and replace it with "//clearCAD".
Link to comment
Share on other sites

Please sign in to view this quote.

Yes, but this does only work inside the currently opened plan. As Daniel mentioned, he has hundreds of programs that would have to be edited.
AWK is only the first thing that came to my mind because I've used it in the past. But to do mass edits with it you'd probably also need a list of all the files concerned and a batch file that cycles through the list.
I'm sure there are much better tools out there. A quick search brought up Notepad++ for example.
Link to comment
Share on other sites

 Share

×
×
  • Create New...