'Two-Point-Center' Rectangle sketch changes in unpredictable manner on Flip Normal of Sketch WorkPlane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Recently I've discovered that flipping WorkPlane normal of the sketch containing Two-Point-Center-Rectangle changes it in unpredictable manner.
Steps to reproduce:
1. Create new IPT
2. Create three new user WorkPlanes (each at some offset from each of Origin WorkPlanes)
3. Make new user WorkAxis as Intersection of the two user WorkPlanes (turn off visibility for those two WorkPlanes)
4. Create new Sketch on the only visible user Workplane
5. Make sure Origin Point projection was created (if no create it manually)
6. Create new (2nd) sketch Point as projection of the user WorkAxis
7. Create Two-Point-Center-Sketch using the Origin-Projection-Sketch-Point as Center-Point and 2nd sketch Point as Angle-Point
8. Make sure the sketch is fully constrained and close it
9. Pick Sketch WorkPlane (that same which is the only visible one) and Flip its normal.
Witness disappearing all/some of the sketch Lines that form the rectangle.
To get more understanding of what happens with sketch I wrote some iLogic code, which I run before and after WorkPlane flipping:
Dim oPD As PartDocument = ThisDoc.Document
Dim oCD As ComponentDefinition = oPD.ComponentDefinition
Dim oSk As PlanarSketch = oCD.Sketches(1)
logger.info("ConstraintStatus = " & [Enum].GetName(GetType(ConstraintStatusEnum), oSk.ConstraintStatus))
logger.info("SketchLines QTY = " & oSk.SketchLines.count)
Dim dLengthTot As Double
For Each oSL in oSk.SketchLines
dLengthTot += oSL.Length
Next
logger.info("Total Lines Length = " & dLengthTot)
It shows that all lines are kept but their lengths changes (some cases lines even got zero length).
What I'm missing?
Can I bulletproof my sketch to have it unchanged after Flip Normal command execution?
PS: I can reproduce this issue in Inventor 2023.2 (and all earlier versions I've tested so far).
Please vote for Inventor-Idea Text Search within Option Names