[Da...] Posted August 4, 2022 Share Posted August 4, 2022 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 More sharing options...
[No...] Posted August 4, 2022 Share Posted August 4, 2022 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 More sharing options...
[Gu...] Posted August 10, 2022 Share Posted August 10, 2022 Easier than awk: CALYPSO / Plan / Advanced / Search ==> Search in a CALYPSO plan: Link to comment Share on other sites More sharing options...
[No...] Posted August 11, 2022 Share Posted August 11, 2022 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 More sharing options...
[Is...] Posted August 11, 2022 Share Posted August 11, 2022 put all the programs in the same folder and use grepWin (its GPL free and portable):2022-08-11_09h32_57.png Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in