AutoCAD Inventor :: Exporting BOM Of ILogic Assembly

Nov 29, 2010

My task consist in exporting a BOM of an iLogic assembly.

Is any way to get an accurate BOM of other LOD other than the master. If so, is it only available in certain Inventor releases?

I am trying to accomplish this through API, but I get error when in different LOD than master. iLogic assembly has some parts suppress thats why we need to create a new BOM.

View 9 Replies


ADVERTISEMENT

AutoCAD Inventor :: ILogic Assembly Has Double User Request At Inserting In Assembly

Sep 18, 2012

We have an iLogic assembly with to parts in it. Maybe to cylindrical parts. The iLogic rules should do the following.

1. Start a Rule after open document.

2. This Rule starts a Rule in the first cylindrical component.

3. This Rule ask the user for a diameter.

4. The assembly gives this new parameter value to the second component

5. Then the assembly calls another rule in the second component to change it with the new parameter

Everything is working fine when the following combinations are taking place:

1. I open up the assembly out of vault or from a local drive or an accessible server drive

2. I insert the assembly as sub assembly in another assembly from a local drive or an accessible server drive

It don't work with the following situation:

- I insert the assembly as sub assembly in another assembly out of vault

Then the user becomes the dialog "Choose a diameter" twice.

I don't know why, but I have the idea it has something to do with the functionality of inventor to insert a component more than once. If you insert a component in an assembly Inventor gives you the opportunity to add more than one occurence after each other. 

change that behaviour? Maybe a switch to change that inventor "add more than one occurence" behaviour.

View 1 Replies View Related

AutoCAD Inventor :: Translate Assembly Component Using ILogic / Offset From Parent Assembly Origin

Nov 9, 2011

I want to be able to control the location/position of a component in an assembly. This is easy enough through the iProperties/Occurrence tab and then adjust the location of the X,Y, and Z offsets. Is this possible using iLogic? I have been unable to find a function to access via iLogic. Ultimately I am trying to translate a component about an axis not a pattern.

View 1 Replies View Related

AutoCAD Inventor :: ILogic - Batch DXF From Assembly

Aug 26, 2013

I am trying to make a dxf from each sheet metal part in an assembly with ilogic: (I have cut and and paste different codes from this forum in an poor attempt...)

Sub Main
Dim oApp As Inventor.Application = ThisApplication
Dim oAssy As Inventor.AssemblyDocument = oApp.ActiveDocument
For Each oSubDoc as Inventor.Document In oAssy.AllReferencedDocuments
If oSubDoc.DocumentType = kPartDocumentObject Then
Dim oPartPropset As Inventor.PropertySet = oSubDoc.PropertySets("Design Tracking Properties")
Dim oPartParam As Inventor.PropertySet = oSubDoc.PropertySets("Inventor User Defined Properties")
[code].....

View 2 Replies View Related

AutoCAD Inventor :: Set Assembly IProperties Using ILogic

Jun 1, 2011

I wish to set the properties of an assembly using i Logic. I have the values of the properties in a part that is in the assembly. I wish to pass those values from the part to the assemblies i properties. I tried using the following code, but it gives an error saying it can not find the document "MyAssy.iam"
 
iProperties.Value("MyAssy.iam", ThisDoc.Path, "Part Number")=AssyNo

I'm not even sure that this is the way to do, but it's the only way I could think of to try.

View 9 Replies View Related

AutoCAD Inventor :: ILogic - How To Sum A Property Of All Sub Assembly

Oct 26, 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 assembly to get the total net weight ?

View 7 Replies View Related

AutoCAD Inventor :: ILogic Rules In Assembly

Oct 3, 2011

I am very new to this whole concept of having ilogic based rules to drive your part design. I have even gotten as far as creating a ipart and having ilogic rules be able to suppress, unsuppress, change values and dimensions using ilogic rules. I now want to be able to use ilogic rules to drive some of the various(yet similiar) assemblies that I create all the time.

For instance, If I have just a flat plate as the base component with a shaft welded to it that varies in length for my assemblies. Since the shaft varies in length, I went ahead and created iparts for all the lengths of the shafts. I can manually change which shaft I want represented in the assembly, but I would like to to know how do I get Ilogic to place the different shafts based on user parameters???

I've looked into component place iparts, but can't seem to get the code to work. The list of iparts tree within the model doesn't pop up in the model tab in the ilogic rule, only the base component.

View 1 Replies View Related

AutoCAD Inventor :: Run ILogic Of Part In Assembly?

Jul 25, 2012

How to run iLogic Rule which I created for .ipt  file in assembly?

As I have a myPart.ipt file with iLogic Rules which could create part1.ipt, part2.ipt, ..... (hundreds of them).

Now, I want creats iLogic Rule in myAssembly.iam to run the iLogic Rules in myPart.ipt in order I could create correct .ipt file to be used in myAssembly.iam.

View 4 Replies View Related

AutoCAD Inventor :: Same ILogic Part In Same Assembly?

Jul 26, 2012

I have the same ilogic part placed in the same assembly, and i am trying to drive two different configurations of the same part and when i apply the configuration it changes both of the parts but to only one of the configurations.

Is there a way to drive them seperately even though they are the same part.

View 5 Replies View Related

AutoCAD Inventor :: ILogic Driven From Sub Assembly

Jul 1, 2013

I have a parent assembly that contains multiple sub assemblies, two of which need to synchronize with each other.In the parent assembly, I have created a user form that controls the sizes and quantities of all the different sub assemblies.

Sub assembly 1 contains a bracket for supporting 4 rows of pipes.Based on the width selected from the main parent assembly, the length of this bracket can vary.

The spacing of the 4 mounting positions is also determined from the length of the bracket.Sub assembly 2 is an assembly containing all the pipes.The pipes are spaced apart to suit the bracket using a component pattern, and it is this distance that I want to control from the parent  assembly.This is just one of the basic scripts I've tried.

Pipe_Spacing=Parameter("SubAssembly1:1", "Pipe_Spacing_A")

Parameter("Piping assembly:1", "Pipe_Spacing_B")=Pipe_Spacing
Pipe_Spacing_A is the spacing of the bracket
Pipe_Spacing_B is the component pattern in the piping assembly
Pipe_Spacing is the parameter in the parent assembly to be driven by the bracket parameters.

I have very little iLogic experience & have being learning as I go along with this project.My best guess is that the code can't loop back on itself. On a slightly different note, I have also noticed that the sub assemblies don't update properly.

If I adjust the width to X and regenerate the model, some of the sub assembly updates. To fully update, I have to go back into the user form, change the size to Y & then change it back again to X and then regenerate.

View 1 Replies View Related

AutoCAD Inventor :: Access Assembly Features Through ILogic

Nov 19, 2012

I'm now having an issue accessing the features in an assembly, the error message is attached and the following is the relative code.

The error line is between the 2 Test Messages:

'Create a Component Definition relative to the Part Document

Dim oFeature As Features
Dim oAssembly As AssemblyDocument
oAssembly = oCompOcc.Definition.Document
MsgBox("Test 1")

'Cycle through all features in the Part
For Each oFeature In oAssembly.ComponentDefinition.Features
MsgBox("Test 2")

View 3 Replies View Related

AutoCAD Inventor :: Convert To Weldment Assembly With ILogic?

Oct 27, 2013

Is it possible to change a normal assembly into a weldment assembly through iLogic?

View 4 Replies View Related

AutoCAD Inventor :: Change Part By ILogic In Assembly?

Jul 25, 2012

Before using iLogic, I created lot of iAssembly and iPart. I could change iPart factory member when I need in iAssembly.Now, I want to move everything to iLogic.

how could I change the part by iLogic code?

For example:

I generated "Part1.ipt" and "Part2.ipt",...... (I have hundred of member)

In my assembly, sometimes, I need use Part1.ipt, sometimes I need use Part2.ipt.

Which is the iLogic Code I should to use?

Inventor 2009, WIN XP.
Autodesk Inventor Professional 2013 (64 Bit) SP2
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory

View 9 Replies View Related

AutoCAD Inventor :: ILogic Select Face In Assembly

Mar 6, 2012

I need to be able to pick a face on a part in an assembly inside a iLogic rule. How can I set up the events to suspend the code to have the user pick the face?

View 6 Replies View Related

AutoCAD Inventor :: ILogic Module For Part Of Assembly

Jan 9, 2012

I have made an iLogic external module who copy the iProperties from an Excel files, when i open the module from the *.ipt file il works perfectly. But i need this function from *.iam files.

Something like this: when i click with right button in one selected part of assembly i can open the module only for this part and when i save it save the change for all modify part of *.

View 1 Replies View Related

AutoCAD Inventor :: Assembly Constraints Driven By Ilogic?

Apr 4, 2013

I want to use I logic to adjust an assembly constraint based on T/F value passed from a master sketch. 

I have passed the paramater T/F and/or a user paramater as described in this thread using link (neet trick).. but when the code fires it only works on the true application and not the false.. if i open the rule and then close it the update button  becomes available and when updated the false condition updates sucessfully. I have tried just re-running the rule to no avail. It seams that the only way I can get it to triger a false condition is to open the rule... close it and update. 

If Parameter("iTrigger0101000") = 1 Thend37_Header1 = -.25 ind34_Header2 = -.25 inElseIf Parameter("iTrigger0101000") = 0 Thend37_Header1 = -.25 ind34_Header2 = 0.0 inEnd If

View 2 Replies View Related

AutoCAD Inventor :: Counting Parts In Assembly With ILogic

Jan 9, 2014

I would like to count all my parts in the main assembly and assign that amount to each part.

Example: Main assembly has: 10 Parts A and 5 Parts B. I would like to run a rule that "sends" that "10" to Part A.ipt and the "5" to Part B.ipt

I would like to assign it to iProperties.Status.Status. I start to understand iLogic more and more but it is nice to get a little boost in the right direction.

View 4 Replies View Related

AutoCAD Inventor :: Change Pattern ILogic In Assembly

May 10, 2012

Change pattern ilogic. How do you change the distance and quantity  in an assembly with ilogic?

It is simple in a part but in an assembly the parameters and equations do show.

View 1 Replies View Related

AutoCAD Inventor :: ILogic - Rule Driven Assembly

Apr 23, 2013

The setup is: I have a rule which first gets a number of user parameters via input boxes.This rule then runs a number of other rules, using:

iLogicVb.RunRule("Rule 1")iLogicVb.RunRule("Rule 2")iLogicVb.RunRule("Rule 3").Each of these rules control parameters, part/feature/constraint suppression etc. in the top level and subassemblies/parts based on the previously obtained user parameters.

All the rules have the 'Don't run automatically' option selected, so all should only run as intended when I manually run the first rule.When I run the first rule, I enter all the parameters, and the subsequent rules run.The problem is, the suppression states etc. in the subassemblies/parts do not update.

Looking at the parameters dialog box after the rules have run, all user parameters have updated with the new values.If I run the first rule again the subassemblies/parts update correctly.

It appears that the rules that control the suppression states etc. of the subassemblies run using the initial values of the user parameters, i.e. the values as they were before the user input is obtained, rather than the new values.This is confusing me, as the code is structured as follows:

user_parameter_1 = InputBox("User Parameter 1", "Input", "xx")user_parameter_2 = InputBox("User Parameter 2", "Input", "xx")iLogicVb.RunRule("Rule 1")iLogicVb.RunRule("Rule 2")

View 2 Replies View Related

AutoCAD Inventor :: Run ILogic Rule For All Parts In Assembly

Oct 6, 2011

I Created an iLogic Rule that sets up some parameters.

I want to Automatically opens each and every Part in my assembly, run this Rule,  and then save it without me having to do so manually.

View 8 Replies View Related

AutoCAD Inventor :: ILogic - Modify All Components Of Assembly

Jul 26, 2012

I need to modify all the ipt in an assembly, but I don't kow how many ipt I have, and I don't know the name. Can I have with iLogic the list of all the ipt used in the assembly ? For example, to modify the Part Number in all the components.

The code should be like this :

For All component in Assembly

...

...

Next component

View 3 Replies View Related

AutoCAD Inventor :: ILogic Change Assembly To Reference

Oct 26, 2011

Is there a way to set an assemblies bill of material setting to reference through iLogic?

View 3 Replies View Related

AutoCAD Inventor :: ILogic To Suppress Components In Assembly

Oct 25, 2011

I'm using I-logic to suppress components in an assembly. I've attached a screenshot with 3 suppressed components.

In the browser the parts are suppressed but in the BOM (items 6,7,9) they are not. Is there a piece of code for this?

View 5 Replies View Related

AutoCAD Inventor :: ILogic Create Assembly Constraints

Dec 30, 2013

Im after programmatically mating 2 components together in an assembly. My stages are as follows:

1)Create New Assembly

2)Add .ipt's

3) One-by-one, mate all the parts together (each part has a plane named "WPStart" and "WPEnd". In each part im after the WPStart being flush mated with the WPEnd of the 2nd part - see image attached. In addition I would like to mate al the XZ planes in each of the parts fluch together and likewize the YZ planes.

3) Mate the parts together

Dim FlushConst As FlushConstraint

FlushConst.AffectedOccurrenceOne = oAssyDoc.ComponentDefinition.Occurrence.Item(1).Workplanes.ItemByName("WPStart") <--------

FlushConst.AffectedOccurrenceTwo = oAssyDoc.ComponentDefinition.Occurrence.Item(2).Workplanes.ItemByName("WPEnd")  <--------

View 2 Replies View Related

AutoCAD Inventor :: Exporting Parts Of Assembly Into Revit

Jun 27, 2012

I need to export an assembly into revit on by-part basis, with the reason being the need of preserving properties of every part of the assembly.

However, when i try to do that programmatically, no properties are preserved in resulting families. Here is the code i use:

Sub ExportSeparateComponentsWithoutSupression()    
Dim oAsmDoc As AssemblyDocument    
Set oAsmDoc = ThisApplication.ActiveDocument      
Dim oCompDef As AssemblyComponentDefinition    
Set oCompDef = oAsmDoc.ComponentDefinition      
[code]........

View 1 Replies View Related

AutoCAD Inventor :: Change Positional Representations In Sub Assembly Using ILogic?

Dec 12, 2012

I'm configuring a band with different supports. Each support is configured with a range; 600-900, 900-1200, 1200-1500 etc. those ranges can be adjust by 50mm and those steps are specified by the pos reps (see attached image).

All the different supports are put in the top assembly and in this assembly I want to switch between the positional representations. I tried to use: 

ThisApplication.ActiveDocument.ComponentDefinition.RepresentationsManager.PositionalRepresentations("MyPosRep").Activate

But it won't work. I guess I have to replace "ComponentDefinition" in one way or another to the component name, but I don't know how.

View 3 Replies View Related

AutoCAD Inventor :: Change BOM Structure Of Component Within Assembly Using ILogic

Nov 22, 2011

I have a wall of frames, if you will, and some frames within this wall are different sizes. When doing the BOM, I want to be able to combine anything that has the same stock number as well as the same cut length. The only way I have thought to do this so far is to cycle through each stock number and if the cut length is the same, I override the quantity of one and change the BOM Structure of the other to "Reference". 

How can I change the BOM Structure to reference without selecting the part or going through the BOM Editor? Is there some VBA code I could utilize? I am striking out by solely using iLogic.

View 2 Replies View Related

AutoCAD Inventor :: Update And Save Assembly Through ILogic In Drawing?

Jul 10, 2013

as a part of automating manufacturing drawings, am trying to include ilogic code in the drawing , that would accept values from the user and store it as "user parameters" and make corresponding changes in the inventor drawing file.So, to replicate my issue on a smaller scale, i had created 2 parts and created an assembly out of these 2 parts. I used the assembly in my drawing.

In the Drawing i created a user parameter .. say "external_param". I am opening the drawing and changing the value of the user parameter through the (Fx) parameter table. 

doc = ThisDoc.DocumentIf external_param >= 50 And external_param <= 99 ThenParameter("block_1.ipt.d0") = 15 'change the length of the blockParameter("block_1.ipt.d14") = 3 'change the number of holes in the blockElseIf external_param >= 100 And external_param <= 199 ThenParameter("block_1.ipt.d0") = 40Parameter("block_1.ipt.d14") = 5ElseIf external_param >= 200 And external_param <= 299 ThenParameter("block_1.ipt.d0") = 80Parameter("block_1.ipt.d14") = 6ElseIf external_param >= 300 And external_param <= 399 ThenParameter("block_1.ipt.d0") = 160Parameter("block_1.ipt.d14") = 9End IfRuleParametersOutput()iLogicVb.UpdateWhenDone = True'InventorVb.DocumentUpdate()
 
As you can see, i have commented out InventorVb.DocumentUpdate() , im not quite sure what would accomplish the update and save of the assembly document in the background (without prompting for a save/update). I have also tried thisDoc.Save and thisdoc.update. Using these 2 commands along with the InventorVb.DocumentUpdate() or iLogicVb.UpdateWhenDone caused Inventor to Crash.

View 4 Replies View Related

AutoCAD Inventor :: ILogic Assembly Component Occurrence Definition?

Sep 28, 2012

I have a simple code below trying to iterate through all the assembly component and copy the iProperties > Occurrece Name (i.e. "Part1:1") and paste it to iProperties > Project tab > Part Number field for each individual part in assembly.

' set a reference to the assembly component definintion.
' This assumes an assembly document is open.
Dim oAsmCompDef As AssemblyComponentDefinition
oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition

'Iterate through all of the occurrences
Dim oOccurrence As ComponentOccurrence
For Each oOccurrence In oAsmCompDef.Occurrences
Dim oName As String
oName = oOccurrence.Name
iProperties.Value(oOccurrence.Name, "Project", "Part Number") = oName
MessageBox.Show(oOccurrence.Name, "iLogic")
Next 

The Debug message shows the correct output for every iteration, but when I check each part's properties they all have the Occurrence Name of the last part in the aseembly.

View 4 Replies View Related

AutoCAD Inventor :: Placing ILogic Assemblies Into Larger Assembly

May 28, 2013

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?

View 2 Replies View Related

AutoCAD Inventor :: ILogic - Running Script For Each Part In Assembly?

Jan 8, 2013

I'm trying to write a script which would process all the ipt files within assembly and launch certain functions according to a ipt file type.

I've already made such script for dimensioning parts which work for standart parts but not for metal sheets.

Here it is:
 
Sub Main Dim oApp As Inventor.Application = ThisApplication Dim oAssy As Inventor.AssemblyDocument = oApp.ActiveDocument For Each oSubDoc as Inventor.Document In oAssy.AllReferencedDocuments If oSubDoc.DocumentType = kPartDocumentObject Then Dim oPartPropset As Inventor.PropertySet = oSubDoc.PropertySets("Design Tracking Properties") Dim oPartParam As Inventor.PropertySet = oSubDoc.PropertySets("Inventor User Defined Properties") Dim oParameter As Parameter For Each oParameter In oSubDoc.ComponentDefinition.Parameters oParameter.ExposedAsProperty = True Next oParameter If oSubDoc.SubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}" Then Dim d1 = Round(SheetMetal.FlatExtentsLength, 1) Dim s1 = Round(SheetMetal.FlatExtentsWidth, 1) Dim g1 = Round(Parameter("Grubość"),1) FindOrCreateProperty("Długość [mm]", d1, oSubDoc, True) FindOrCreateProperty("Szerokość [mm]", s1, oSubDoc, True) FindOrCreateProperty("Grubość [mm]", g1, oSubDoc,

[code]....

this code distinguishes parts from sheet metal, and launches appropriate functions to get their dimmensions. It just doesnt work for metal sheets somehow. Seems like SheetMetal.FlatExtentsLength is performed from within the assembly, not part as it should be. I must have the addressing wrong. I've tried many things and different functions but nothing works for sheet metal parts.

This code might also be useful for different purposes. I'm also trying to lunch some external scripts for each part within an assembly, but there is no direct function for that (there is one only for internal scripts , based within the file).

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved