Select (Pick) by mouse

Valued Contributor
Valued Contributor

Hi,

 

I'm trying to make a program in an assembly document.

 

I know how to make axial and planar assembles, but I need to select the occurrences (pieces) by mouse and I don't know how to make this.

 

I've been read about this and I am very lost. I don't know if I have to use the command "SelectSet" or if I have to use the procedure "MouseClick". I've tried both, but doesn't work.

 

I've also examples programs like "nSidePolygon", but I don't know to make the program yet.

 

Someone can help me, please.

 

Thanks very much.

 

 

Posted by: Javier C
Post date: 12/9/2011 3:59:57 AM

3 REPLIES

RE: Select (Pick) by mouse

Valued Contributor
Valued Contributor

Hi,

 

I've learn to select object by mouse with mouseclick method, but I only can do it in 2D (draft, etc), I can´t do in assemblies.

 

Please, some of help please.

 

Thanks.

 

Posted by: Javier C
Post date: 12/25/2011 11:22:55 PM

RE: Select (Pick) by mouse

Valued Contributor
Valued Contributor

Hi Javier,

 

you can get the expample nSidePolygon, but set the Filter in Load to

objMouse.AddToLocateFilter(SolidEdgeConstants.seLocateFilterConstants.seLocateBody)

and by

Private Sub objMouse_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 lKeyPointType As Integer, ByVal pGraphicDispatch As Object) Handles objMouse.MouseDown

 

you will get the occurrence or reference in pGraphicDispatch

 

 

Posted by: JR
Post date: 12/27/2011 7:18:06 PM

RE: Select (Pick) by mouse

Valued Contributor
Valued Contributor

Thanks very much JR, I'm going to try this now, I hope it works!!

 

Thanks!

 

Posted by: Javier C
Post date: 12/28/2011 11:41:18 PM