.addin missing from CustomCommand SDK sample

.addin missing from CustomCommand SDK sample

tyler.warner
Advocate Advocate
347 Views
2 Replies
Message 1 of 3

.addin missing from CustomCommand SDK sample

tyler.warner
Advocate
Advocate

I would like to interact with CustomCommand sample that is included within the Inventor SDK samples. The Readme.txt says to copy the .dll & .addin but there is no .addin installed on my computer from the DeveloperTool.msi install.

 

I tried just creating a .addin file for it but it stays unloaded within the add-in manager. Tried changing the supported version within this file to be older but same result.

 

I'm using VS2022 & Inventor 2022.

 

C:\Users\Public\Documents\Autodesk\Inventor 2022\SDK\DeveloperTools\Samples\VCSharp.NET\AddIns\Custo...

 

Did this file properly install for anyone else or is anyone able to get the sample working?

If this solved your problem or answered your question, please click ACCEPT SOLUTION.
If this helped you, please click LIKE.
0 Likes
Accepted solutions (1)
348 Views
2 Replies
Replies (2)
Message 2 of 3

tyler.warner
Advocate
Advocate
Accepted solution

Made the .addin that works. This was for the C# sample.

<?xml version="1.0" encoding="utf-8"?>
     <!-- Type attribute is same as Type registry key (Standard, Translator, Plugin (Server only) -->
     <Addin Type="Standard">
     <ClassId>{140918FF-668A-435a-BD5E-57EF81CA5C5D}</ClassId>
     <ClientId>{140918FF-668A-435a-BD5E-57EF81CA5C5D}</ClientId>

     <!-- Both of the following fields should be translated. NO OTHER FIELDS SHOULD BE TRANSLATED! -->
     <DisplayName>CustomCommand</DisplayName>
     <Description>CustomCommand</Description>

     <!-- Assumes that CustomCommand.dll is underneath Inventor\bin -->
     <Assembly>CustomCommand.dll</Assembly>

     <SupportedSoftwareVersionGreaterThan>17..</SupportedSoftwareVersionGreaterThan>
     <LoadOnStartUp>1</LoadOnStartUp>
     <Hidden>0</Hidden>
</Addin>
If this solved your problem or answered your question, please click ACCEPT SOLUTION.
If this helped you, please click LIKE.
Message 3 of 3

JelteDeJong
Mentor
Mentor

You can use this .addin file text:

 

<?xml version="1.0" encoding="utf-8"?>
<Addin Type="Standard">
	<ClassId>{140918FF-668A-435a-BD5E-57EF81CA5C5D}</ClassId>
	<ClientId>{140918FF-668A-435a-BD5E-57EF81CA5C5D}</ClientId>
	<DisplayName>CustomCommand</DisplayName>
	<OSType>Win64</OSType>
	<LoadAutomatically>1</LoadAutomatically>
	<UserUnloadable>1</UserUnloadable>
	<Hidden>0</Hidden>
	<SupportedSoftwareVersionGreaterThan>19..</SupportedSoftwareVersionGreaterThan>
	<LoadBehavior>0</LoadBehavior>
	<DataVersion>1</DataVersion>
	<UserInterfaceVersion>36</UserInterfaceVersion>
	<LoadOnStartUp>1</LoadOnStartUp>

	<!-- The following elements are set by the add-in installation. -->
	<Description>CustomCommand example</Description>
	<Assembly>C:\Users\Public\Documents\Autodesk\Inventor 2022\SDK\DeveloperTools\Samples\VCSharp.NET\AddIns\CustomCommand\bin\Debug\CustomCommand.dll</Assembly>
</Addin>

 

place it in the folder:

%ALLUSERSPROFILE%\Autodesk\Inventor Addins\

 

You also need to change some project settings:

- you should set the startup application to Inventor

JelteDeJong_1-1668027904833.png

and uncheck the following

JelteDeJong_2-1668027995685.png

also, remove everything here:

JelteDeJong_3-1668028052248.png

 

Most of this information can also be in my tutorial about creating an addin.

 

 

 

 

 

 

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