企业管理 > Windchill 数据加载 > 使用 API 加载变型规范
  
使用 API 加载变型规范
可使用支持的 Windchill API 加载变型规范。下列 API 为出厂预置,可用于加载与可配置模块关联的独立变型规范、与选项集关联的独立变型规范、受控变型规范和受控选项筛选器:
Java 列表 API
public List<VariantSpecLoadOutputBean> loadVariantSpecs(List<VariantLoadNavCriteriaBean> navCriteriaBeans, List<VariantLoadPartConfigSpecBean> partconfigSpecBeans, List<VariantLoadATORuleConfigSpecBean> atoConfigSpecBeans) throws WTException, WTPropertyVetoException, Exception;
ArrayList API
publicList<VariantSpecLoadOutputBean> loadVariantSpecs(List<VariantSpecLoadOutputBean>variantSpecBeans) throws WTException, WTPropertyVetoException, Exception
建议使用 Java 列表 API。ArrayList API 可利用对象实现更细粒度的访问。
* 
使用出厂 API 时,不支持使用用户定义的变型规范编号来创建变型规范。