跳到主要内容

IParamModelParameter 接口

interface IParamModelParameter 

模型参数

属性

description

description: string;

参数描述

displayName

displayName: string;

参数显示名,如 "W" 对应的displayName是"宽度"

editable

editable: boolean;

若参数为公式,则值为false,否则为true

formula

formula: string;

在编辑器中定义的公式

formulaDisplayName

formulaDisplayName: string;

复合公式显示名

globalId

globalId: string;

全局变量唯一id

ignored

ignored: boolean;

工具不展示

instanceGroupTypeId

instanceGroupTypeId: number;

参数继承的聚合类型

link: string;

产品包id

max

max: string;

最大值

min

min: string;

最小值

name

name: string;

参数名称

options

options: Array<string>;

可选值字段中的可选值

optionValues

optionValues: IParamModelOptionValues[];

可选值字段所包含的信息,包括可选值、隐藏条件、显示名称等

类型: IParamModelOptionValues[]

originalValue

originalValue: string;

与value值相同

overridable

overridable: boolean;

工具中是否可修改,可修改为true,否则为false

override

override: boolean;

工具中是否修改参数,若是为true,否则为false

paramTypeId

paramTypeId: number;

值类型

primitiveOverride

primitiveOverride: boolean;

元件进行过板件编辑或喷绘时,值为true,否则为false

quotationValue

quotationValue: string;

经过公式运算得到的结果,一定是数值

recommends

recommends: Array<string>;

推荐值字段中的可选值

recommendValues

recommendValues: IParamModelOptionValues[];

推荐值字段所包含的信息,包括可选值、隐藏条件、显示名称等

类型: IParamModelOptionValues[]

required

required: boolean;

是否为系统变量或基础变量。如系统给的W、D、H为true,用户添加的自定义变量W1为false

simpleName

simpleName: string;

参数简化名,如材质的引用名为materialBrandGoodId,但其缩写为CZ

status

status: number;

参数状态;参数为非复合公式时值为-1,当参数为复合公式时,值状态为0,公式状态为1

step

step: string;

步长

type

type: string;

编辑器中设定的参数类型

value

value: string;

序列化值

valueDisplayNames

valueDisplayNames: Array<string>;

多布尔每位的显示名称

visible

visible: boolean;

参数不显示(编辑器中的设定)

索引类型

(indexer)

[key: string]: any;

other fields