UserMsg
Model ElementUserMsg要素では、MotionSolveメッセージの出力を制御できます。MotionSolveが標準出力に出力するメッセージはをすべて表示されます。
クラス名
UserMsg
属性の概要
名前 | プロパティ | コマンドで変更可能か | 設計可能か |
---|---|---|---|
function | Function | × | × |
routine | Routine () |
使用法
# Defined in a Python function
UserMsg_0 = UserMsg (routine=onError)
属性
- function
- 有効なユーザー関数を定義する文字列。
- routine
- 文字列
- function
- 有効なユーザー関数を定義する文字列。
- routine
- Python内の呼び出し可能な関数へのポインタ。
例
UserGraphic (function="USER(0)", routine=myMsgSub)
def myMsgSub (msgid, time, par, npar, msgtype, iflag, endflag, message, outname):
# implementation goes here...
return 0
コメント
- プロパティの概要、使用理由、および拡張方法については、プロパティをご参照ください。