Fully Constrained Bug/Error/Issue (Inventor 2022.2)

Fully Constrained Bug/Error/Issue (Inventor 2022.2)

llorden4
Collaborator Collaborator
534 Views
3 Replies
Message 1 of 4

Fully Constrained Bug/Error/Issue (Inventor 2022.2)

llorden4
Collaborator
Collaborator

I've got a sketch that is being reported as Fully Constrained, but is not fully constrained.  The dimension I need to add to fully constrain the sketch can only be placed as a driven value as a result.  I'm attaching the file for your testing enjoyment along with a video demonstrating the issue with the "Base Sketch" feature.

llorden4_1-1642680812802.png

The vertical sketch line is still green, and grabbing the points allow the profile to move; no idea why Inventor thinks this is fully resolved.

 

Autodesk Inventor Certified Professional
0 Likes
535 Views
3 Replies
Replies (3)
Message 2 of 4

llorden4
Collaborator
Collaborator

Some additional findings I have since posting this...

There were Coincident constraints applied to the angled top & bottom sketch lines to align those lines with the grounded sketch points at the top & bottom as there is an intentional offset from the projected vertical line.  What's odd is that those Coincident constraints are not displaying when the line is selected or pressing F8 to reveal all constraints.

 

Removing these Coincident constraints from the iLogic code I'm using to place them (not shared due to NDA) should allow those angled lines to free-float up/or down and no longer be aligned to those points, yet they are still remaining aligned.  Placing the horizontal offset dimension from the projected vertical line and the vertical sketch line now allows me to constrain as desired, but shouldn't.

 

For those  that doubt the coding of the process, here's a snippet for this portion

	oSKP1 = oSketch.SketchPoints.Add(oTG.CreatePoint2d(0, oHexRad * 2.54), False)			'top intersection point
	oSKP2 = oSketch.SketchPoints.Add(oTG.CreatePoint2d(0, -oHexRad * 2.54), False)			'bottom intersection point
	oGC.AddGround(oSKP1)
	oGC.AddGround(oSKP2)
	Dist = oMatThick * Sin(60 * PI / 180) * 2.54											'distance to create seam gap
	'right side base sketch
	If ThisSection = 1 Then
		oLine(1) = oSketch.SketchLines.AddByTwoPoints(oTG.CreatePoint2d(0.125, oHexRad * 2.54 - 1), oTG.CreatePoint2d(oBotRad * 2.54, BotFlat * 2.54 / 2))
		oLine(2) = oSketch.SketchLines.AddByTwoPoints(oLine(1).EndSketchPoint, oTG.CreatePoint2d(oBotRad * 2.54, -BotFlat * 2.54 / 2))
		oGC.AddVertical(oLine(2))
		oLine(3) = oSketch.SketchLines.AddByTwoPoints(oLine(2).EndSketchPoint, oTG.CreatePoint2d(0.125, -oHexRad * 2.54 + 1))
		oSKP = oSketch.SketchPoints.Add(oTG.CreatePoint2d(oBotRad * 2.54, 0), False)
		oGC.AddMidpoint(oSKP, oLine(2))
		oGC.AddHorizontalAlign(oSKP, oCP)
'moved horizontal dim offset here to get desired placement
		oTmp = oDC.AddOffset(oVert, oLine(2), oTG.CreatePoint2d(oLine(2).Geometry.MidPoint.X / 2, 1), Flase, False)
		oTmp.Parameter.Value = oBotRad * 2.54
		oTmp = oDC.AddOffset(oVert, oLine(1).StartSketchPoint, oTG.CreatePoint2d(-5, oHexRad * 2.54 + 1), False, False)
		If NoSections > 1 Then
			oGC.AddVerticalAlign(oLine(3).EndSketchPoint, oLine(1).StartSketchPoint)
		Else
			oLine(3).EndSketchPoint.Merge(oSKP2)
		End If
		oTmp = oDC.AddTwoLineAngle(oLine(1), oVert, oTG.CreatePoint2d(oLine(1).Geometry.MidPoint.X / 2, oLine(1).Geometry.MidPoint.Y), False)
		oTmp.Parameter.Expression = "60 deg"
		oTmp = oDC.AddTwoLineAngle(oLine(3), oVert, oTG.CreatePoint2d(oLine(3).Geometry.MidPoint.X / 2, oLine(3).Geometry.MidPoint.Y), False)
		oTmp.Parameter.Expression = "60 deg"
'Removing these constraints to resolve bug issue
'line alignment to points remains for some unknown reason
		'oGC.AddCoincident(oLine(1), oSKP1)
		'If NoSections > 1 Then oGC.AddCoincident(oLine(3), oSKP2)
		'oTmp = oDC.AddOffset(oVert, oLine(2), oTG.CreatePoint2d(oLine(2).Geometry.MidPoint.X / 2, 1), Flase, False)
		'oTmp.Parameter.Value = oBotRad * 2.54
	End If  

 

Autodesk Inventor Certified Professional
0 Likes
Message 3 of 4

johnsonshiue
Community Manager
Community Manager

Hi Leo,

 

This is either an Inventor API bug or a Sketch Solver bug. Regardless, it is wrong. I will work with the project team to understand it better.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes
Message 4 of 4

johnsonshiue
Community Manager
Community Manager

Hi! Just an update on this issue. It is indeed a known issue, INVGEN-52646. It has not been fixed yet.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes