Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
ngocson8335
797 Views, 3 Replies

Promtext on cursor when move mouse over a component

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
A.Acheson
in reply to: ngocson8335

@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
_dscholtes_
in reply to: A.Acheson

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 

JelteDeJong
in reply to: _dscholtes_

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