How to write user defined command in c# for inventor

How to write user defined command in c# for inventor

Anonymous
Not applicable
761 Views
2 Replies
Message 1 of 3

How to write user defined command in c# for inventor

Anonymous
Not applicable

In  Autocad user can add c# code for user defined commands which user can write in command prompts and then call function of C# say  [CommandMethod("DrawTable")]  function(){}, How can i write same user defined command function for inventor which will run when user enter command "DrawTable" in inventor command prompts and from c# the defined method will run.

 

I have to draw table on drawing on user run command  for inventor, can you send me some example to how to draw table on drawing on user enter command for inventor using c#. Also how to trigger command in inventor.

0 Likes
762 Views
2 Replies
Replies (2)
Message 2 of 3

YuhanZhang
Autodesk
Autodesk

In Inventor SDK (C:\Users\Public\Documents\Autodesk\Inventor 2019\SDK\) you can install the DeveloperTools.msi and then find the sample project CustomCommand(C:\Users\Public\Documents\Autodesk\Inventor 2019\SDK\DeveloperTools\Samples\VCSharp.NET\AddIns\CustomCommand), you can modify if for your use.

 

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 3

Anonymous
Not applicable

Thank you for your solution ,

I have to draw table on drawing on user run command  for inventor, can you send me some example to how to draw table on drawing on user enter command for inventor using c#. Also how to trigger command in inventor.

 

For ReferenceFor Referenceplease check the attachment for your reference.

0 Likes