Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1 REPLY 1
Reply
Message 1 of 2
TIMOHART
340 Views, 1 Reply

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

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

ETO 2014 R2
HP Z420 / Win7 X64
16GB RAM
Nvidia Quadro K4000

1 REPLY 1
Message 2 of 2
TIMOHART
in reply to: TIMOHART

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

ETO 2014 R2
HP Z420 / Win7 X64
16GB RAM
Nvidia Quadro K4000

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

Post to forums  

Autodesk Design & Make Report