Smartpart - Berechnungswert ausgeben


Hallo,
ich habe ein smartpart so abgeändert, das ich die Unterstützungshöhe für obere Bewehrung berechnen kann,
Aber:
Der Gesamtwert, siehe Wolke, wird nicht angezeigt, kann da mal jemand schauen?
Und kann ich an den Strichpunktlinien im smartpart-script Linien eingeben?

Gruß Jürgen
Allplan V10 bis V2024

Adjuntos (2)

Type: application/octet-stream
Descargado 605 veces
Size: 1,31 MiB
Type: image/png
Descargado 40 veces
Size: 35,77 KiB

Hallo Jürgen,

I modified your SmartPart to get what you want.
For the total of the values (subtraction in your case), you have not to add quotes ("). Quotes means that you use a string, not a parameter.

I optimized your 2D script to avoid to have lots of IF...THEN and reduced the number of variables.

In the dialog script, you could avoid to define the position (row) because you use the palette.
So, you could write your lines like that:

I_OUTFIELD `Listenausgabe` , 0 , 0 , txt_width , controlheight , 1


Adjuntos (2)

Type: image/png
Descargado 21 veces
Size: 35,77 KiB
Type: application/octet-stream
Descargado 607 veces
Size: 1,44 MiB

Thank you!!!

Gruß Jürgen
Allplan V10 bis V2024

Hallo Betrand,

can i insert a picture, on the right side from the table, in the script?

Gruß Jürgen
Allplan V10 bis V2024

Adjuntos (1)

Type: image/png
Descargado 30 veces
Size: 45,37 KiB

Jürgen,

Yes, you can insert a picture with RECT_PICT2 or RECT_PICT2_2.


Hallo Bertrand,

can you post an example?

How can i fix the position on the right side of the text?

Gruß Jürgen
Allplan V10 bis V2024

Adjuntos (1)

Type: image/png
Descargado 36 veces
Size: 60,90 KiB

Wenn das Bild absta.png ist, muss man

RECT_PICT2 "absta" 20,20

schreiben. Das Bild sollte entweder im SmartPart als Ressource enhalten sein, oder im Verzeichnis Prj\Library\bitmaps liegen.

Hallo Jürgen,

Load the picture in the SmartPart resources (see picture "resource.png").
Then, add the code you can see in the SmartPart to get the result.
You can change the size of the picture as you want.
The right syntax (to follow your example) is: RECT_PICT2 "absta" , 20 , 20 , 0


Adjuntos (3)

Type: application/octet-stream
Descargado 688 veces
Size: 1,44 MiB
Type: image/png
Descargado 22 veces
Size: 32,31 KiB
Type: image/png
Descargado 27 veces
Size: 54,66 KiB

So, nach viel "try and error", habe ich es fertig. Danke für die Hilfe(n)!

Gruß Jürgen
Allplan V10 bis V2024

Perfect!
Good luck for the next one...
Feel free to post requests if needed.

___________

Perfekt!
Viel Glück für den nächsten...
Bei Bedarf können Sie gerne Anfragen stellen.



https://campus.allplan.com/ utiliza cookies  -  Aqui

Acéptalo