【问题背景】
当生成ISO图时会出现提示信息:
Unable to cast object of type 'System.DBNull' to type'System.String'
这是由于Schema有缺陷,导致用户无法生成ISO图。
在此篇wiki中将为大家介绍解决方法。
【操作步骤】
1.打开Schema文件夹,参考路径:
C:\ProgramData\Bentley\OpenPlant CONNECT Edition\Configuration\WorkSpaces\OpenPlantExample\WorkSets\Metric\Standards\OpenPlant\Schemas
2.打开如下Schema文件:“OpenPlant_3D_Supplemental_Isometrics_Isoextractor.01.08.ecschema.xml”
3.搜索:<IE_Mappings xmlns="OpenPlant_IsoExtractor_Custom_Attributes.01.08" />
4.使用如下内容代替:
<IE_Mappings xmlns="OpenPlant_IsoExtractor_Custom_Attributes.01.08">
<END_POINT_ORDER_MAP />
<OVR_END_PREPARATION />
</IE_Mappings>
Note:注意Schema的缩进
5.在Schema中找到如下行:
<L00_LABEL_SECTION_LABELS xmlns="OpenPlant_IsoExtractor_Custom_Attributes.01.08" />
<SPECIFIC_BOM_LABELS xmlns="OpenPlant_IsoExtractor_Custom_Attributes.01.08" />
6.使用如下内容代替:
<L00_LABEL_SECTION_LABELS xmlns="OpenPlant_IsoExtractor_Custom_Attributes.01.08">
<LBL_SECT_LABELS />
</L00_LABEL_SECTION_LABELS>
<SPECIFIC_BOM_LABELS xmlns="OpenPlant_IsoExtractor_Custom_Attributes.01.08">
<ATTRIBUTES />
</SPECIFIC_BOM_LABELS>
7.保存并关闭Schema文件
8.重新加载OPM软件,生成ISO图验证结果。
生成ISO图时,错误信息已经消失,现可以正常生成ISO图