• Vladimir Ur's avatar
    Made support for multiple equ. matches in CVPCB: · 67517778
    Vladimir Ur authored
    - first, matches are now filtered with component filters (as set in eeschema lib editor);
    - second, if two or more matches exist, first one will be accepted in accordance to
      alias file order set in project prefs, and then to order of lines in file.
    
    For example you may have such configuration
    
    .equ:
    '100' 'CAP100'
    '100' 'RES300' 
    
    C component have filter 'CAP*'
    R component have filter 'RES*'
    
    So R with value 100 (IEEE/ESKD short for 100 Ohm) will get 'RES300' footprint,
    and C with value 100 (IEEE/ESKD short for 100 pF) will get 'CAP100'.
    
    Also equ read routine is rewritten so it is now gracefully accept UTF-8 and spaces.
    67517778
autosel.cpp 4.71 KB