Message 1 of 5
Problem in AddAngleConstraint
Not applicable
04-13-2009
08:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have program which adds component into assembly and applies angle constraints,
object proxyW;
panelOcc.CreateGeometryProxy(panelDef.WorkPlanes["YZ Plane"], out proxyW);
oAsmComp.Constraints.AddAngleConstraint(oAsmComp.WorkPlanes["YZ Plane"], false, proxyW, false, Math.PI / 2, null, null, true);
where oAsmComp is and assembly compoennt definition.
Angle constraints is getting applied and there is no problem.
But whenever design doctor is on in assembly due to some constraints error, this angle constraint is not getting updated. How to resolve this problem?
After deleting these constraints having problem, I found this angle constraint got updated.
Is there any way to detect whether design doctor is on or to force update even if doctor is on?
or to delete all problemetic constraints?
object proxyW;
panelOcc.CreateGeometryProxy(panelDef.WorkPlanes["YZ Plane"], out proxyW);
oAsmComp.Constraints.AddAngleConstraint(oAsmComp.WorkPlanes["YZ Plane"], false, proxyW, false, Math.PI / 2, null, null, true);
where oAsmComp is and assembly compoennt definition.
Angle constraints is getting applied and there is no problem.
But whenever design doctor is on in assembly due to some constraints error, this angle constraint is not getting updated. How to resolve this problem?
After deleting these constraints having problem, I found this angle constraint got updated.
Is there any way to detect whether design doctor is on or to force update even if doctor is on?
or to delete all problemetic constraints?