ilogic scale rule error

ilogic scale rule error

Dan_Margulius
Advisor Advisor
1,011 Views
2 Replies
Message 1 of 3

ilogic scale rule error

Dan_Margulius
Advisor
Advisor

Hello,

I have the following error sometime :

iLogic Rule Error in rule: Scale1, in document: _107824000-TEST6.idw

Object reference not set to an instance of an object.

 

System.NullReferenceException: Object reference not set to an instance of an object.

   at LmiRuleScript.Main()

   at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)

   at e.a(String A_0)

 

Does anyone what this is?

Thanks,

Dan


0 Likes
1,012 Views
2 Replies
Replies (2)
Message 2 of 3

Dan_Margulius
Advisor
Advisor

Maybe a picture will help.

ilogic err.png

0 Likes
Message 3 of 3

SteveX82
Advocate
Advocate

I'm having the same problem. Try as I might, I've been unable to duplicate the error in a simple model & drawing package that I could share with the forum.

 

I have noted the following:

 

  • The error occurs ONLY when I have my "Rescale" rule triggered to run with "After Open".
  • The error occurs in my template drawing, which references a template skeletal model. After subsequently modifying the template model with iLogic, I get the error message when opening the drawing. It works fine with the original template model, and I can run the rule manually after the drawing is opened without any trouble.

It seems that the rule is auto-firing before the drawing and/or model have fully loaded, and Inventor complains that it can't access the info it needs (in my case, it might be the referenced model parameter I am accessing in the rule). This error message halts the entire loading process dead in its tracks, and the drawing views fail to update and reflect the changes to the model. I can manually highlight/update each base view, but then dimensions disappear and/or come in crooked and incorrect.

 

If the event-trigger is switched off, I can run this rule all day long without issue.

 

I hope this helps narrow down the problem, or at least gets the attention of the people who might be able to help.

0 Likes