检入文档(编辑模式)
<p>[TOC]</p>
<p><center><strong><em>说明:本模式仅文档已存在系统中,并且同时符合【文档已检出】+【不是属性检出】+【是本人自己检出】三个条件,才会进入!</em></strong></center></p>
<h4>请求</h4>
<h5>请求命令 CadCommand</h5>
<ul>
<li><code>EditBomLiarary_Modify 54</code> 或 <code>CheckInDocument 3</code></li>
<li>两个命令均能打开 Bom编辑窗口,仅命令的值不一样。</li>
</ul>
<h5>请求方式</h5>
<ul>
<li><code>IPCClient.Instance.SendMessage</code></li>
</ul>
<h5>请求参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必填</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">dataModel</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">standard_model</td>
<td>集成标准数据模型,详见[这里](<a href="https://www.showdoc.com.cn/kingdeeplm/11558477351049674">https://www.showdoc.com.cn/kingdeeplm/11558477351049674</a> "这里")</td>
</tr>
</tbody>
</table>
<p><strong>standard_model 参数</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必填</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">fileModels</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">array[fileModel]</td>
<td>标准文档对象模型集合,具体详见[这里](<a href="https://www.showdoc.com.cn/kingdeeplm/11558477351049674">https://www.showdoc.com.cn/kingdeeplm/11558477351049674</a> "这里")</td>
</tr>
<tr>
<td style="text-align: left;">propModels</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">array[property]</td>
<td>标准属性对象模型集合,具体详见[这里](<a href="https://www.showdoc.com.cn/kingdeeplm/11558477351049674">https://www.showdoc.com.cn/kingdeeplm/11558477351049674</a> "这里")</td>
</tr>
<tr>
<td style="text-align: left;">useRootPropId</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>根属性对象的propModelId</td>
</tr>
</tbody>
</table>
<h5>完整请求示例</h5>
<pre><code>{
&quot;dataModel&quot;: {
&quot;fileModels&quot;: [
{
&quot;cadId&quot;: &quot;2f99ce53-3c4a-4b18-b6c7-7c88bb50252e&quot;,
&quot;isRoot&quot;: true,
&quot;directoryPath&quot;: &quot;D:\\Repos\\非标CAD指导\\Kingdee.PLM.CAD.CustomPlugin\\Kingdee.PLM.CAD.CustomPlugin.Demo\\bin\\Debug\\素材&quot;,
&quot;fileName&quot;: &quot;根装配件.SLDASM&quot;,
&quot;size&quot;: 87486,
&quot;fileHash&quot;: &quot;EC4615717772C2451925F9E69CC879FB105C3483279A99622A128721D047F91F&quot;,
&quot;fileLevel&quot;: 0,
&quot;fileType&quot;: 2,
&quot;activeConfigPropId&quot;: &quot;462a8d7b-30f8-4331-8cb7-71064cf44470&quot;,
&quot;createDate&quot;: &quot;2024-12-20 16:52:13&quot;,
&quot;modifyDate&quot;: &quot;2024-12-26 15:52:14&quot;,
&quot;drawingDocs&quot;: [],
&quot;pdfDocs&quot;: [],
&quot;child&quot;: [
{
&quot;relationId&quot;: &quot;1ebdb56f-ab11-4c39-9efc-b093563994c1&quot;,
&quot;fileName&quot;: &quot;子零件.SLDPRT&quot;,
&quot;cadId&quot;: &quot;b23e6d44-1bdd-4d82-b327-86189060e141&quot;
}
],
&quot;hasBeenRecord&quot;: false,
&quot;isStandarPart&quot;: false,
&quot;displayName&quot;: &quot;根装配件.SLDASM&quot;
},
{
&quot;cadId&quot;: &quot;b23e6d44-1bdd-4d82-b327-86189060e141&quot;,
&quot;isRoot&quot;: false,
&quot;directoryPath&quot;: &quot;D:\\Repos\\非标CAD指导\\Kingdee.PLM.CAD.CustomPlugin\\Kingdee.PLM.CAD.CustomPlugin.Demo\\bin\\Debug\\素材&quot;,
&quot;fileName&quot;: &quot;子零件.SLDPRT&quot;,
&quot;size&quot;: 100749,
&quot;fileHash&quot;: &quot;B64F8F0A2E24352437FF0E1AF8AFBE7A9BC263947585484550DD6354893505B2&quot;,
&quot;fileLevel&quot;: 0,
&quot;fileType&quot;: 1,
&quot;activeConfigPropId&quot;: &quot;005e2e01-4f7c-4603-9ac0-551798188cdb&quot;,
&quot;createDate&quot;: &quot;2024-12-26 14:11:23&quot;,
&quot;modifyDate&quot;: &quot;2024-12-26 15:37:15&quot;,
&quot;drawingDocs&quot;: [],
&quot;pdfDocs&quot;: [],
&quot;child&quot;: [],
&quot;hasBeenRecord&quot;: false,
&quot;isStandarPart&quot;: false,
&quot;displayName&quot;: &quot;子零件.SLDPRT&quot;
}
],
&quot;propModels&quot;: [
{
&quot;propExpressionInfo&quot;: {},
&quot;propTypeInfo&quot;: {},
&quot;propInfo&quot;: {
&quot;COLOUR&quot;: &quot;蓝色&quot;,
&quot;DRAWNO&quot;: &quot;001&quot;,
&quot;MATERIAL&quot;: &quot;1111&quot;,
&quot;PARTNAME&quot;: &quot;Jair测试装配件001&quot;,
&quot;PARTNO&quot;: &quot;Jair.Test.001&quot;,
&quot;SPEC&quot;: &quot;320.29&quot;,
&quot;VERSION&quot;: &quot;A&quot;
},
&quot;cadId&quot;: &quot;2f99ce53-3c4a-4b18-b6c7-7c88bb50252e&quot;,
&quot;propModelId&quot;: &quot;462a8d7b-30f8-4331-8cb7-71064cf44470&quot;,
&quot;propInfoType&quot;: &quot;默认&quot;,
&quot;child&quot;: [
{
&quot;relationId&quot;: &quot;1ebdb56f-ab11-4c39-9efc-b093563994c1&quot;,
&quot;propModelId&quot;: &quot;005e2e01-4f7c-4603-9ac0-551798188cdb&quot;,
&quot;excludeFromBom&quot;: false,
&quot;compressState&quot;: &quot;Normal&quot;,
&quot;relatedProp&quot;: {
&quot;count&quot;: &quot;1&quot;,
&quot;remark&quot;: &quot;&quot;
}
}
]
},
{
&quot;propExpressionInfo&quot;: {},
&quot;propTypeInfo&quot;: {},
&quot;propInfo&quot;: {
&quot;COLOUR&quot;: &quot;蓝色&quot;,
&quot;DRAWNO&quot;: &quot;002&quot;,
&quot;MATERIAL&quot;: &quot;1111&quot;,
&quot;PARTNAME&quot;: &quot;Jair测试装配件002&quot;,
&quot;PARTNO&quot;: &quot;Jair.Test.002&quot;,
&quot;SPEC&quot;: &quot;320.29&quot;,
&quot;VERSION&quot;: &quot;A&quot;
},
&quot;cadId&quot;: &quot;b23e6d44-1bdd-4d82-b327-86189060e141&quot;,
&quot;propModelId&quot;: &quot;005e2e01-4f7c-4603-9ac0-551798188cdb&quot;,
&quot;propInfoType&quot;: &quot;默认&quot;,
&quot;child&quot;: []
}
],
&quot;useRootPropId&quot;: &quot;462a8d7b-30f8-4331-8cb7-71064cf44470&quot;
},
&quot;abstractCadType&quot;: &quot;_3d&quot;,
&quot;cadType&quot;: &quot;solidworks&quot;,
&quot;cadCommand&quot;: 54,
&quot;msgSendWay&quot;: 0
}</code></pre>
<h4>客户端回调</h4>
<p>具体看【[保存/暂存文档时,客户端通知新属性](<a href="https://www.showdoc.com.cn/kingdeeplm/11558482257839657">https://www.showdoc.com.cn/kingdeeplm/11558482257839657</a> "保存/暂存文档时,客户端通知新属性")】</p>