smart part - Attribut an Hand mehrer Parameter generieren [Vyřešeno]


ich möchte in das Attribut Kurztext folgende Werte zusammenhängend zurückschreiben:

EBT_Nummer = EBT4104 (Text)
Typ = 5 (Text)
Breite = 190 (Ganzzahl)

Kurztext = "EBT_Nummer" , +"/"+ , "typ" , +"/"+ , "Breite"

Ergebnis soll sein:

EBT4104/5/190

Funktioniert aber nicht....

Gruß Jürgen
Allplan V10 bis V2024

Show solution Hide solution

Hello Allplan_er,

Don't add "," and a parameter must not have quotes.
A number must be tranformed into a string with STR(). Since this is an integer, you don't need a decimal value. So you need at least 1 integer and 0 decimal in the result.
This will work:
Kurztext = EBT_Nummer + "/" + Typ + "/" + STR ( Breite , 1 , 0 )


Hello Allplan_er,

Don't add "," and a parameter must not have quotes.
A number must be tranformed into a string with STR(). Since this is an integer, you don't need a decimal value. So you need at least 1 integer and 0 decimal in the result.
This will work:
Kurztext = EBT_Nummer + "/" + Typ + "/" + STR ( Breite , 1 , 0 )



https://campus.allplan.com/ používá cookies  -  Více informací

Souhlasím