AutoCAD Inventor :: ILogic - How To Sum A Property Of All Sub Assemblies
Oct 25, 2012
I got here on in my templates, two types of weight - net and gross. I've changed the main property MASS of each PART to be the GROSS weight, so when i have one assembly i always get the total gross weight.
And when i wanna get the NET, I open the BOM, show the proper column with this net weight and then export do XLS to sum all of then..
Now the doubt is, to get the things easier, is there a way to put some code in the assemblies, that could sum all the properties "X" from each part and sub assemblie to get the total net weight ?
I got here on in my templates, two types of weight - net and gross. I've changed the main property MASS of each PART to be the GROSS weight, so when i have one assembly i always get the total gross weight.
And when i wanna get the NET, I open the BOM, show the proper column with this net weight and then export do XLS to sum all of then..
Now the doubt is, to get the things easier, is there a way to put some code in the assemblies, that could sum all the properties "X" from each part and sub assembly to get the total net weight ?
i placed an ilogic component (wich i use as a template to later change dimentions) into an assembly file after changing dimentions i placed the same "template" ilogic component into the assembly but when i want to change something on the second component it also changes the first one and that only happens with only one feature of the component the other features work fine.
I would like to set the custom property format for all user paramters from an iLogic code. This is what I've come up with. It runs, but it does not seem to alter the custom property format. What am I doing wrong here?
I'm new in use of iLogic and tried to use it by myself (and internet). But I have some difficulties.
Here is the open point, I wold like to create an assemblies with different length (and also some different part inside).
So I made some iLogic rules to make a configuration of my .iam with length selection.
I made rules to show or hide parts with is linked to the proper length.
I made rules to switch from a positional representation to another one and do the same for level of details representation and for view representation.
All is good in my .iam.
My problem is comming now. When I would like to put my .iam in a .idw in several views (corresponding to different length), my views are the all the same. I can't see one length per view even if I select the proper representation, the proper position and the proper level of detail.
At the end, all this work is to have all views length to be able to make in one drawing all length block in autocad.
Dim propertyName1 As String = "Mortise"Dim propertyName2 As String = "Cut Length"customPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties")Try prop = customPropertySet.Item(propertyName1) prop = customPropertySet.Item(propertyName2)Catch ' Assume error means not found customPropertySet.Add("", propertyName1) customPropertySet.Add("", propertyName2)End Try'output the custom iproperties and update the fileRuleParametersOutput()InventorVb.DocumentUpdate()'set iProperties 'iProperties.Value("Custom", "Mortise") = ""'update fileiLogicVb.UpdateWhenDone = True
This code creates custom iProperties if the iProperty isn't found. I'd like to add another iProperty called "Resaw" with a Yes/No property type. Is there a way of doing this the way I have things started here?
iLogic code question concerning how Place iLogic Component and retain the ability to push parameters from the subassemblies to the parts after being renamed.
I have ASSEMBLY.iam containing:
SUBASSEMBLY-01:1.iam SUBASSEMBLY-02:1.iam and sometimes SUBASSEMBLY-02:2.iam
each SUBASSEMBLY.iam contains PART1.ipt and PART2.ipt which have variable LENGTH and WIDTH. LENGTH and WIDTH are entered manually at the SUBASSEMBLY.iam and are infinitely variable.
To transfer the parameters I'm using iLogic code in the SUBASSEMBLY:
Issue 1: When I place the SUBASSEMBLY as an iLogic Component, the parts are renamed to PART1-01.ipt which renders my Parameter transfer useless. What am I missing on writing this code so it can find the new part name?
Issue 2: I like the automatic renaming that happens with Place iLogic Component. Is there a better way to handle this automatically through Place Component -> Save & Replace?
I'm new in iLogic. I started making an assembly where it has a form where I put the dimension and iLogic controls the subparts including a frame generated profiles (in this case, iassembly don't work with FG).<br><br>The problem is: In the Larger assembly, I also put an iLogic and a form where I want this sub assemblies (this is the assembly mentioned above) to be driven by the parameters I will input on this large assembly. I don't know how to handle this but what I want is to:<br><br>1. I need that when I place this sub assembly there will be a form that will popup during the placement like when I put a bolt on content center.<br>2. Save as a new number and when the set of parameters exist on the previous large assembly it will notify that the sub assembly exist.<br><br>is this possible?
My question is regarding the proper workflow within Inventor. We are currently using 2013 Pro.
I am trying to develop an Assembly that will take linked excel values and have the assembly repond to the user's input. This spreadsheet is to be general in form and is to be re-used for different projects. Right now, the excel values are linked to a master assembly file. This master file has a few iLogic rules to handle the user's input and to pass particular parameter values to the iAssemblies (read sub-assemblies). The iAssemblies are not that complex, but they are taking parameter values from the master, and using iLogic within the isub-assembly to choose the iAssembly member based on the parameter value.
Problem one:
There seems to be a problem with changing the iAssembly member. I have stabilized the iAssembly within the master Assembly. The isub-assembly does not update unless I open the isub-assembly file. In both the isub-assembly and the master assembly, I update at the end of each rule, and I trigger the rules after any parameter change.
The questions are:
Since there are 123 members (so far) in each of the 2 iAssemblies within the Master Assembly, do I really have to test the parameter 123 times to assign a particular iAssembly member? Or is there a more concise way to do this?
We are not using Vault yet, but with described workflow, will we have problems when we do migrate to a vault environment?
I'm running Invenor 2013 and I'm trying to figure out a way to rename my components from an iLogic assembly when placed in a new assembly.
Right now when I start a new assembly, then place an iLogic component it names everything "Part-01," Part1-01" and so on for all of the variable components.
What I'd like to do is write a rule that when placing my iLogic component it will name it based on the filename of the new assembly that I've created. "Part-New Assmebly," "Part1-New Assembly" and so on.
I have a part number that i want to defined in custom properties.
Then would it be possible to call it out in Ilogic? that way in any drawing doesn't matter where the part number will always be the same for that part when i balloon and the same in the BOM.
When using Inventor with Vault, we have a problem when categorizing custom content center parts in Vault. In short, custom content center parts are incorrectly categorized as "Content Center" and automatically released - as there is no property that we can use to identify these files.
I need iLogic code to trigger when custom content center files are created/saved, wich adds the following custom iproperty "IsCustomContentCenter=True".
I am working in an Inventor Assembly .iam, I have about 250 fasteners (screws) that are constrained to a flat washer and lock washer. I would like to put them in as a single unit (sub assembly if you will) and then promote or explode them in the top level so that my bom has 250 screws, 250 washers, and 250 lock washers all at the same level, not associated to one another except thru the constraints that were entered in the original assembly. I have tried Promote but that doesn't work because it removes the washers from the original file and I end up with only 1 instance of the assembly. Am I approaching this incorrectly? Is there a better way? I run across this scenario with different components quite often.
i have a valve vault assembly that i am creating that has two headers running through a large cylinder vault. how i get a total BOM if i were to create the header assembly file separate from the the total vault assembly file. is there a way to explode the header assembly bom when i do the drawing.
I'm trying to use assemblies when creating a corridor. The Tool Pallette is emply but I can drag the assembiles in from the Catalog. I've also created an assembly using the ASC. Neither work when I try to use them. The error message is attached.
I'm using a network installation and I do not have the option of changing it to a DVD installation.
I have 2 tanks, each one is an assembly in itself, and they have to be positioned on a steel skid, also an assembly and then interconnecting pipework between the two. My prioblem is that I can't seem to find a way to position the two tanks at a set distance from each other and in relation to the edges of the skid.
Because of this, my pipe router is going all over the place in trying to join up the two termination points.
In SW I was able to create assemblies that had components with limited motion and then set them as "Fllexable" and allow them to move in larger assemblies. How do I do this in Inventor? I have a trailer with both the front and rear axles able to pivot. These axle sub-assemblies are both able to pivot as top level assemblies but when they are assembled in the trailer assembly the only way I have found to allow movement is to make one axle active and move it then activate the other nad move it. This doesn't work well if there are several interdependant subassemblies that should move together. I am in Inventor 2012.
Inventor Premium 2013 SP1.1 Vault 2013- plain vanilla version HP G71 notebook celeron cpu w 4gb RAM and 64 bit system Win 7 home premium
I use hinges in my door assemblies and they are basically placed into the assembly each time and become flexible so the doors can operate. The hinges are one size and don't change in any way or shape. What is the best practice for inserting these hinges into my door assemblies?
Inventor 2013 Windows 7 Professional 64-bit SP1 HP EliteBook 8470w Processor: Intel(R) Core(TM) i7-3610QM CPU @ 2.30GHz Memory: 16 GB AMD FirePro M2000 3D Connexion SpacePilot
I have converted a lot of STEP files to .iam files. What is the easiest way to put them in a library? there is realy no need to publish them is them, i already have them in subfolders etc.
We have some structure issues going on. Below is an example of our current structure.
1. Overall Frame Assy
2. Frame Weldment
3. Spine Weldment
3. Bracket Assy
4. Deck Brackets
4. Air Brackets
4. Hyd Brackets
The biggest problem is we have all of these level 3 and 4 subassemblies that need to reference upper level assemblies to show placement on the drawings. We have tried utilizing LOD's and view reps but still can't fix the problem. The problem comes into play when we get to upper level assemblies that become so huge because of all of the references that are happening at lower levels. It is structured this way to create small BOM's and to be able to use in multiple different structures without having to pull a new Part Number.
We need the reference geometry to be able to show on the drawing our locations of all of these lower level assemblies and how they mount to the frame in their respected locations.
I'm trying to change the BOM structure of some sub-assemblies from "Normal" to "Phantom". However, some are displayed as disabled and therefore do not allow any changes/overrides. How can I enable these in the BOM?
Inventor RS 2011 AutoCAD Mechanical 2011 ASD 2013 Vault Collaboration 2011 Windows 7 Pro
I've created a simple iPart and want to insert multiple instances of it into an assembly. The plan is to use a parameter-driven iPart to create multiple variations on the same basic model which will eventually be lasercut.
I've included a sample archive. 2DiPart is a simple part with a couple parameters. 2Dassembly is where I've tried to include this part. I'm able to walk through all the dialogs to place the iPart, and will even see it in the canvas as I select the insertion point. However, after I dismiss the dialog, nothing shows up in the canvas. I'm still able to see the component instances in the project explorer however.
How to best to get multiple instances of a parametric iPart into a drawing that can be lasercut.