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

Attachments (2)

Type: application/octet-stream
Downloaded 580 times
Size: 1,31 MiB
Type: image/png
Downloaded 38 times
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


Attachments (2)

Type: image/png
Downloaded 21 times
Size: 35,77 KiB
Type: application/octet-stream
Downloaded 581 times
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

Attachments (1)

Type: image/png
Downloaded 28 times
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

Attachments (1)

Type: image/png
Downloaded 34 times
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


Attachments (3)

Type: application/octet-stream
Downloaded 655 times
Size: 1,44 MiB
Type: image/png
Downloaded 22 times
Size: 32,31 KiB
Type: image/png
Downloaded 25 times
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