04-16-2020
01:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
04-16-2020
01:54 AM
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/
Designated Support Specialist
Customer Success Organization
Linkedin: www.linkedin.com/in/tobiasorlow/