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

Вложения (2)

Type: application/octet-stream
Загружено 605 раз
Size: 1,31 MiB
Type: image/png
Загружено 40 раз
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


Вложения (2)

Type: image/png
Загружено 21 раз
Size: 35,77 KiB
Type: application/octet-stream
Загружено 607 раз
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

Вложения (1)

Type: image/png
Загружено 30 раз
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

Вложения (1)

Type: image/png
Загружено 36 раз
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


Вложения (3)

Type: application/octet-stream
Загружено 688 раз
Size: 1,44 MiB
Type: image/png
Загружено 22 раз
Size: 32,31 KiB
Type: image/png
Загружено 27 раз
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/ uses cookies  -  More information

Accept