跳到主要内容

IImportModel 接口

interface IImportModel 

导入模型

属性

category

category: string;

模型类别,可选值详见 https://open.kujiale.com/open/apps/2/docs?doc\_id=653&tab\_id=api&path=0\_536\_651\_653《模型类别表》

id

id?: string;

模型商品ID,用于模型更新场景。模型商品ID在导入任务执行成功后会返回 更新场景会有以下限制: 1、仅支持顶层模型更新; 2、用户只能更新自己导入的模型; 3、只能更新模型的子模型(subModels)、变量(parameters)、预览图(previewImgUrl OR previewImgData)、商品名(name)。

name

name: string;

模型名称

parameters

parameters?: IParameter[];

模型变量信息,将创建模型变量,个数不能超过10

类型: IParameter[]

previewImgData

previewImgData?: string;

Base64 编码格式的模型预览图数据 以类型data:image/jpg;base64, 或data:image/png;base64 开头 除去类型数据外,其他数据不超过1048576个字符; 和 previewImgUrl 二选一

previewImgUrl

previewImgUrl?: string;

模型预览图

subModels

subModels: Array<IReferenceModel | IExtrusionModel | ISweepModel | IImportModel>;

模型的所有部件,结构说明具体查看子模型部分

类型: Array<IReferenceModel | IExtrusionModel | ISweepModel | IImportModel>

type

type: string;

标识模型类型, 值为importModel