• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Inventor Customization

    Reply
    Contributor
    THSULZER
    Posts: 15
    Registered: ‎10-26-2011

    using DLL VB 2010 MissingFieldException - Inventor 2011 (Feld nicht gefunden)

    87 Views, 1 Replies
    05-04-2012 01:39 AM

    Hello

    Following youll find the code and the error message . This I LoGIC rule I put in NOT using the assistent cause it did not work with it. Now the DLL only works if i comment the following lines out .

    "dlg.DIML = DIML" and  "BaseEnd = - dlg.DIML" . If I do this the DLL starts up and work perfectly just the parameters won't get transfered.

    Code:

     

    AddReference"PumpDb_1 (7).dll"

    SubMain()

    Parameter.UpdateAfterChange=True' automatische Aktualisierung
    MultiValue.UpdateAfterChange=True
    iLogicVb.UpdateWhenDone=True

    localTrigger=iTrigger0
    UsingdlgAsNewPumpDb_1.Dialog2
    dlg.DIML=DIML
    DimiAsInteger=dlg.ShowDialog()
    Ifi<>vbOKThen
    Return
    Else
    BaseEnd=-dlg.DIML
    EndIf
    EndUsing

    End Sub

     

     

    Error: 
    System.MissingFieldException: Feld nicht gefunden: "PumpDb_1.Dialog2.DIML".
      bei LmiRuleScript.Main()
      bei Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly​(Assembly assem)
      bei p.b(String A_0)


    I guess my VB.Net 2010 adjustments are OK . Or maybe not ?

    Is it only possible to use the assistent for such a dialog ?

     

    Thanks

    / Regards

    TH-SULZER

    ------------------
    Timo

    Please use plain text.
    Contributor
    THSULZER
    Posts: 15
    Registered: ‎10-26-2011

    Re: using DLL VB 2010 MissingFieldException - Inventor 2011 (Feld nicht gefunden

    05-10-2012 01:07 AM in reply to: THSULZER

    According a tutorial I added some Autodesk Variables to see what happens with the Rule Generator.

    Now it finds these Autodesk Varables but not the others . Anyone got an Idea ?

     

    Regards Timo

    Please use plain text.