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