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
I think axlGetFindFilter only works when fields are set by axlSetFindFlter, and active command is idle.
regarding second issue, to check when a certain command is active by using axlOkToProceed.