Ilogic error rebuild all

Ilogic error rebuild all

Sophie.Cagnie8DTNQ
Explorer Explorer
677 Views
1 Reply
Message 1 of 2

Ilogic error rebuild all

Sophie.Cagnie8DTNQ
Explorer
Explorer

Hi

 

I'm having problems with this:

I made a rule including only this line:

ThisApplication.ActiveDocument.Rebuild()

 When I run this Rule I get the following error:

 

Error in rule: Rule19, in document: 03543.iam

Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))

 

System.Runtime.InteropServices.COMException (0x80004005): Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at Inventor._DocumentClass.Rebuild()
at ThisRule.Main()
at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)

 

 

Can somebody explain where this error comes from?

I used this rule because I don't want to have to click the rebuild all button all the time.

 

Thanks

0 Likes
678 Views
1 Reply
Reply (1)
Message 2 of 2

chandra.shekar.g
Autodesk Support
Autodesk Support

@Sophie.Cagnie8DTNQ,

 

Please provide non confidential assembly to check the iLogic code.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes