[Inventor] 使用iLogic改变草绘中的尺寸

JUMU实名认证 发表于 2021-06-17 22:03 | 显示全部楼层 | 复制链接分享      上一主题  翻页  下一主题
It is a bit tricky but you can add a new rule and inside that rule set the named dimensions and parameters.

Inside a part add a rule. Here is an example, Blue words are parameters/dimensions from the part or sketch, so this block uses the two objects (DiamColl and DiamAtt) to change a diameter called Dcoll .

  1. Dim RagColl as Double
  2. Dim RagAtt As Double

  3. RagColl = DiamColl/2.0
  4. RagAtt = DiamAtt/2.0

  5. If RagAtt < RagColl Then
  6. Dcoll = Sqrt((RagColl*RagColl) - (RagAtt*RagAtt))
  7. Else
  8. Dcoll = 0.0
  9. End If
复制代码
What is also a bit tricky is when things get triggered.

  距米网  

找到您想要的设计

工程师、学生在线交流学习平台
关注我们

手机版- 距米网 |苏公网安备32041102000587号

©2017-2025 苏ICP备18040927号-1