04-03-2023
02:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
04-03-2023
02:03 PM
I've combed through the code in my application to figure out why/how this is happening but to no avail. Does anyone have any clues or ideas of where to look?
Here's the issue:
Before running the code, user has "Default to undirected" checked as below.
After running a simple application function of mine that adds a fastener automatically, and constrains it appropriately, this box is unchecked.
This is the /only/ methods that call any function related to constraints:
HoleConst1 = AsmDef.Constraints.AddMateConstraint2(Z, ScrewHole1, "0", InferredTypeEnum.kInferredLine, InferredTypeEnum.kInferredLine, MateConstraintSolutionTypeEnum.kUndirectedSolutionType)
FaceConst2 = AsmDef.Constraints.AddFlushConstraint(XY, FastenFace1, MateOffset)
Once complete, the next time the user opens the Constraint dialog to manually constrain something, the hole-to-hole "default to undirected" is unchecked
Solved! Go to Solution.