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

Anhänge (2)

Typ: application/octet-stream
604-mal heruntergeladen
Größe: 1,31 MiB
Typ: image/png
40-mal heruntergeladen
Größe: 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


Anhänge (2)

Typ: image/png
21-mal heruntergeladen
Größe: 35,77 KiB
Typ: application/octet-stream
605-mal heruntergeladen
Größe: 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

Anhänge (1)

Typ: image/png
30-mal heruntergeladen
Größe: 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

Anhänge (1)

Typ: image/png
36-mal heruntergeladen
Größe: 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


Anhänge (3)

Typ: application/octet-stream
687-mal heruntergeladen
Größe: 1,44 MiB
Typ: image/png
22-mal heruntergeladen
Größe: 32,31 KiB
Typ: image/png
27-mal heruntergeladen
Größe: 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/ verwendet Cookies  -  Mehr Informationen

Akzeptieren