Sketched symbol preview on mouse cursor

Sketched symbol preview on mouse cursor

Ralf_Krieg
Advisor Advisor
769 Views
5 Replies
Message 1 of 6

Sketched symbol preview on mouse cursor

Ralf_Krieg
Advisor
Advisor

Hello

 

Is it possible to get the symbol preview sticking on mouse cursor while my own insert sketched symbol command is active? Is this a special cursortype or how to realize this?


R. Krieg
RKW Solutions
www.rkw-solutions.com
0 Likes
770 Views
5 Replies
Replies (5)
Message 2 of 6

YuhanZhang
Autodesk
Autodesk

My suggestion here is to use ClientGraphics to create the sketched symbol preview to mimic the Inventor sketched symbol insert command.



If this solves the problem please click ACCEPT SOLUTION so other people can find it easily.



Rocky Zhang
Inventor API PD
Manufacturing Solutions
Autodesk, Inc.

0 Likes
Message 3 of 6

Ralf_Krieg
Advisor
Advisor

Hello

 

Thanks for reply. My suggestion was client graphics too, but I found no example on how to stick it on mouse cursor. Only to create it as kind of overlay to the drawing.


R. Krieg
RKW Solutions
www.rkw-solutions.com
0 Likes
Message 4 of 6

YuhanZhang
Autodesk
Autodesk

To make the client graphics 'stick' on mouse you can redraw it in the OnMouseMove event according to the mouse position.



If this solves the problem please click ACCEPT SOLUTION so other people can find it easily.



Rocky Zhang
Inventor API PD
Manufacturing Solutions
Autodesk, Inc.

0 Likes
Message 5 of 6

Ralf_Krieg
Advisor
Advisor

Hello

 

Didn't get ClientGraphics to work in acceptable way, but I found an alternative with a screenshot of my symbol used as a custom cursor.


R. Krieg
RKW Solutions
www.rkw-solutions.com
0 Likes
Message 6 of 6

msabotto
Contributor
Contributor

Hi, I'm try to do something similar here,
Could anyone help in showing how to obtain a ClientGraphics from a SketchedSymbolDefinition for previewing it please?

 

Any help is appreciated.

 

Thanks in Advance.

0 Likes