Debugging Unclassified VB functions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am in the process of trying to replace some C++ Functions (soon to not be supported). I do not know how to debug my VB code while it is being used by ETO 2013. I keep getting the same error: Cannot match one or more arguments while calling Method: I_will_Find_Point. I don't know which argument Inventor/ETO/VB doesn't like.
Here's what I have
From Intent Code my function is called as:
Dim PointPlease As Point = (FindPoint(BeginningPt,Vector(0,1,0),ExistingPart))
FindPoint Function is defined as (shows up under Unclassified Functions):
Function
FindPoint(Starty As Point, Vicky As Vector, Parte As Part) As Point
Dim PartOccurrence As Any = gethostobject(Parte)
Return WorkingDLL.InventorFunctions.I_will_Find_Point(Starty, Vicky, PartOccurrence)
End Function
I_will_Find_Point is defined in the InventorFunctions Class in vb code As:
Public Shared Function I_will_Find_Point(StartingPoint As Point, Victor As UnitVector, Party As ComponentOccurrence) As Point
Dim DummyPoint As Point = Nothing
DummyPoint.X = 0
DummyPoint.Y = 0
DummyPoint.Z = 0
Return DummyPoint
End Function
I know this Function doesn't do anything, but my problem is with passing arguments from ETO to my dll. How do I Debug this so I can get it working? Any help is much appreciated. Thank you.