/// <summary>
/// 0 工作部件和显示部件不一致(组件设置为工作部件) 1装配状态 2 部件状态
/// </summary>
/// <returns></returns>
public static int AskPartStatu()
{
BasePart basePart = theSession.Parts.Display;
int res;
if (basePart.Name != workPart.Name)
{
UGAPI.msg.uc1601(" Part statu is err", " basePart.Name: " + basePart.Name + "\n workPart.Name: " + workPart.Name + "\n basePart must same as workPart", 0);
res = 0;
}
else
{
Tag occPart = theUfSession.Assem.AskRootPartOcc(workPart.Tag);
if (occPart != 0)
{
// UGAPI.msg.print(" 装配 ");
res = 1;
}
else
{
// UGAPI.msg.print(" 非装配 ");
res = 2;
}
}
return res;
}
02-28
5125
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
03-26
463
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交