Debugging Unclassified VB functions

Debugging Unclassified VB functions

Bull_Frog_5299
Contributor Contributor
461 Views
2 Replies
Message 1 of 3

Debugging Unclassified VB functions

Bull_Frog_5299
Contributor
Contributor

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.

0 Likes
462 Views
2 Replies
Replies (2)
Message 2 of 3

nmunro
Collaborator
Collaborator

UnitVector and Vector are not the same object type, the likely cause of the message.

 

Neil

 

        


https://c3mcad.com

0 Likes
Message 3 of 3

Bull_Frog_5299
Contributor
Contributor

changed UnitVector to Vector on VB side.  still getting same error.

0 Likes