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

Hi, thank you very much for reply and screen.

 

I still get an error :

inventor4578_0-1719810980256.png

 

System.Runtime.InteropServices.COMException (0x80004005): Erreur non spécifiée (Exception from HRESULT: 0x80004005 (E_FAIL))
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at Inventor.ComponentOccurrence.get_SubOccurrences()
at ThisRule.TraverseAssembly(ComponentOccurrences Occurrences, Int32 Level, String Name, String TemplateName, String scale, Double SpacingViews) in external rule: GEN DRAWING:line 28
at ThisRule.TraverseAssembly(ComponentOccurrences Occurrences, Int32 Level, String Name, String TemplateName, String scale, Double SpacingViews) in external rule: GEN DRAWING:line 28
at ThisRule.Main() in external rule: GEN DRAWING:line 9
at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)

 

If i remove the line "Dim AssyName As String = "framework:1" 'name of the SubAssy" it's work partially (i get error line 27 after 3/4 subassembly creating).

 

I double check the assyname, the template path ect. I don't know from what it come.

 

Thank you again