
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've attached the part and the iLogic code (separately as a text file)
I've used the same type of code in other functions in the same iLogic rule. If I uncomment virtually anything in the "Coupling" function, the error appears. I can't understand why it's throwing errors in one particular function. Help? (please ignore my message boxes -- it's what I use to verify that the code gets to particular places)
The text of the error message:
Error in rule: Water Manicode, in document: Water Manifold.ipt
Object variable or With block variable not set.
The text of the "More Info" on the error:
System.NullReferenceException: Object variable or With block variable not set.
at Microsoft.VisualBasic.CompilerServices.Symbols.Container..ctor(Object Instance)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
at LmiRuleScript.Coupling(Object SupplyAndReturn, Object CompassDirections)
at LmiRuleScript.SetCouplingDiameter()
at LmiRuleScript.Main()
at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)
Solved! Go to Solution.