Addin with a command

Addin with a command

Anonymous
Not applicable
571 Views
4 Replies
Message 1 of 5

Addin with a command

Anonymous
Not applicable

Hello Everyone,

 

Does any one know how to create a new command and some functionality when the command is called.

If there is any sample code that would be great

 

Thank You,

Sundeep

0 Likes
572 Views
4 Replies
Replies (4)
Message 2 of 5

YuhanZhang
Autodesk
Autodesk

There are samples in Inventor SDK after installing DeveloperTools.msi.

 

You can find DeveloperTools.msi with below paths:

 

    Vista/Win7:  C:\Users\Public\Documents\Autodesk\Inventor 2011\SDK\DeveloperTools.msi

    Win XP:        C:\Program Files\Autodesk\Inventor 2011\SDK\DeveloperTools.msi

 

A recommended sample is the SimpleAddIn which has four languages. Hope this helps!



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 5

Anonymous
Not applicable

Hi Rocky,

 

Thanks for the reply,

I think i know what your talking about,

What is what is:

1. Create a command for ex: "MyCmd"

2. Add that command to one of the tool bars or to mosue right click

3. On selecting the command how to i respond to that event with my own code.

 

Is there a sample that has alltogether or a one sample to create a custom command in the Sample Codes or anywhere else?

 

Thanks in advance,

Sundeep

0 Likes
Message 4 of 5

YuhanZhang
Autodesk
Autodesk

Hi Sundeep,

 

There is another sample \DeveloperTools\Samples\VC++\AddIns\CustomUI, that I think it is what you want.



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 5

Anonymous
Not applicable

Hi Rocky,

 

Thanks a lot.. this is exactly what i was looking for.

 

-Sundeep

0 Likes