Sub Assembly Composer - If Statement - Expression Editor

Sub Assembly Composer - If Statement - Expression Editor

Anonymous
不适用
1,885 次查看
2 条回复
1 条消息(共 3 条)

Sub Assembly Composer - If Statement - Expression Editor

Anonymous
不适用

Morning/Afternoon and Evening

I'm working on a bespoke sub assembly in sub assembly composer. However the slope angle is an int (degrees) which which retains the slope when toggled from left to right. I've been trying to add an expression in the Expression Editor to add 180 to the value if Side = Left but am getting nowhere.

 

So my expression is:

{If (Side.Value="Right")
    WallAngle.Value
Else
   WallAngle.Value+180
}

Unfortunately this fails, would anyone be able to assist on how I would go about writing an If Statement in Expression Editor?

0 个赞
1,886 次查看
2 条回复
回复 (2)
2 条消息(共 3 条)

Anonymous
不适用

you can convert your slope to double and then try your if statement, something like this

--> ctype(WallAngle.value,double),

this function will convert your slope to double.....

0 个赞
3 条消息(共 3 条)

M_Obradovic
Collaborator
Collaborator

Can you share pkt file?

0 个赞