How can I get MinimumDistance and pick points?

How can I get the minimum distance inside Asm from (different) Parts,

and pick some endpoint or midpoints !??

 

Like internal edge funktion, but getting the values back !! ??

 

I can pick some elements with this code from inside part,

tried it with ASM but i only get igreference and ??? then ...

 

[code]

...

g_SEcommand = m_SEApplication.CreateCommand(SolidEdgeConstants.seCmdFlag.seNoDeactivate)

g_SEMouseEvents = g_SEcommand.Mouse

g_SEcommand.Start()

g_SEMouseEvents.LocateMode = SolidEdgeConstants.seLocateModes.seLocateSimple

g_SEMouseEvents.DynamicsMode = SolidEdgeConstants.seDynamicsModes.seDynamicsOff

...

Private Sub g_SEMouseEvents_Mousedown(ByVal sButton As Short, ByVal sShift As Short, ByVal dX As Double, ByVal dY As Double, ByVal dZ As Double, ByVal pWindowDispatch As Object, ByVal IKeyPointType As Integer, ByVal pGraphicDispatch As Object) _

Handles g_SEMouseEvents.MouseDown

 

Dim myEdge As SolidEdgeGeometry.Edge

 

If Not (pGraphicDispatch Is Nothing) Then

 

myEdge = pGraphicDispatch

 

End If

 

End Sub

[/code]

 

I suppose I need some kind of point for the

method MinimumDistance ?

[code]

Dim Distance As Double

Dim Point1(2) As Double

Dim Point2(2) As Double

 

g_SePart.MinimumDistance(p1, p2, Distance, Point1, Point2)

[/code]

 

Posted by: Linus Hechinger
Post date: 7/5/2013 7:30:56 AM