[Domanda] Maßangabe im Beschriftungsbild mal mit "." und mal mit "," - Warum? [Risolto]


Ich versuche wieder neue Beschriftungsbilder für unser Büro zu erstellen und bin auf eine weitere Kuriosität gestoßen:
Mal werden Nachkommastellen in Maßen durch einen Punkt geteilt, mal durch ein Komma.
Läßt sich das irgendwie steuern?
Würde gern 2 Türmaße (Länge(Breite) & Höhe) in einer Formel mit einem "/" miteinander verknüpfen. Kenne da entweder "verketten(x;"/";y)" oder "x+"/"+y". Bei der ersten Version kommen die Maße getrennt mit Komma. Bei der zweiten Version kommt merkwürdigerweise totaler Murks raus. Bei anderen Maßangaben (Durchbruchsmaße) funktioniert es widerum und gibt die Zahlen durch einen Punkt geteilt aus.
Favorit ist der Punkt.
Und ums perfekt zu machen den halben Zentimeter (3.Nachkommastelle) bitte noch als Hochzahl

Wie bekomme ich das für die Türmaße hin?

Show solution Hide solution

Hallo,

I think that var1 is a string and "verketten" is based on the Excel function.

var2 without "T" must be a number. You have to apply a function to transform a number to a string for each value.
Something like this:
FORMAT("%.2f"; @220@) + " / " + FORMAT("%.2f"; (@222@-MT_Raum(MT_Boden(@211@;1;2;3;4;5;6;7;8;9;10))/1000))

Have a look at the online help here and here.


11 - 17 (17)

I'm sorry, I have not a solution "ready-to-use".
Or else, you can use the Excel functions "LEFT", "RIGHT" and "NBCAR" for the number of caracters.
Like that:

LEFT(FORMAT("%.3f"; @220@); NBCAR(FORMAT("%.3f"; @220@)-1) + "%^{" + RIGHT(FORMAT("%.3f"; @220@); 1) + "%^}"

I didn't test...


@Bertrand:
You don't have to be sorry for a program you haven't designed. You really helped alot!
I will test what you wrote.

Another thing:
Is it possible to not show a 0-decimal in format-function?
That it writes back 17.7 but instead of 27.0 it should write 27

Unfortunately, I don't know...


Have a nice weekend then.

You too!


Quotato da: FSHUFPG

That it writes back 17.7 but instead of 27.0 it should write 27

maybe somthing like this :

=WENN( (B3/10) = RUNDEN(B3/10; 0 ); "<place here your Code that gives %.0F>"; "< here with decimals %.3F>" )

maybe :
WENN( (B3/10) = RUNDEN(B3/10; 0 ); @220@ ; LEFT(FORMAT("%.3f"; @220@); NBCAR(FORMAT("%.3f"; @220@)-1) + "%^{" + RIGHT(FORMAT("%.3f"; @220@); 1) + "%^}")

Allplan Webentwicklung

Private messages must be private. No support request via Private message.

^ this helped
in short for example:
_IF_((@90@)=(NINT(@90@)))FORMAT("%.0f";(@90@))_ELSE_ FORMAT("%.1f";(@90@))

But I'm not sure to use it with the whole thing. Will get a really long code and if I remember right in Allplan the code is limited to very few characters... Let's see. Happy to have this working. Thanks alot.

So now to try the exponent-stuff...

11 - 17 (17)

https://campus.allplan.com/ utilizza cookies  -  Maggiori informazioni

Accetta