I have a rule controlled .idw with several rules that call each other and various API macros with views and partslists that all have their own rules.
I want the drawing to close itself without saving the changes after it's done executing all of its code (the end product is written to an excel sheet). Everything works beautiful, and the drawing does close itself like it's supposed to, except for some strange reason it throws an error message when it closes. I've tried a few different methods of closing it. The code below is what I want to use. I've tried it with close set to false as well (saving changes). I've also tried calling an API macro that's pretty similar looking. They all have the same result. The rest of the code executes just fine, and no errors are thrown if I comment out the code letting the document stay open.
I've even tried making a brand new virgin part, writing a rule with just the below code and executing it. The only difference is the error window is thrown from Inventor instead of windows.
I am a user of Video Studio X2. I am having problems seeing video. When I open a project, it appears to open normally but when I play it, no video shows, just the sound. If I insert a video file onto the timeline, I get a message which says "Unable to open file" Below that is says "Catastrophic Failure" and in the lower left of the message it has the number [17101:70:2]. The exact same file will open and play normally in other players such as Windows Media Player.
NTSC drop frame (29.97 fps) Microsoft AVI files 24 bits, 720 x 480, 16:9, 29.97 fps Lower Field First DV Video Encoder -- type 1 DV Audio -- NTSC, 48.000 kHz, 16 Bit, Stereo.
When the rendering completes, a "Catastrophic Failure" error code comes up. When I try to play the video in VLF, I get the following message
"AVI Index
This AVI file is broken. Seeking will not work correctly."
If I press "don't repair", the file plays, but the indexing bar does not run along the bottom of the player. Obviously something is wrong, but I can't seem to work it out.
The input files are as follows:
Video Type: H.264 video, upper field first Attributes: 24 bit, 1920x1080, 16:9 Frame rate: 29.970 Data rate: variable, 16,800 kbps max
Audio type: Dolby digital Attributes: 48000 hertz Layer: none Bit Rate: 256 kbps
I've tried uninstalling and reinstalling, with no luck.
The attached part has some bad work features on it, but I don't care about that (easy fix). It also contains a rule that simply changes the material from "P AND O" (pickles & oiled) to "201 S/S", for some reason the faulty work geometery causes this rule to throw an "unspecified error". If you delete the bad work geometry the rule runs fine.
failure to refresh Model Tree after switching configurations - app restart required
We have a user who is getting this message several times per day and must restart his PC. He is the only user of the Inventor Vault product using 2013. We have redone his laptop and and given him a clean laptop with a fresh install of AutoCAD.
see attached files. Have 40+ so far like this and can only seem to fix them by delinking derived sketches and then selecting sketch edit from design doctor and deleting geometry from unlinked old version of derived sketch presented. Have uninstalled SP1 and hope problem will not keep happening.
I would be interested to recover P15.ipt from its sick state. Have not had problem like this since I installed Inventor 2013 and lost a lot of work that could not be recovered until service pack was released.
I've modelled part of a ship's deck, it consists of rather simple geometrich shapes(Plates, knee brackets and profiles).
However, when i model the assembly and do some negative extrusions in order to get the model how i want it, it leads to a face failure during mesh generation.
I have an Ipart I created and in some of the parts there is a swept feature. In other configurations it is suppressed.
The issue is that the 3D sketch for the sweep gets broken going to/from the configuration. The path is generated from an extruded cut that is also supressed.
I tried to recreate the sweep using a different sketch, but that wasn't successfull.
Is this a bug or is there a different aproach I can use?
PS11 and the EXACT same problems in PS9. This image shows the black on black problem of many drop-down menus. It doesn't affect all drop-down menus but it affects ALL font-related drop-down menus, and, for example, the adjustsments panel (but others also). Some drop-downs are fine (white on black, as it should be). Some aren't.
Backstory:
A catastrophic UI flaw if ever there was one. I use "catastrophic" because that's an error message I got from Acrobat 9 PX after I had a run in with the FlexSPY monitor Adobe uses on its software, when it didn't let me use Acrobat until I reformatted. The Acrobat 9 dialog said it can't proceed because it had a catastrophic error, and then the number 142:20.
I am trying to write code to set the active project across a network. In the code below I have hard written the address in to our main server named "Rusk" . It fails with an error message "The parameter is incorrect". I have tried this using a mapped drive as well with no luck.
I think it may be a permissions error, I am running Vista 64bit. Inventor version 12. If it is a permissions error, are there any sample code snippets out there I can use to set the permissions?
Public Sub SetActiveProject() Dim ProjectID As String 'variable to hold Project ID Dim ProjectAddress As String 'variable to hold an address path 'Verify the project ID is entered If UserForm1.TextBox3.Value = "" Then
I'm trying to use iLogic Design Copy to copy an assembly and all its associated parts to another directory. The assembly contains content center parts. Inventor warns me that the destination file of one of the CC parts (and 18 others) will be overwritten. When I go ahead and copy anyway, the copying process stops at that specific CC part. The Design Copy Progress dialog box states there is an error copying that CC part. When I close the Design Copy Progress dialog box, Inventor crashes.
The error copying the CC part: I'm allowed to use content center parts in iLogic Design Copied stuff, right? I searched some related topics and I'm under the impression that Inventor keeps the CC parts in its own directory and shouldn't be trying to overwrite them.
I am doing a tie rod the issue I have is when the length is between 2.001 and 2.250 we would drill thru all but only tap the ends .750 deep. If the part is 2.000 would would drill and tap thru in one step and not have to rotate the part in the lathe.
How do I get ilogic to understand if my number is between this 2.001 and 2.250 to lengthen the drill length parameter?Or add a mid plane cut? ( trying now code below reflects this try)
Not sure what way I want yet but I just can't seem to find a snippet or code to do this. I tried to add a list in the parameters for it to read but seems to do nothing.
Possible to run the 'import .xml structure' routine for an assembly BOM using either iLogic or VB?? I'm trying to replicate the Import button at the bottom of the BOM screen....
What I am trying to do is insert a part into an assembly file using iLogic. I basically want to mimic Inventor’s “Place” command using ilogic, maybe something like this:
This att. doc shows rule for exporting dxf out of drawing. It is working on one sheet just perfect. In multi sheets it save allways with same name. I want to choose from which sheet i need dxf but to be saved by sheet name or model properti name. Is that possible?
I have an external ilogic rule that creates a set of DWF drawings for all parts and subassemblies (as long as the idw files exist) within and including a main assembly.
I would like to merge all the DWF drawings of the sub assemblies and component parts into the DWF of the main assembly. Is there a method within DWFAddIn that will allow me to merge the files? Is there another way that I can merge the DWF files using the same ilogic rule (one rule to create and merge all DWF's together?)
I´ve found some iLogic code to print a drawing to a PDF document. After some minor modifications it works just fine, but I would like to add some code which allows med to set PDF properties (such as "title", "author", etc.) with values from iProperties. How can I do that? Is it possible? (I'm new to iLogic).
I use simple set of iLogic rules to manage product configuration through the assembly LOD. Assembly is really simple not more then 30-50 parts. Still I manage to crush Inventor fairly often. Some days 5 and more crashes! Several times sent crash report to AutoDesk for no joy. Never got any feedback.
I am just getting an impression that Inventor does not like LOD manipulated with iLogic for some or the other reason.
I am slowly learning about ilogic, and have created parts and assemblies that are run by rules. My next question is, what exactly can ilogic do for drawings? I've looked at the wikihelp, but I am not a natural at programming and I need more than a list of functions with brief descriptions to get me started.
I'm looking for code snippets, other discussions, tips, tricks, and/or tutorials to get info what I can do with ilogic and the API that can automate parts of the drawing process.
I made a 3D model with ilogic to control features to be suppressed or compressed. Because there are lot of features need to do so (need almost 4 to 5 min.) , when I run the rules, it came "Rule timeout" issue as pictures.
I used:
Feature.IsActive (myFeature) = status
to control the feature be suppressed or unsuppressed .
I'm trying to get started with iLogic, but I have no coding background and no VBA experience in Inventor, so I'm looking for a good site or resource that explains iLogic and gives working examples.
When we create a manifold assembly we like to itemize each part individually. Meaning that if we have 5 valves that are the same, we show those as 5 separate items on the BOM. This makes for easier troubleshooting with a customer over the phone. Unfortunately there appears to be no way to manage this natively within Inventor, so we have to edit the BOM manually which defeats the whole idea of automated BOMs. I was hoping some code could come to the rescue. One thought I had was to export the BOM to excel and then have some automation within excel to re-number and sort the BOM, once complete import it back into Inventor in a table.
I use parts of the snippets than ships with inventor, but I can not export the 2d and 3d in the same dwf.
Perhaps it might have something to do with that when I export a 2d file the traditional way only 2d gets exported to the dwf if i dont open the tab that lets you choose 2d and 3d model.
Even if i have the 3d model checked i have to open the tab to get both 2d and 3d, if i dont open the tab only 2d
I would like to copy and paste all iproperties from one part to another, without retyping it all.
What i was thinking about is:
1. Exporting all iproperties to .txt
2. Run a import .txt rule to iproperties.
Is it possible? If so, How could i accomplish a task such as this?
Privacy warning: Since I live in a country that has traded liberty for the illusion of security, all of your posts to me are being monitored and saved by the United States Government.
We have been experimenting with Parallel threading. The situation is that I have an assembly that contains multiple parts (approx. 40) which all have contained "almost" the same code. In order to rationalize this; we have rearranged the code in such way that we now only reference External iLogic rules form these 40 part files (only one place to revise the code if necessary).
The side effect to this rationalization has been the we have problems in executing the codes in parallel, see this simplified example:
Imports System.Threading.TasksParallel.For(1,40, Sub(h As Integer) iLogicVb.RunRule ("Part "& h &"", "iTriggerRule") End Sub)
Now all of these 40 part files try to execute their code.
'Configutation of Part filesiTrigger=iTrigger0iLogicVb.RunExternalRule("Cut configuration")iLogicVb.RunExternalRule("Bracing of the part")iLogicVb.RunExternalRule("Parameter context")
As they all are dependent upon running the same external rules the result is that not all part files are updated according to the required design requirements. It seem as if one of the part files calls the external rule and the rule is "busy" handling another part file it just terminates without warnings or errors.
Can multiple part files run the same external rule at the same time? Is there some form of queue? I do not get any warnings or errors, the partfiles just do not update. How can I make sure that all the part files run the external rules and is there a way of checking this?
For example. I have Roperev=Roperev_1. Roperev_1 is determined by an excel equation. I need Roperev to produce a nominal number because this parameter dries a coil revolution and I need the revolution to be a whole number.
I can not just round the excel result because the excel result needs to be multiplied by 2.53 to get the resultant for Roperev_1