S3D开发中保温怎么设置

  1. 1.  目标

  1. 2.  核心代码

if (oShape.Representation != 64)

{
oShape.Representation = 64;
MiddleServiceProvider.TransactionMgr.Commit(“ChangedAspectForShape”);
}

  1. 3.    代码说明

Additionally, this is
persisted in EQUIPSHAPE.RepresentationId in the database (it is a bit field,
with each bit representing the enabled aspects). Thus, if Simple Physical (0)
and Insulation (5) are both enabled, then the value will be 2^0 + 2^5 = 33.
(The number for simple physical is 1, for insulation is 32, so if a shape has
both, you will have 1+32 = 33.)

不同ASPECT对应数值关系如下图所示

  1. 4.      特殊情况说明

对于DesignSolid组合件,保温要对DesignSolid设置而非其下面的子项

主要设置代码如下

数字化工程设计公众号二维码
原文链接:查看原文  文章来源:数字化工程设计
🔗 分享 0

上5篇 more...

下5篇 more...