rmcanany / SolidEdgeHousekeeper

Utility for finding annoying little errors in your Solid Edge project
MIT License
23 stars 10 forks source link

Initial implementation of NCalc expression #97

Closed farfilli closed 3 months ago

farfilli commented 4 months ago

I created this pull request for @rmcanany to test the new property formula editor

farfilli commented 3 months ago

@rmcanany I have completed the expression editor and would love you to test it.

Expression is activated in the same way you activate the PT and RX; I have added a column EX When activated the EX the text contained in the replace string is used as code to calculate the replacing string. To easily create the code I have implemented the Expression editor, accessible through a button in the bottom right corner ( an idea of where to place it is needed, I was thinking about replacing the EX label with a button (perhaps in the future an EX editor too)).

image

The upper area is the code itself, you can use the Enter button to read it better, the CRLF is removed by the code on exit The lower area is the result of the code The test button is used to execute the code, parameters are prompted for easy debug Saved Expression contains 2 examples, can be expanded later Save and delete are not working at the moment, will be used to save user expressions

Let me know if you need further explanation of how it works.

TBD: Expression save, delete button

rmcanany commented 3 months ago

Very cool! I'll try this and the new structured storage version of property find/replace this weekend.