Promtext on cursor when move mouse over a component

Promtext on cursor when move mouse over a component

ngocson8335
Advocate Advocate
938 Views
3 Replies
Message 1 of 4

Promtext on cursor when move mouse over a component

ngocson8335
Advocate
Advocate

Hello Everyone,

 

I would like to show a dynamic text when moving the cursor over a component in the assembly context.

 

NS95_210130_nr31.png

 

Please help me in this case.

 

Thank you.

Ngoc Son
Autodesk User
0 Likes
Accepted solutions (1)
939 Views
3 Replies
Replies (3)
Message 2 of 4

A.Acheson
Mentor
Mentor

@ngocson8335 

Are you looking to do something specific with the text, is it for on screen labelling? Would the face attribute sets work for the text?  Is it to work with embossing at the part level? For a rule to be active and highlight the text you might be looking at Add-in territory. There could be other methods based on the end goal.

 

https://forums.autodesk.com/t5/inventor-customization/ilogic-pick-function/td-p/7550908

 

 

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 3 of 4

_dscholtes_
Advocate
Advocate

I don't know if there's an easier solution, but in VBA:

  • To show text, you could take a look at Client Graphics. It provides the ability to dynamically display custom
    graphics in the Inventor modeling window. These graphics include text. 
  • To have Inventor react to mouse hover / over events, you could take a look at Interaction Events. It provides the ability to obtain input from the user. This includes selecting objects, various mouse inputs, and using the keyboard.

I have combined both subjects in a macro which displays a center line (client graphics) when a user hovers on/over a curved face (selection event).


Autodesk's online help system has an article on Client Graphics, you can find it here: https://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-9589673E-C341-4A33-A984-116158D11D7F 
And for Interaction Events, you can find it here: https://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-BC017BE0-CF5F-4CF3-8181-A2FB52B1D0F8 

0 Likes
Message 4 of 4

JelteDeJong
Mentor
Mentor
Accepted solution

for the text you can have a look at my blog. i did write a post about adding labels to faces. you can use that code then you only need to figure out how to show the text when hovering over a face.

Label

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com