Message 1 of 10
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've run into an odd bug in an automated ballooning tool I made. If a balloon gets attached to a body, which then becomes invisible the balloon can no longer get the attached entity.
The exact exception reads:
System.Runtime.InteropServices.COMException (0x80004005): Unspecified error (0x80004005 (E_FAIL))
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Object[] aArgs, Boolean[] aArgsIsByRef, Int32[] aArgsWrapperTypes, Type[] aArgsTypes, Type retType)
at Inventor.LeaderNode.get_AttachedEntity()
at ThisRule.Main() in rule: Rule3, in document 8275-SD05-_PANTRY-BAR.dwg:line 3
at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
at Autodesk.iLogic.Exec.AppDomExec.ExecCodeHere()
at Autodesk.iLogic.Exec.AppDomExec.ExecCodeInOtherDomain(AppDomain otherDomain, String assemName)
at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)
Test Rule:
For Each b As Balloon In ThisDrawing.ActiveSheet.Balloons.NativeEntity
Logger.Trace(b.Leader.AllNodes.Item(b.Leader.AllNodes.Count).AttachedEntity Is Nothing)
Next
But the main line is "Inventor.LeaderNode.get_AttachedEntity()"
The balloon exists, but is not visible to the user and is throwing an error instead of returning nothing. Does anyone know how to identify these Invisible Balloons?
Error occurs in my current Inventor build: 2025.2.1
Not sure if it is present in any other
Example Video:
Solved! Go to Solution.