Zitat:Control Actions can always be specified in two ways:
As a quoted LISP form which gets executed as soon as the control action gets triggered or As a string. If in this case the control action gets triggered, the specified string gets passed to Creo Elements/Direct Modeling's command buffer just like as if the value of the string is entered manually into the enter command line. See sd-put-buffer for more information.
Ich habe mir ein Stück Beispielcode aus der UICT-Doku angeschaut und bei diesem Code
Code:(sd-create-text-control "UICT-TEST-121-TX" "UICT-TEST-12-GA" :x 0 :y 0 :width 10 :height 2 :editable t :showModified nil :showFocus t :enterAction ":text_121_enter_pressed")
erwartet dass beim drücken von Enter in dem Textfeld die :enterAction ausgeführt, also der Text in die Kommandozeile geschrieben wird. Leider tut sich da gar nichts??
Ich schreibe das hier in meiner Freizeit und spreche weder für meinen Arbeitgeber noch für andere Firmen. Mehr Unsinn von mir unter clausbrod.de.
erstellt am: 09. Sep. 2020 18:03 <-- editieren / zitieren --> Unities abgeben: Nur für StephanWörz
Meine Erwartung wäre, dass das Keyword abgeschickt wird (und dann vom aktuell laufenden Kommando ausgewertet/entgegengenommen wird), aber nicht, dass es dann in der Eingabezeile auftaucht.