Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
tobias.orlow
in reply to: llorden4

Hi @llorden4 ,

 

I'm sorry to hear you're having troubles with your new rule.

Which version of Inventor are you working on?

 

Are you certain that the error is caused by your provided code? From the exception it appears that the rule is not able to cast a previously defined object to the type "ComponentOccurrence". In your snippet you don't have any objects related to that type.

When running just that snippet in a document, it works as expected on my end.

 

Would you be able to provide more of your code? Specifically where you use "LmiRuleScript.FlatPlanes()"

 

Many thanks,

Tobias

Tobias Orlow
Designated Support Specialist
Customer Success Organization
Linkedin: www.linkedin.com/in/tobiasorlow/