Expression Autocomplete Improvements

A long­stand­ing bug in FreeCAD was recent­ly tack­led by new con­trib­u­tor Adri­an Popes­cu (@acpopescu). In PR 8228 and a series of fol­low-up com­mits, he has addressed some of the major short­com­ings in the expres­sion auto-com­plete function. 

Auto­Com­pleter demon­stra­tion using data from a spreadsheet.

The improved auto­com­pleter works any­where you enter expres­sion data in FreeCAD, and can pull data from all of the sources you’d expect. If search­es inside vari­able names, so you don’t have to remem­ber whether you called your entry “widget_height” or “height_of_widget” — start typ­ing “height” and it will show up, whichev­er option you chose.

There are still some issues with the new com­pleter (for exam­ple, the “Con­straints” object in Assembly4 blocks auto­com­plete of local con­straints!), but those are being worked on as I type this, and even the first batch of improve­ments here makes a big dif­fer­ence in the day-to-day use of expres­sions. If you are using a beta of the cur­rent devel­op­ment ver­sion give it a try and let us know what you think.

One response to “Expression Autocomplete Improvements”

  1. I par­tic­u­lar­ly appre­ci­ate the work done by Adri­an. Thanks to him for this improvement

%d bloggers like this: