Proektsoftbg / Calcpad

Free and open source software for mathematical and engineering calculations.
https://calcpad.eu
MIT License
313 stars 38 forks source link

Bug - Select Unit #262

Closed hildebrandopsj closed 4 months ago

hildebrandopsj commented 4 months ago

Hi @Proektsoftbg

Maybe i found another bug, if i have some variable in my code that match some unit, for example:

image

When trying to assign kNm/m to M_pb,c,Sd = 0, the /m always bring the variable, even if we use the m unit in the selector

image

Maybe the soluton is to create the unit Moment per unit lenght (kNm/m)

Happy new year my friend!

Proektsoftbg commented 4 months ago

Hi! To make difference between a unit and a variable with equal names, add dot before the unit : .m. The dot will not be visible in the output. For the selector, it just inserts the displayed text. Maybe it is possible to make the selector to add the dot automatically, if you have also a variable. This is a good idea. I will think about it.

Happy New Year to all Calcpad friends. Great times are coming for Calcpad next year. Significant improvements will be added like vectors and matrices. Vectors are quite ahead already.

ralphingefranz123 commented 4 months ago

then we will get vectors etc. ?(~ date

Proektsoftbg commented 4 months ago

@ralphingefranz123 . It is not possible to tell an exact date, Even approximate. I have to do this along with my regular job.

Proektsoftbg commented 4 months ago

I made to insert the unit with a dot from the autocomplete list, if a variable with the same name has been already defined.

hildebrandopsj commented 4 months ago

Thank you!