Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Vb.net add-in wait cursor

5 REPLIES 5
Reply
Message 1 of 6
AJK2010
1826 Views, 5 Replies

Vb.net add-in wait cursor

Can someone help me to show a wait-cursor in inventor?

I have a add-in without a form, and i want the cursor to change to the wait-cursor when my code is run.

Grz

kurt

5 REPLIES 5
Message 2 of 6
xiaodong_liang
in reply to: AJK2010

Message 3 of 6
AJK2010
in reply to: xiaodong_liang

Hi,

I saw that thead, but the person who wrote that tread didn’t find a solution. I have already contacted him.

Can’t you give us the code we need to program this. I've already looked at InteractionEvents.SetCursor.

But I can’t figure out how this works.

 

Grz,

Kurt Cardinaels

Message 4 of 6
xiaodong_liang
in reply to: AJK2010

Hi,

that guy just said he will try, but did not respond any more Can I assume he has solved it, but did not have time to get back to update? 🙂

anyway, the workflow to set cursor by InteractionEvents is: after you create InteractionEvents, call interactionEvents.SetCursor to load the built-in cursor type of Inventor, or the custom *.cur file. And start InteractionEvents.

I believe you have found the sample of InteractionEvents in API help doc. in case not, please just search by "Basic Selection Using Interaction Events API Sample".

But, I think this blog below may be of more helpful to you:
http://adndevblog.typepad.com/manufacturing/2012/05/how-to-set-custom-cursor-for-object-selection-us...

Message 5 of 6

It's not clear in which context you want to set the cursor, ie: during an Inventor interaction or a custom workflow of your add-in... It's pretty straightforward to manipulate the cursor, see following thread:

 

http://stackoverflow.com/questions/1568557/how-can-i-make-the-cursor-turn-to-the-wait-cursor

 

Otherwise the link from Xiaodong should be useful for an Interaction Event in Inventor.

 

Hope that helps,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Message 6 of 6

AJK2010 has indeed contacted me about this wait cursor problem. I didn't manage to get it working, but to be honest I didn't really try very hard. Because my code was running pretty long I decided to go with a simple wait form with a progress bar.

 

AJK2010, when you get this to work can you please post it in this topic? I would be very interested.

 

Best regards, Daniël

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report