Das Wissen aller Anwender nutzen

Im Allplan Connect Forum tauschen sich Anwender aus, geben wertvolle Tipps oder beraten sich bei ganz konkreten Aufgabenstellungen − auch international.
Und damit wirklich keine Frage unbeantwortet bleibt, unterstützen die Mitarbeiter des Technischen Supports ebenfalls aktiv das Forum.

Es erwarten Sie:

  • Foren-Vielfalt aus CAD Architektur, CAD Ingenieurbau uvm.
  • Tipps von User für User
  • international: Deutsch, Englisch, Italienisch, Französisch und Tschechisch

Melden Sie sich jetzt an und diskutieren Sie mit!

Zur Registrierung

smart part - Attribut an Hand mehrer Parameter generieren [Gelöst]


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

Lösung anzeigen Lösung verbergen

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/ verwendet Cookies  -  Mehr Informationen

Akzeptieren