Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
HI,
How do i flip my bend direction with an iLogic code. (Left/Right)
Thanks in advance
Solved! Go to Solution.
HI,
How do i flip my bend direction with an iLogic code. (Left/Right)
Thanks in advance
Solved! Go to Solution.
Hi @gma
The bend feature has the boolean property BendInSketchNormalDirection. You can change it like this 🙂
Dim oDoc As PartDocument = ThisDoc.Document oDoc.ComponentDefinition.Features.BendPartFeatures.Item(1).BendInSketchNormalDirection = False 'False/True
If the feature is named "Vinkel" as in your picture. This rule will flip the direction everytime you run it 🙂
Dim oDoc As PartDocument = ThisDoc.Document Dim oBend As BendPartFeature = oDoc.ComponentDefinition.Features.BendPartFeatures.Item("Vinkel") If oBend.BendInSketchNormalDirection oBend.BendInSketchNormalDirection = False Else oBend.BendInSketchNormalDirection = True End If
Jhoel Forshav Download my free Inventor Addin - Hole Projector
LinkedIn | Ideas | Contributions | Blog posts | Website