Autodesk Inventor Customization
- Start Article
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
using DLL VB 2010 MissingFie ldExceptio n - Inventor 2011 (Feld nicht gefunden)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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
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
Re: using DLL VB 2010 MissingFie ldExceptio n - Inventor 2011 (Feld nicht gefunden
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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
