Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iLogic rule

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
579 Views, 3 Replies

iLogic rule

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!!

3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

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.

Message 3 of 4
Anonymous
in reply to: Anonymous

Did you ever find a solution to this problem? I encountered the same problem and was curious as to your fix or work around.

Message 4 of 4
skyngu
in reply to: Anonymous

Check if all functions in inventor 2011 are in 2010 too. 2011 is much better.
Autodesk Inventor Professional 2019

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report