AutoCAD Inventor :: Getting An Addin To Load Without Registry
Sep 22, 2011how to load an addin without using the registry for Inventor 2012? Failing that, I just can't seem to get it to work.
View 1 Replieshow to load an addin without using the registry for Inventor 2012? Failing that, I just can't seem to get it to work.
View 1 RepliesI have having difficulty getting any addins to load at the moment and am totally stumped as to what the problem is. I have even created a very simple addin from the (C#) template, compiled and registered it and it still will not load up. I get the addin to appear in the Inventor Add-ins dialog ok but it will not load for some reason. I have tried generating various .Net versions 2.0, 3.0 & 3.5 all produce the same result. I have also tried to debug the add-in by getting Visual Studio to launch Inventor but it does not even appear to be loading the add-in. I have dug out some work I did months ago and tried that but it does not work either. Is there a log in Inventor?
I am using C# in Visual Studio 2008 Pro & Inventor 2011.
What the inventor addin load sequence is. I want first load addin and then load another addin what i create it.
View 1 Replies View RelatedI have an addin that needs to load when the autocad loads or when user type the command. It works fine with autocad 2012 but does not work with 2013. The addin dll is located in %appdata%autodeskApplicationPlugins. If I use Netload command to load the dll in 2013 and it works fine. But I need that addin to load either when user type the command or when autocad start up. I have checked the [URL]
View 9 Replies View RelatedI want to create a .reg file to load automatically a dll.I would like to generate this file from Autocad (using a subroutine). The entries are:
[HKEY_CURRENT_USERSoftwareAutodeskAutoCADR18.1ACAD-9002:40AApplicationsSIMNET]
"DESCRIPTION"="Carga el archivo SIM.DLL"
"LOADCTRLS"=dword:00000002
"LOADER"="E:\acaddlls\SIM.dll"
"MANAGED"=dword:00000001
And I need to obtain from autocad next path " AutodeskAutoCADR18.1ACAD-9002:40A" (is different for any versión of autocad).
Getting this error when trying to etransmit a file. E-Transmit failed to load transmittal component: incorrect registry entry
View 8 Replies View RelatedHow to call a addin from vba ? The addin is existing, source code not available :-(
My only idea is to somehow activate the button on the ribbon. Made a dump with the Print Ribbon routine from the online API help:
Tab: CDLIGHT, CDLIGHT.Part.Tab
Panel: iToolbox, CDLIGHT.iToolbox.Part.ToolBar
Below is a link to a github repo that has a code example showing how to embed an IronPython engine inside a C# addin. It is the same as the "Simple AddIn" that comes with the SDK, only with the logic part of the addin factored out into IronPython. I could never find anything on using IronPython with Inventor so I'm posting this for any others that might be interested.
The main reason for doing this is to speed up development time. Edits related to the python code do not require the cycle of shutting down Inventor, compiling, restarting etc. More detail is in the readme. URL....
I followed exactly step-by-step showing in the program. After compile the DLL register the registry, run IV, I couldn't see the AddIn SampleToolbar in the Panel bar.
View 9 Replies View RelatedI would like to make an Inventor AddIn with commands (functions) that can be called from other standalone applications. I have tried to create a COM interface for my AddIn, and that works with rather small effort, but I think I have heard that it should be possible to do this without the COM interface. I would like to avoid COM if possible. if I need to do anything special in the AddIn to make the function visible and how I on client side calls the function.
View 1 Replies View Relatedcreating an Inventor addin that uses WPF (instead of WinForms). We are trying it with Inventor 2010 and are running into problems.
View 2 Replies View RelatedI have an addin which displays a form, then when I click a button operations are launched. The form is no modal, so I display it, select objects, apply, select objects, apply,... then close the form with another button (form.close).
All functions, but only on the first opened file : I open the file, use the addin, close the form. I open another file, the addin is always loaded, but when I click on the icon to display the form nothing happens... I have to unload the addin and reload it.
Windows 7 64bit
Inventor 2010
Visual Studio Professional 2010
I have an Addin with several pieces of functionality that I have been working on for over a year now and have had no problems with it loading. Yesterday I was working on a bug in a function and when I set a break point it was not breaking in the correct location. Possably some miss match between the source and .pdb files. I tried a clean build but still could not get the break point to be correctly aligned with my source code.
I tried to unregister and re-register the Addin with regasm but no luck. I then decided to search the registry for the name of my Addin and was supprized to find thousnads of registry entries. I then decided to clean my registry of all occurances of the Addin name. After removing all occurances of my Addin from the registry my Addin would not load.
I tried putting a message box in the first line of the Activate sub but it never executes. I made the assumption that it was a problem with the registry and changed the GUID value. When I did a rebuild I got the following error:
Error 1 The "UnregisterAssembly" task failed unexpectedly.
System.Runtime.InteropServices.COMException (0x80030002): could not be found. (Exception from HRESULT: 0x80030002 (STG_E_FILENOTFOUND))
at Microsoft.Build.Tasks.NativeMethods.UnregisterTypeLib(Guid& guid, Int16 wMajorVerNum, Int16 wMinorVerNum, Int32 lcid, SYSKIND syskind)
at Microsoft.Build.Tasks.UnregisterAssembly.Unregister(String assemblyPath, String typeLibPath)
at Microsoft.Build.Tasks.UnregisterAssembly.Execute()
at Microsoft.Build.Framework.ITask.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult) AnthroAddIn
I ran the build again and did not get the error.This Addin is loaded on every CAD workstation in the company using an install program written with the Inno Setup Compiler. I installed the Addin using the installer and the Addin still will not load on my machine.
What is the best approch to debugging an Addin that will not load?When is it necessary to re-register your Addin using regasm?Is it possable that this problem is being caused a problem with the registry?I have read a number of posts regarding problems with Addin's not loading but have not found anything simmilar to this.
I've used vb.net to write two separate addins. I was wondering if there is a way to pass a variable from one addin to another similar to the way shared variables are passed from rule to rule in iLogic.
View 2 Replies View RelatedI am looking for any example to create an addin compatible between versions of inventor and also compatible win between 32 and 64bit.
Today I know create all separate. Thereby generating 4 different files.
Example:
Addin2013_32x.dll
Addin2013_64x.dll
Addin2014_32x.dll
Addin2014_64x.dll
show me an event handler (or whatever is needed) for bailing out of an AddIn? I'm using VB.net. The end users would prefer to use the ESCAPE key for this.
View 5 Replies View RelatedUsing Inventor 2014 and Vault Basic 2014. It was working this morning but now when Invnetor is opened it automatically logs into Vault and says it is successful but the open from vault icon is greyed out. Similarly when opening a drawing from the vault it used to automatically run and open inventor but now seems to lack the connection. Even when manually opening a drawing that is in the vault by downloading it from the browser and then opening in inventor there is no Vault tab on the browser and all Vault commands except "log out" are greyed out. I think it has something to do with the add-in as well as the Vault group.
View 2 Replies View RelatedWe create a greate deal of DLL add ins for Inventor using Microsoft VB.NET. The code security is very important to us. I hear certain program such " Lutz Roeder's Reflector " can reverse engineer the DLL assemblies and get the actual code from it. This would cause concern when we deploy the DLL to various users.
So, is it true that DLL from VB.NET (or C# and C++) is so vulnerable from reverse engineering? if yes, what is any practice to add security to it?
I have an issue where an addin loads once the first time Inventor is opened. If the addin is unloaded and reloaded via the Addins dialog and no documents are open it loads once. If the addin is reloaded while a file is open is reloads twice.
I came to the conclusion it is loading multiple times because the it seems to go through the Activation method of the addin twice. When is the Activation method called during loading an addin?
Inventor Addins
FlowTools for Inventor
ilxButton Panel (Buttons for iLogic Rules)
I cannot debug an addin for Inventor 2012 from Visual Studio 2010 professional on Win7 64.
I started with a new “Autodesk Inventor Addin” project
Set debug “Start external program” to inventor
Added a form and called it from StandardAddInServer.Activate sub
IF I debug from here inventor starts but form does not open. Addin not loaded.
Move *.addin file to Inventor addins
Now when running debug, form opens but breakpoints do not work. VS reports no errors on build.
Is using nullptr (instead of NULL) valid in an Inventor Addin?
(I'm trying to drag myself into the second decade of the 21st century)
I can get property through API such as Density,LinearExpansion,YieldStrength...
In inventor 2013 it is added additional fields such as Description,Source etc.
is it posiible to adress to theese fields through API?
Is it possible to use the DXF Translator Addin to export a sketch?
I've managed to export a sketch using the DataIO mechanism, but I need to be able to export the DXF in an older file version than 2010. Is there any way to specifiy the version to export to using the DataIO mechanism?
In my quest to remove any unnecessary clicks I want to be able to set the default location when you press Save, Save As, Demote or 'Save and replace component'.
Default it will show up a file save as dialogue starting from my workspace. Or my last saved location. I believe this is stored in the registry and hope to Intelligent adjust these registry value's using VBA.
When diving into the registry I believe I found the right keys here:
HKEY_CURRENT_USERSoftwareAutodeskInventorRegistryVersion17.0SystemPreferencesFileDialog
Problem 1:
- if i change them manually I don't find a difference in Inventor (If I change other things in the registry, this has an effect)
Problem 2:
how do I set them automatic using VBA? I've got the strings sFileLocation & sFileName true the rest of my code. So I would need to do something like:
Dim oRegFileSave as Regisry entryset oRegFileSave as
HKEY_CURRENT_USERSoftwareAutodeskInventorRegistryVersion17.0SystemPreferencesFileDialogLastFileSaveDialogoRegFileSave = sFileLocation & "/" & sFileName
For your information, these are the registry entry's I believe I need to adjust:
i am wanting to use the apprentice server in another program. The apprentice server is 'normally' found in the registry under this key:
ComputerHKEY_CLASSES_ROOTCLSIDC343ED84-A129-11d3-B799-0060B0F159EF
The problem is, that if you uninstall all things autodesk, and run a registry cleaner (or delete that key by hand), and then install only inventor view 2013 and run inventor view 2013, it will *not* create that key in the registry.
This makes it impossible to run the apprentice thru the COM mechanism, even your SDK samples will not work.
(i suspect (but havent proved), the bigger problem is on a brand new machine, install and run only inventor view 2013 , you still can't use the apprentice server.)
The 'workaround' is to install and run inventor view 2012. running inventor view 2012 will create the registry key. After that, running inventor view 2013 will happily update the key's value to the appropriate place.
(C:Program FilesAutodeskInventor View 2013BinRxApprenticeServer.dll)
so try this :
1) run regedit and delete the key and all its subkeys
ComputerHKEY_CLASSES_ROOTCLSIDC343ED84-A129-11d3-B799-0060B0F159EF
2) optionally install inventor view 2013 ('as administrator' or not doesnt matter).
2) run inventor view 2013 ('as administrator' or not doesnt matter). exit it
3) run regedit. the key is not there still. you won't be able to run any SDK samples or get an apprentice server using the following 'basic'
Set ApprenticeServer = New ApprenticeServerComponent
i'm on windows7, x64. (iv2013 is: build 126, Release: 2013 RTM)
is a bug in 'inventor view 2013', or is that intended for some strange reason?
I'd like to make it so that a user may add a button for my addin by only having to modify an xml entry.
None of the values (name, descrip, tooltip) are null, and reading from the xml is working properly. Each internal name is unique. Why this code would result in an error? The error message is attached.
If there's a known way to dynamically add buttons(in a loop), I'd be happy to use an established method as well.
Element[] QueryArray = query.ToArray();foreach (XElement item in QueryArray){string name = item.Attribute("Name").Value;string descrip = item.Attribute("Description").Value;string tooltip = item.Attribute("Tooltip").Value;tempButton = null;tempButton = oControlDefinitions.AddButtonDefinition(name, name, CommandTypesEnum.kEditMaskCmdType, m_AddinClientID, descrip, tooltip, Type.Missing, Type.Missing);oStandardsLinks.CommandControls.AddButton(tempButton);}
Win7 x64 - 16gb ram
i7 3610qm
FirePro M4000
Inventor 2013
ETO 6.1
I changed the target framework for my project from .NET Framework 2.0 to 4.0, and also changed the Inventor.exe.config file to read
<supportedRuntime version="v4.0"/>
Now when I debug the ribbon tab that I am creating is nowhere to be found, but if i change back to 2.0 and debug, the ribbon tab is back.
I have been trying to convert a working(mostly) addin to dockablewindow. I found one (and only one) sample in c# (wich is what i am using). I finnally got it to show up as a dockable window but when the user presses the "X" on the window it hides, how do you get it back or just let the addin know that the window/form has been closed so that when the user pressed the ribbon button that spawned it can just show it or create a new one?
I have found vary lilttle on dockable windows on Google, Bing...
Have a problem of users using files in their local workspace instead of getting the latest files from Vault?
This is an Inventor question because my next step will be to develop an Inventor addin which deletes files from a user's local workspace when they check the files in.
Win7 x64 - 16gb ram
i7 3610qm
FirePro M4000
Inventor 2013
ETO 6.1
I would like to create an addin in VS2010 & IN2012. How I could able to do this? I have started with "simpleAddin". But, while building I could able to see the following error.
The same error for all Addins.
Error 1 The command "mt.exe -manifest "E:Program FilesAutodeskInventor 2012SDKDeveloperToolsSamplesVB.NETAddInsSimpleAddInMy ProjectSimpleAddIn.manifest" -outputresource:"E:Program FilesAutodeskInventor 2012SDKDeveloperToolsSamplesVB.NETAddInsSimpleAddIninSimpleAddIn.dll";#2
" exited with code 9009. SimpleAddIn
I have an addin which has an icon for a button. In Inventor 2012 it displays fine. In Inventor 2013 the icon appears to be enlarged by about 4x, and only the top left corner of the icon is visible. The api clearly states that Inventor will scale the image to size.
This is the C# code I'm using to load the icon. The icon is in my resources file.
object LookupIcon = Microsoft.VisualBasic.Compatibility.VB6.Support.IconToIPicture( InvAddIn.Properties.Resources.Lookup_Icon);
Win7 x64 - 16gb ram
i7 3610qm
FirePro M4000
Inventor 2013
ETO 6.1