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?
How do you thread two different text box with two different text format? Eg. Text Box
1: Font Size 50pt...Text box 2: Font Size 10pt..
Once you thread the two text boxes; and delete the content in Text box 1, what ever the content that flows to Text box 1 from text box 2 should auto format to Font Size 50.
Having trouble bolting through a beam onto a tappered face of a channel. In RL a tapered washer would be used, though they exist in Content Centre it doesnt work with the application.
My part is at an arbitrary angle relative to one of the planes and i cannot align the view in a drawing to be horizontal.I try to make a view, in the part file, in which the model will be horizontal, but there isn't any precise input for views.
I used the Look At tool to look at one face and all i need now is to rotate the view 90 degrees round one axis, but when i touch the line of the compass in the Constrained Orbit command the view jumps back to some position.
Is there an easy way to flange so that the flat pattern comes out with the two sides' faces are parallel to each other? I have attached the part I am trying to work with.
After reading the documentation for IV 2013, I'm not sure if it's possible to create a midplane between parallel faces of two different parts or not. I've tried using the workplane buttons in both the 3D Model and the Assembly tabs with no joy.
Basically, I have two workplanes which are parallel to each other and offset by a certain distance. As illustrated in the picture below, I'd like to constrain points from each plane to have the same vertical alignment as those from the other plane (horizontal too, I suppose, but the horizontal dimension will be the same anyways).
I want to connect two sheet metal faces with a bend. Bend works if two parallel edges are selected. Is there a way to connect two faces with a bend if the two edges are not parallel?
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
Some time ago i used express tools to save my sysvar settings and now when i read the old settings back in, i'm put in 3D parallel project mode. I know this because i have the background color for this mode set to something other than the background color for 2D model space. But now i can't get out of 3d parallel projection mode.