There may be many variables in a model, but they may not be known when editing the model. The variable description function can solve this problem.
Variable description model is defined in MetaThing. When adding variable description model, you need to select MetaThing.
VariableDesc objects are created after the variable description model is executed, and VariableDesc is used to describe variables.
When describing a variable, the type attribute specifies the type, and the assistance provided by different types may be different.
Variables can be defined on the descriptor or on the current model. If variables with the same name are redefined repeatedly, the priority of validity is the current model > parent model > descriptor and its inheritance > descriptor and its inheritance of parent model, etc.
Variables can be assisted in the code editor.
Variable selectors can be used in property editors.
Copyright © 2007-2019 XWorker.org 版权所有 沪ICP备08000575号