Community
Navisworks API
Welcome to Autodesk’s Navisworks API Forums. Share your knowledge, ask questions, and explore popular Navisworks API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to change the cursor using API?

1 REPLY 1
Reply
Message 1 of 2
pollyanna23
553 Views, 1 Reply

How to change the cursor using API?

Hi,

 

I want to change the cursor type when using ToolPlugin. Is it possible? If yes, how can I do that?

 

Thanks!!

 

Anna

1 REPLY 1
Message 2 of 2

Hi,

 

override the GetCursor method, e.g.

 

// The ToolPlugin example.
[Plugin("ToolPluginTest", "ADSK")]
public class ToolPluginTest : ToolPlugin
{
  

    public override Cursor GetCursor(View view, KeyModifiers modifier)
    {
        return Cursor.Measure;
        //return base.GetCursor(view, modifier);
    }

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report