Showing results for 
Search instead for 
Did you mean: 

How can I get MinimumDistance and pick points?

Valued Contributor
Valued Contributor

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




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

g_SEMouseEvents = g_SEcommand.Mouse


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



I suppose I need some kind of point for the

method MinimumDistance ?


Dim Distance As Double

Dim Point1(2) As Double

Dim Point2(2) As Double


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



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