Pick a dimension with mouse click event on draft


I need to pick the dimension measure with Smart Dimension when the user click on it, what i've tried is pick the variable value on the click event, but i didn't found this in solid edge API, does anybody know how to do that?


Posted by: Marcelo Marques
Post date: 7/16/2012 9:36:14 AM


Re: Pick a dimension with mouse click event on draft

You can use the event like this (vb.net)


Dim WithEvents objCommand As SolidEdgeFramework.Command

Dim WithEvents objMouse As SolidEdgeFramework.Mouse



private sub test()

objApp = Marshal.GetActiveObject("SolidEdge.Application")

objCommand = objApp.CreateCommand(2)

objMouse = objCommand.Mouse



end sub


Private Sub objMouse_MouseClick(sButton As Short, sShift As Short, dX As Double, dY As Double, dZ As Double, pWindowDispatch As Object, lKeyPointType As Integer, pGraphicDispatch As Object) Handles objMouse.MouseClick


'pGraphicDispatch is your dimension


End Sub


Posted by: JR
Post date: 7/18/2012 7:51:02 AM