Author Topic: Allegro: Macro for configuring the Find Filter?  (Read 1608 times)

0 Members and 1 Guest are viewing this topic.

Offline Pack34Topic starter

  • Frequent Contributor
  • **
  • Posts: 753
Allegro: Macro for configuring the Find Filter?
« on: September 30, 2018, 05:56:53 pm »
Is there a macro or keyboard command to configure the "Design Object Find Filter"? It's tedious to switch between "All On" and just "Text" when placing a component and then positioning the silk REFDES properly. If there's a macro I can bind it to a button on my mouse and work a lot more efficiently.
 

Offline Alex Eisenhut

  • Super Contributor
  • ***
  • Posts: 3336
  • Country: ca
  • Place text here.
Re: Allegro: Macro for configuring the Find Filter?
« Reply #1 on: September 30, 2018, 11:25:27 pm »
Well, you should place the refdeses at the end of the layout IMO. You certainly can configure a macro. Here's how I do it:
go to file -> script

this lets you record stuff to a file, when you're done go back to file -> script and press "stop".

You can condense the commands down to
Code: [Select]
setwindow form.find
FORM find all_off 
FORM find text YES
setwindow pcb
done

Stick this in a text file, call it text.scr for example. Make sure your Allegro script path is set to point to the directory.
Then define an alias with a ctrl key combination, I use ctrl q.
Just type alias, press ctrl Q, then replay text.scr in the command window:

Code: [Select]
alias ~Q replay text.scrand press enter.

(the ~Q is to show you it's a ctrl key combo.)

Now when you press ctrl Q in the command window, it'll replay the script if it can find it.

Of course, Allegro has many modes, and you'll only see "text" selected when you are in the move command.

You can also use the super filter mode. It's a different way to work. Make sure that Allegro is showing "idle" in the left of the bottom status bar.

Then right click somewhere empty in the pcb, you should see a little menu pop up, go to super filter and select text. You should see the find filter greyed out but showing text selected.

Now check this out: you can simply click and drag (keep button pressed) text. You should see text be highlighted when just hovering over it. Go back to the super filter pop up and select OFF to go back to normal mode.
Hoarder of 8-bit Commodore relics and 1960s Tektronix 500-series stuff. Unconventional interior decorator.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf