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)
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.
just started using Edge Animate. I have some experience with Flash and After Effect so the layout is pretty familiar to me. I have no background in coding so I am very happy that it generates codes for me.
My goal is to make a simple html5 site with links / embedded videos to my contents (500 and vimeo). I copied some codes used for Youtube embedding, sub'd the url with vimeo url, and it worked fine. I used a "play video" button on the main page to trigger loading the video page (see my code below).
It worked great the first time I clicked the button and went to the video page. However, upon returning to the main page, and click the "play video" button again, a duplicate copy of the video is loaded right below the video loaded upon first click. This occurs for as many times as I click the play video button.
From the image above you can see that "jquery" loaded twice @ 91kb = 181kbedge 1.5 loaded twice @ 102kb = 204kb aswell as the edge and edge actions files loaded twice and if i boot strap comps together the images are loaded multiple times aswell
A drawing that is in Vault, it asks if you want to check it out, and if you say no (like if you just need to print it), it opens it then asks you again if you want to check it out? Did it not get the hint the first time?
In testing my latest automation project, I've found that I can't save copies of a part multiple times (after deleteing the files off the disk) unless I close out of the top level assembly document, and reopen it. I used Process Monitor and determined that Inventor is trying to save to an existing file instead of creating a new file.
I open any kind of file or when I create a new file it takes Photoshop at least 30 secs to open or create the file. I also have PS installed on another computer (with the same specs) where I don't have this problem.
why it takes PS so long to open/create files? I'm using a laptop with a Core 2 Duo processor and 2GB of DDR2 ram.
very long image loading times when loading an image into CS6 from LR4.When I right click an image in LR4 and select edit-in CS6, CS6 immediately starts up, and loads. But after CS6 is fully up on my screen, I get a spinning ball first, then spinning white/grey circles, until my selected image appears within CS6.
I am operatinng with an iMac 27 2.8G with 8G of memory and using SL 10.6.8 I have about 300G of free space on my HDD.
I am currently having a little problem working with Photoshop: I am designing posters and other prints for a festival here, and we usually print the largest posters on A1 intl paper full color. That means working in a huge 300dpi file with quite a lot of layers.
The issue I'm having trouble with concerns the loading and saving of the files (the biggest ones are around 1.1GigaByte). Simply loading the file into PS takes over 5 minutes, slowing down my computer drastically. Saving the file in a .psd format takes even longer, over 10 minutes sometimes.
I doubt this is an issue with the computer, as it has reasonable specs and is only a few months old. So how to reduce the file size of these .psds and thereby optimize their loading time. Because working like this is extremely time consuming and unproductive...
I've had this problem since switching over to Premiere, and continue to have it since upgrading from CS6 to CC. I can't believe this is actually how Premiere is supposed to work. It's a global thing, not specific to a single project. But I'll use my current project as an example:
I have about 4 hours of media, mostly P2 Avc-Intra, with some R3D as well. Total number of media clips: around 2600.Every time I open the project, it takes a thoroughly horrific amount of time for the media to finish loading (as evidenced by the "Loaded" status message at the bottom of the screen, and the "Media Pending" screen display on still-pending clips). On this particular project, for example, it takes 12 minutes for the media to finish loading. It doesn't take many crashes or reboots per day before the re-loading process eats up a significant chunk of my billable hours.
I've tried having the media cache in the internal drive/Adobe/Common directory, and I've deleted that and set the media cache for the external Thunderbolt media RAID. Same results either way.
System specs: OS 10.7.5 iMac 2.7 GHz Core i5 20 GB RAM P Pro 7.1.0 (though, as I said, it has been like this in CS6 as well)RADEON 6770M
Hardware Mercury acceleration is not an option (grayed out), so that's turned off.Results are the same regardless of whether I have the RED Rocket card connected.
I have this script that basically makes a shape expand by adding an outline, conveting the outline to an object, and then welding the whole thing together.
I have the script set to execute with hotkey ctrl+numpad+
The odd thing is, when I run it once, it seems to work fine and only one object is left, but when I hold down ctrl and press numoad+ over and over again, it seems to produce a new copy of the object everytime.
I'm not sure why this is happening, but I need to get it to stop.
Sub Expand() EventsEnabled = False 'Dim vars Dim c1 As New Color Dim OrigSelection As ShapeRange Dim OrigColor As Shape Dim width1 As Double Dim height1 As Double Dim minSize As Double Dim Thickness As Double 'copy color of current selection Set OrigColor = ActiveShape If OrigColor Is Nothing Then Exit Sub If OrigColor.Fill.Type <> cdrUniformFill Then Exit Sub c1.CopyAssign OrigColor.Fill.UniformColor 'get thickness to increase by Set OrigSelection = ActiveSelectionRange OrigSelection.GetSize width1, height1 If width1 <= height1 Then minSize = width1 If width1 > height1 Then minSize = height1 Thickness = minSize * 0.035 OrigSelection.SetOutlineProperties Color:=CreateRGBColor(0, 0, 0) OrigSelection.SetOutlineProperties Thickness, ScaleWithShape:=True 'weld Dim s1 As Shape Set s1 = OrigSelection(1).Outline.ConvertToObject Dim s2 As Shape Set s2 = s1.Weld(OrigSelection(1), True, True) 'auto reduce 's2.Curve.Nodes.All.AutoReduce 0.001 's2.Fill.ApplyUniformFill c1 'delete remnants OrigSelection.Delete s1.Delete 'OrigColor.Delete EventsEnabled = TrueEnd Sub
I'm using Autodesk Map 3D 2006, it's a new install. I am trying to import an ESRI .shp file with the object data, but have only been able to successfully import it once. When I try again (even after restarting the program), I keep getting 0 objects processed and no linework imported, even with new drawings. I also got 2 error messages at one point: 1900 - about having coincident points and a can't transform object error.
I have a SelectionAdded event handler that reacts three times when selecing a single block and once when deselecting it.
If there are two blocks in the drawing but only selected one it reacts 5 or 6 times.
And it reacts every time I pass the mouse over the selected block.
Is there any way to sidestep the events in the handler so that AutoCAD doesn't grind to a halt if I have multiple blocks in the drawing. And decide to move my mouse over all of them?
Trying to find out how to copy an object multiple times in a curve. I've used microstation and it does it easily and just wandering is AC has the same type funtion without going throught 6-8 steps for each copy.
I am trying to copy a layout tab inside an AutoCad file into a sheet set I created. All folders and sub folders are created and setup. What I need is to be able to copy the same layout under different sub folders inside sheet set manager.
To explain this better, I have a sheets set with all different departments inside our company (ex. CNC Dept., Bending, Machining, Welding, etc.). Some drawings have information for CNC, Welding and bending dept. Therefore I need to be able to copy the same drawing layout multiple times under each dept folder.
How can I do this? It only allow me to drag and copy the file once. I wont be able to drag it again under another folder.
Using PS CS6 on WIndows 7 64. All drivers updated. When I set 5 copies in the print menu, with either PSDs, TIFFs, or JPGs, PS sends the same job five times rather than telling the printer to just make 5 copies.
This happens when using either the color laser or Epson R3000. This does NOT happen when using non-CS6 products. On a 25 print run, this takes an abnormally long time.What I HAVE found is that PS is NOT passing the information to the printer. In other words, even though I set PS to multiple copies, when I click printer options the number of copies has not been passed to the driver.
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.
I 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.
I 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.
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.
I 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.
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.
Is there a way to flip face multiple times? I have lots of composite window in the external wall of my model which someone has placed the wrong way round, at the moment I’m just flipping one window at a time.
I want to put multiple people in the scene. So I'm trying to import people.fbx into the scene. It succeed at the first time. I grouped the meshes and skeleton and name it in name people1. But I can't import the same people.fbx again. Is there any way to import one .fbx into the scene for multiple times?