Reply

Command MouseClick pGraphicDispatch is null

[ Edited ]

Hi guys,

 

I'm able to create/start a command. I map my MouseClick event before starting the command.

If I create a new part, draw some 2d lines in it, start my command and click on a line, my pGraphicDispatch will contain the Line2d object.

 

However, as soon as I do a Protrusion on my created shape, in my mouse MouseClick event, the pGraphicDispatch is always null. Why is that ? I want to retrieve the plane/face/surface/edge that was clicked.

 

Thank you for your help !

 

 

Posted by: David Shooner
Post date: 2/1/2012 4:21:43 AM

1 REPLY

RE: Command MouseClick pGraphicDispatch is null

[ Edited ]

Well,

 

it seems you must set the mouse properties (ie: WindowType, ScaleMode, EnableDrage, EnableMove and LocateMode) before calling the clear and add locate filter.

I also changed my locate mode to quickpick.

 

Posted by: David Shooner
Post date: 2/1/2012 7:06:20 AM