-
1. 目标

-
2. 核心代码
if (oShape.Representation != 64)
{
oShape.Representation = 64;
MiddleServiceProvider.TransactionMgr.Commit(“ChangedAspectForShape”);
}
-
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对应数值关系如下图所示

-
4. 特殊情况说明
对于DesignSolid组合件,保温要对DesignSolid设置而非其下面的子项

主要设置代码如下


您需要登录 或注册 后才可以发表评论。