[Question] Rundung der Zahlausgabe bei SmartPart [Résolu]

Balises:

Hallo zusammen,

ich hab für die neue Abstandflächenregelung in der BayBO ein simples 2d-SmartPart gebaut, welches unter Angabe der Werte wie First, Traufe, nat. Gelände die Abstandsflächen berechnet und darstellt.
Zur direkten Anzeige der Werte hab ich diese auch als Text eingefügt. soweit so gut... für zwei Stellen nach dem Komma.
Sobald ich allerdings einen Wert z.B. Firsthöhe von 9,375 eintrage, wird in der Ausgabe des SmartParts auf 9,38 gerundet.
Das lässt sich doch bestimmt im Script verändern, oder?

Hat da jemand einen kleinen Tip für mich.

SmartPart und Screenshot ist angefügt.

Danke vorab!

Gruß
Thomas

wiedermal als Bauzeichner tätig, zumindest auf Halbjahres-Basis. Das andere halbe Jahr ist fürs das Abenteuerleben reserviert.

Darüber wird wie schon seit 10 Jahren auf https://www.snowmanstudios.de berichtet.

Pièces-jointes (2)

Type: image/png
Téléchargé 79 fois
Size: 55,32 KiB
Type: application/zip
Téléchargé 644 fois
Size: 18,97 KiB

Show solution Hide solution

Hello,

You can use STR ( your_value , 4 , 3 ) to get 3 decimals.
___________

Sie können STR ( your_value , 4 , 3 ) verwenden, um 3 Dezimalstellen zu erhalten.


Hello,

You can use STR ( your_value , 4 , 3 ) to get 3 decimals.
___________

Sie können STR ( your_value , 4 , 3 ) verwenden, um 3 Dezimalstellen zu erhalten.


hey Bertrand,

AWESOME!

It works, ... I tried this way, but for some reason I still had the 4 and 3 in " ".
Without it is working now!

perfect!

cheers, Thomas

wiedermal als Bauzeichner tätig, zumindest auf Halbjahres-Basis. Das andere halbe Jahr ist fürs das Abenteuerleben reserviert.

Darüber wird wie schon seit 10 Jahren auf https://www.snowmanstudios.de berichtet.

Great!
Thank you.


Hello,
There is some other possibility to change the shape of the house not only retangular, to have the possibility of even more composed shapes?

Pièces-jointes (1)

Type: image/jpeg
Téléchargé 38 fois
Size: 44,70 KiB

Hello,

Please create a new topic.
This topic is old and your question is totally different from the question of this topic.



https://campus.allplan.com/ utilise des cookies  -  Plus d'informations

Accepter