Those shifty planes! Need advice on approach.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've run into issue where it appears where my approach to create a new plane is getting derailed based upon other design options within the model that seem to be affecting the behavior of the plane constraints.
In this part I making varying end feature configurations on either side of the part, there will be different sizes, shapes, and orientations. The feature currently giving me grief is this highlighted plane on my left I use to create the edge chamfer. It's created by an angle to and edge from a plane. The XZ plane provides a stable reference plane and the edge is a centerline axis of the hole; pretty stable features to work with and you can see here I am achieving my desired goal.
[My code for creating these work features]
oTmp = oCompDef.WorkAxes.AddByAnalyticEdge(oEdges.Item(1)) oTmp.Name = "Sec Hole Axis" oTmp = oCompDef.WorkPlanes.AddByLinePlaneAndAngle(oCompDef.WorkAxes.Item("Sec Hole Axis"), oCompDef.WorkPlanes.Item("XZ Plane"), oWorkAngle / 2 * PI / 180 * Orient, False) oTmp.Name = "Sec Chamfer Plane"
When I started to develop the coding for my next feature option, I noticed that the plane feature rotated unexpectedly, and I thoroughly went through my code looking for possible conflicts but haven't been able to identify any. I've had plenty of experience with planes rotating unexpectedly in Inventor, so I'm thinking this is simply an issue with my approach to the problem.
As soon as I select a different feature for the opposite side, my created plane rotates its orientation. Am I wrong for thinking this is unstable and unpredictable? My plane has no constraints to the other features, why would it's behavior change when I'm using stable base features? Is there a more reliable approach to creating planes that you can suggest?
@johnsonshiue Or is this likely a bug that needs addressing? I know some will ask to see the code/model, but the code is already well over 1000 lines of code and that's a lot to ask of anyone short of the most curious. Let's focus on the approach for now and discuss whether or not this is a good development path.
Using Inventor 2021.3
