2022-04-07
05:40 PM
- last edited on
2022-10-04
10:13 AM
by
Oleksandra Vakariuk
Well after many years - finally - with expression properties and zones, a quick cost estimator for a schematic plan! YAY.
But my Total Cost column in the schedule is not formatted with thousands separators.
So without really thinking it through, I edited the Total Cost property by turning the number into a string, then parsed it with text functions to add a comma every third character.
Added that to my interactive schedule and… OH NO… the schedule won’t list a string property—not sure why but not surprised given how sensitive Expression Properties are to syntax. 🙂
And besides, a schedule can’t give me a sum for a series of strings (of course).
Can’t convert the property back to a number to get a sum ‘cause that would undo all the careful string concatenations!
So at the end of the day here's the feature request… all numbers, regardless, should report back with thousands separators hard-coded.
A small thing, yeah, could export to Excel and get it done. But we're so close at this point....
2022-04-08 06:14 AM
I am not sure about this, but is it the Working Units?
Calculation Units control lengths, heights, widths in the schedule, but as you are using expressions, these oddly are not classified as calculation units.
In Working Units there is an option for 'Numbers without units' which might include expression results.
But as I say I am not sure, but might be worth a try.
Of course the expression will have to be a number and not converted to a string.
Barry.
2022-04-08 07:36 AM
AFAIK - expressions return values in calculation units. Within a expression, you can use any units you like and it will make the conversion(s). I believe the number unit selection will not add comma separators unlike the length, etc. measurements.
The problem is that Archicad currently has no currency format available. The work around (and not a good one) is to use a Python script to do the calculation and write a formatted currency string to a user property assigned to the element(s). The expression is not used but a Python script requires a manual update. That may be unacceptable but still would be easier than using Excel
2022-04-08 07:56 AM
And I wasn't really thinking.
This is for decimal precision, not 1000's delimiter.
Barry.
2022-04-08 03:01 PM
Gerry - Python perhaps easier than Excel.... unless you don't know the first thing about Python 😂
Barry - yes - Working Units will control decimal precision of those "unitless" numbers. So the software hook seems to be there. But does anyone *ever* need SF calculated to four decimal places? Silly. I'd rather have the "precision" in reports to distinguish currency from area, for example. With different decimal precision for different units...
But we need less of a sledgehammer and more of a scalpel. Better to have format control either within the expression itself, or at the level of a column in the schedule. Blanket settings for "all numbers, everywhere" ain't that helpful.
Thanks to both of you for your replies!
2022-08-04 10:07 PM
I am at the same juncture, but with trying to creating a label that reads the zone SF, but would prefer to have the comma included, after using an expression to round the sq ft number to the nearest whole number.