I have an issue with the axlGetFindFilter() command. I have a small SKILL script for Find & replace text in the DB. In the code below I was trying to get the initial Find Filter setings and backup them, before I change it to TEXT, how ever it only returned nil, so I'm not able to backup them.
Second issue is that axlSetFindFilter(...) will not work when I execute my script when another command is actually running in the PCB editor (e.g. move). Is there any command whit which I can get the state of the PCB Editor, so I will be able to notice the user that another command is runnig and he need to close it first, before execute the script?
moFindFilterEnabled = axlGetFindFilter(nil) > this returns nilmoFindFilterButtons = axlGetFindFilter(t) > this returns nil println( moFindFilterEnabled) - just for check println( moFindFilterEnabled) - just for check axlSetFindFilter( ?enabled list( "noall" "text" "invisible") ?onButtons list( "noall" "text")) axlAddSelectAll() moAllTexts = axlGetSelSet()
REST OF THE CODE
) > sets only the TEXT as enabled and on
Hi, I've done a picture to better describe my problem.
I start with the FF set to "All On" [1.], then when I run the code and hit "Execute" the FF changed to text only [2.] note that all another options are gray. After closing the form (code) the FF stays the same [3.], note the options are still grayed. In this point I would like to enhance the code that way it ends up like it is on [6.]. That means after closing the form window it should return to the last used FF settings (set before running the code).
After closing the form window I must run another command e.g. "move" and it sets it's own FF [4.]. When the command is closed, the FF enable the grayed options, but stay set for text [5.].
I know how to change the code to goes from [1.] to [2.] and then directly to [5.], but I don't know how to make it run like [1.] to [2.] then to [6.]. Of course the setting on [1.] are just example, the settings may vary but in the end [1.] and [6.] must match.
I hope this will bring a little light in to my problem.