Strange Constraint.IsActive Error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Another one to add to my list of 2013 oddities.
I have a large model where I turn on/off constraints with iLogic using Constraint.IsAvtive = True/False
I sometimes get this error :
Error in rule: constraint error, in document: ESTTRS.iam
There was an error while trying to run the rule function:
Constraint.IsActive("Angle:5") = False
System.ArgumentException: There was an error while trying to run the rule function:
Constraint.IsActive("Angle:5") = False
---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException: Exception has been thrown by the target of an invocation.
--- End of inner exception stack trace ---
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at iLogic.AssemConstraintForRule.set_IsActive(String constraintName, Boolean value)
--- End of inner exception stack trace ---
at iLogic.AssemConstraintForRule.set_IsActive(String constraintName, Boolean value)
at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)
I've seen this error appear a couple of times on different models too.
I can't put my finger on what's causing it, nor can I give a way to replicate it (which is frustrating)
I NEVER saw this error in 2013 and nothing has changed in the model since moving versions.
Can anybody shed any light on what could be casuing this error?
Thanks
Tom
