Hi
I have a big problem with an iLogic rule.
The rule create an automatic save of PDF..
The rule looks like this:
ThisDoc.Document.SaveAs(ThisDoc.ChangeExtension(".pdf"),True)
strFolder = "c:\PDF\" & ThisDoc.FileName(False)
On Error Resume Next
ThisDoc.Document.SaveAs(strFolder & (".pdf") , True)
If Err.Number <> 0 Then
MessageBox.Show("Can't be saved. PDF opened by another user", "PDF Error")
Else
MessageBox.Show("PDF is saved", "File Save")
End If
It work beautifully on my own machine, but the customer machine I have to install it on can’t trig the rule
I get this error on his machine:
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.Document.SaveAs(String FileName, Boolean SaveCopyAs)
at LmiRuleScript.Main()
at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
at Autodesk.iLogic.Exec.AppDomExec.ExecCodeInOtherDomain(AppDomain otherDomain, String assemName)
at e.a(String A_0)
My machine is Inventor 2011 Windows 7 x64, excel 2007
Customers machine Inventor 2010 Windows XP x64, excel 2010.. (The machine it doesn’t work on.)
I think it is somthing with the Constellation Excel 2010 and Inventor 2010 but i'm not sure..
Please help... Thanks!!
hello peter,
i dont know about ilogic rule, but i am sure that IV 2011 is not syncronised with office 2010 , u can only use office 2007,
Regards,
Walekar Dattatraya.
Did you ever find a solution to this problem? I encountered the same problem and was curious as to your fix or work around.