AutoCAD Inventor :: ILogic - Renumber Count Of Pattern Elements?

Jan 18, 2013

Since I used Autodesk Inventor 2013 last year, I had an question about numbering en renumbering the count of elements in patterns.

I had an assembly with iLogic for placing and replacing elements, suppressing parts and edit dimensions of parts in 1 assembly. Sometimes, 1 suppressed pattern must be un-suppressed. Before doing this, I would like to set the pattern count and distances between pattern elements in the pattern. How can I do it by using iLogic?

View 1 Replies


ADVERTISEMENT

AutoCAD Inventor :: Renumber Balloons For ILogic?

Sep 1, 2011

I want to add the Balloon Renumbering function to our templates using iLogic, but when I run it I get an error message saying: "The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))". I have narrowed it down and think it has to do with the following line: partInfo(i - 1).Number = drawBOMRow.Item(itemColumn).Value. When I remove that line I don't get an error message, but every balloon is set to item no 0. The function I want to achieve with the code is to renumber separate part files against the assembly BOM.
 
Public Structure udtPartInfo Public udNumber As Integer Public ReferencedFile As String End Structure Sub Main() Dim drawDoc As DrawingDocument drawDoc = ThisApplication.ActiveDocument Dim baseSheet As Sheet baseSheet = drawDoc.Sheets.Item(1) Dim valSet As BalloonValueSet

[code]....

View 7 Replies View Related

AutoCAD Inventor :: ILogic To Sort BOM - Renumber Items As Sorted

Jun 13, 2011

I want to use iLogic to:

1.Sort an assembly BOM by Part Number.

2. Renumber Items in the BOM as sorted.

3. Sort a drawing Parts list by item number.

The background to my problem is that i have an assembly which is working beautifully turning components on and off (suppressing/activating in LOD reps) as defined by iLogic rules (iLogic is awesome). The problem is whenever a part is turned on/activated again, it shows up at the bottom of the BOM and Parts list out of order (would be nice if parts went back in the list where they came from).

View 7 Replies View Related

AutoCAD Inventor :: Incomplete Part Update When Sketch Pattern Count Changes?

Mar 18, 2012

The attached part, created in Inventor 2012, has a formula for the number of occurances in a sketch pattern based on its length. When this number changes due to a length change, some parts of the sketch do not reposition and Inventor does not indicate that an update is required. The part can be fixed by dragging the affected geometry or performing a rebuild all. The following image shows the result when the length changes from 300 to 500.

View 6 Replies View Related

AutoCAD Inventor :: ILogic - Count Sheets Counts Excluded Sheets

Jun 14, 2012

shouldn't sheets marked as "exclude from count" not be counted?

I tried this in both 2013 and 2012 to see if maybe AutoDesk broke it, but it doesn't work in either one. This is easily reproducible for me, a file shouldn't be necessary. Just open up (or create) a multi sheet drawing. Go to edit sheet on one or two of them and check the "exclude form count" box. Now create a new iLogic rule and put the following line into it:
 
MsgBox("This is the number of sheets in the drawing: " & ThisDoc.Document.Sheets.Count, VBOkOnly, "Number of Sheets")

View 2 Replies View Related

AutoCAD Inventor :: How To Suppress Pattern In IAM By ILogic

Aug 31, 2012

how to suppress a pattern in *.iam by ilogic?

I used ilogic to suppress the main components, but the rest are not suppressed.

For example, I have component "A" and make it a pattern (Colum and Row are variable). How to use ilogic to suppress rest not just "A".

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

View 3 Replies View Related

AutoCAD Inventor :: Pattern Controlled With ILogic

Jan 8, 2013

I have a pattern of holes (exactly 3) on an object and when the object height changes so does the pattern base on height. My issue is that i need to create a rule or code that ensures that apart from the first hole (which is fixed), the remaining two holes are at a location that is divisible by 6. The reason being that this is a sheet metal part and our punch press has a template for aligning punches at every 6 IN.

We are using iLogic to automate some of our designs and the code is needed to eliminate having to worry if the punches are at the correct location for faster production.

View 3 Replies View Related

AutoCAD Inventor :: Pattern Visibility With ILogic

Oct 11, 2011

I've noticed that one can turn off the visibility of an entire component pattern by manually right-clicking the pattern in the browser and unchecking "Visibility". However, when one tries to automate this process with the following code, only the first element of the pattern is made invisible.

Component.InventorComponent("Pattern1").Visible = False

Is there a better way to do this, or will I be forced to develop a "workaround" like first changing the number of elements to 1?

I've been desperately trying to find a way to "turn off" unneeded assembly components without iAssemblies or LOD's, but Inventor always finds a way to stop me. This workflow of turning off visibility and setting BOM status to "Reference" would work if only I can make patterns invisible, also.

View 1 Replies View Related

AutoCAD Inventor :: ILogic - How To Place Flat Pattern

Apr 11, 2012

I attached the iLogic code which is automatically creating dwg drawing (script borrowed from one of the discussion group users), also it creates 4 views. I`m just wondering how to add flat pattern ? 

View 7 Replies View Related

AutoCAD Inventor :: Suppress Certain Pattern Occurrence In ILogic

Feb 22, 2013

How do you suppress a  certain pattern occurence in Ilogic?

View 6 Replies View Related

AutoCAD Inventor :: Suppress Occurrence Of Pattern With ILogic

Sep 8, 2013

Is it possible to suppress an occurrence of a pattern in part environment using iLogic? I saw something for assembly environment, but I can't make it work for part. My iLogic knowledge is quite basic.

View 1 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 To Set Pattern Components To Reference

Sep 17, 2012

I have a pattern of reference components, but the quantity of the pattern can change based on certain criteria.  When the quantity increases or decreases, I need each pattern element to have its BOM structure set to reference.

The problem is, even if the original pattern element is set to reference, each subsequent element comes in as normal.  This causes the BOM quantities for that component to be reported incorrectly in higher assemblies.

Is there some iLogic or VBA code that will automatically set each component in a pattern to BOM structure "Reference", even if the pattern quantity changes?

View 7 Replies View Related

AutoCAD Inventor :: ILogic - Delete A Suppressed Component Pattern

Sep 20, 2013

How to modify the code below to delete suppressed parts in a pattern (entire pattern)?

Dim oComp As ComponentOccurrenceDim oComps As ComponentOccurrencesoComps = ThisDoc.Document.ComponentDefinition.OccurrencesFor Each oComp In oCompsIf Component.IsActive(oComp.Name) = False Then oComp.DeleteNext

 Code works fine if there are single instances of the part. It throws a error when you have a suppressed pattern.

View 7 Replies View Related

AutoCAD Inventor :: Unable To Suppress Pattern Element Using Ilogic

Aug 9, 2012

I'm trying to use ilogic to suppress some individual elements of a pattern but i couldn't find any command that can target component pattern elements. When i try to capture its current state with the right click menu it does nothing.

I can of course suppress the part within the element but then it doesn't update the BOM.

View 9 Replies View Related

AutoCAD Inventor :: ILogic - Set Pattern Parts To BOM Reference & Default

Oct 3, 2013

I made a flanged connection using I logic. Very simple Tube + Flange + Gasket + Blind flange + Bolting.Then I tried to write some ilogic rule to have Blind flange on / off when needed, hence the Gasket & Bolting also need to be off. Like in these images:

That works fine visually, but I also want the BOM to be set accordingly. For the Blind flange & Gasket my BOM is OK. But for my bolting the BOM is not OK. I tried to set the BOM structure the same way as the visibility but that failed. It only subtracted 1 bolt from my list (see code)

If Blindflange_status = 0 Then 'Bolting offComponent.InventorComponent("Bolting:1").BOMStructure = BOMStructureEnum.kReferenceBOMStructure 'Sets BOM Structure to Reference (Remove from BOM)Component.Visible("Bolting:1") = FalseElse 'Bolting onComponent.InventorComponent("Bolting:1").BOMStructure = BOMStructureEnum.kDefaultBOMStructure 'Sets BOM Structure to Reference (Remove from BOM)Component.Visible("Bolting:1") = TrueEnd If
 
Is there a way to set all parts within a pattern BOM structure? I made my bolting  by adding 1 bolt, 1 washer & 1 nut and then pattern them using feature pattern select.

Inventor 2013

View 1 Replies View Related

AutoCAD Inventor :: Changing Circular Pattern Orientation With ILogic?

Mar 21, 2012

Any way to change the Orientation of a circular pattern with iLogic?

View 1 Replies View Related

AutoCAD Inventor :: ILogic - Set Pattern Parts To BOM Reference And Default

Oct 3, 2013

I made a flanged connection using I logic. Very simple Tube + Flange + Gasket + Blind flange + Bolting.

Then I tried to write some ilogic rule to have Blind flange on / off when needed, hence the Gasket & Bolting also need to be off. Like in these images:

That works fine visually, but I also want the BOM to be set accordingly. For the Blind flange & Gasket my BOM is OK. But for my bolting the BOM is not OK.

I tried to set the BOM structure the same way as the visibility but that failed. It only subtracted 1 bolt from my list (see code)
 
If Blindflange_status = 0 Then 'Bolting offComponent.InventorComponent("Bolting:1").BOMStructure = BOMStructureEnum.kReferenceBOMStructure 'Sets BOM Structure to Reference (Remove from BOM)Component.Visible("Bolting:1") = FalseElse 'Bolting onComponent.InventorComponent("Bolting:1").BOMStructure = BOMStructureEnum.kDefaultBOMStructure 'Sets BOM Structure to Reference (Remove from BOM)Component.Visible("Bolting:1") = TrueEnd If
 
Is there a way to set all parts within a pattern BOM structure?

I made my bolting  by adding 1 bolt, 1 washer & 1 nut and then pattern them using feature pattern select. Inventor 2013

View 9 Replies View Related

AutoCAD Inventor :: ILogic - Suppress Pattern In 2nd Level Subassembly

Jun 4, 2012

I need to suppress a pattern in an 2nd level subassembly. But is only able to do it in the same level where the pattern is placed etc:

If Length < 3000 mm Then

Component.IsActive("1 st level subassembly", "Name of pattern in 1nd level subassembly") = False

End If

But if i do it with an MakePath... etc.:

 If Length < 3000 mm Then

Component.IsActive(MakePath("1 st level subassembly", "2 nd level subassembly", "Name of pattern in 2nd level subassembly")) = False

End If

If Length < 3000 mm Then

Component.IsActive(MakePath("1 st level subassembly", "2 nd level subassembly"), "Name of pattern in 2nd level subassembly") = False

End If

is it not possible to suppress a pattern by an MakePath?

View 9 Replies View Related

AutoCAD Inventor :: ILogic - Toggle Visibility For Item In Assembly Pattern

Jan 30, 2013

I have a subassembly that has been patterned.

I need to toggle the visibility of a part in that subassembly in each pattern element.

How do I refer to the part?

I have declared an object for my pattern, and can toggle the suppression on any element.

But I need to get at an individual component inside the element. 

I've been trying something like this:

oPattern.OccurrencePatternElements.Item(X).Component.Visible("Valance Jig Frame - 1in:1") = False

View 1 Replies View Related

AutoCAD Inventor :: (iLogic ) Automatic Update Flat Pattern Extents?

Sep 12, 2011

How to make Automatic Update propeties for Flat Pattern Extens. I have write code and setting rules trigerred by event (Before save, Any model Parameter Change) but if some parameter change properties isn't automatic update. So could some one tell me how to solve this problem.

Part with iLogic code is attached

View 9 Replies View Related

AutoCAD Inventor :: Save Flat Pattern As Dxf With ILogic Rule - 2012?

Feb 1, 2012

I have read all the topics about rule that save flat pattern (.ipt) as .dxf file. Unfortunately, It doesn't work with Inventor 2012. I found rule by Rob Cohee and it works but it saves all lines. I need dxf file with only outer and inner profile, no bend lines. 

View 3 Replies View Related

AutoCAD Inventor :: Suppress Pattern Occurrence In A Part File Using ILogic

Dec 8, 2011

I have set iLogic to change a rectangular pattern to a certain amount of occurrences depending on which is selected , i.e. 117 cavities, 140 cavities and 96 cavities. Only one is active (or unsuppressed ) at a time. 

What I need to do is suppress the 4 corners of each pattern, considering there's only one pattern and is dynamic.

View 2 Replies View Related

AutoCAD Inventor :: ILogic To Drive Pattern In IPart Requires Rebuilds

Aug 29, 2013

I have a simple iPart, with driven parameters Length and Width. When length changes (from a multi-value list), the spacing on a pattern and the number of occurrences of that pattern also change.

Invariably, it requires a rebuild. Occasionally, it requires two rebuilds. As this part is in a second-level subassembly, opening the part, rebuilding it, then rebuilding its assembly, then rebuilding the top-level is consumptive.

I've been using iLogic and iParts for about a week now, so I might be missing something basic. File attached.

Inventor 2013
Win 7 Pro SP1 (x64)

View 7 Replies View Related

AutoCAD Inventor :: ILogic Snippet - Change Hatch Pattern In Section Of Specific Material In IDW

Dec 13, 2012

I am completely new to ilogic but would like to make a rule in my idw file that change the hatch pattern in a section of a specific material.

Short Version:

I have an aluminum extrusion part. Material is set to Aluminum-6061. In any section view of this part I want the hatch to be ANSI 31 with a rotation of 45 degrees and a scale of .02 How do I do this?

View 1 Replies View Related

AutoCAD Inventor :: ILogic Rule Surface Flat Pattern Area From Assembly File

Oct 16, 2013

I created an iLogic rule that allows in a sheet metal part to the informations Length, widht and area of a flat pattern. This rule run and the iproerties are created (see attachment file).

Now, I will run this rule from an assembly file to create automatically, in all sheet metal components, theses iproperties.

Is it possible ? what must I change in this rule ?

View 1 Replies View Related

AutoCad :: Count Total Length Of Elements?

Nov 24, 2013

I don't know if it's good place to post it but finally there's a plugin in Autodesk exchange to count total length of elements. It names 'Tlen' and I've found it very handy.

View 1 Replies View Related

AutoCAD Inventor :: Making Elements Independent In Pattern?

Dec 1, 2011

I have been able to Pattern Assemblies and change an instance of that pattern to Independant in the past.

I am trying to do just that and the option doesnt show up when I right click.

View 9 Replies View Related

AutoCAD Inventor :: Break Sketch Pattern Without Deleting Elements?

Oct 13, 2011

Is there anyway to break a sketched pattern without deleting all the elements?  CATIA has this feature where you can pattern something, then break the relationship of this pattern so you can edit the components as individuals.  It seems the only option in Inventor is to delete the pattern or suppress individual components.   I just want to pattern a line equally spaced 20 times then trim those lines to a bisecting one.  Its annoying to have to draw and constrain all the lines to create a pattern 

View 4 Replies View Related

AutoCAD Inventor :: Browser Is Not Refreshing After Replacing Elements With ILogic

Jul 10, 2012

When I replace elements with iLogic the Inventor Browser is not automatically refreshed.

E.g. I have a file A.ipt and I replace it with B.ipt then in the Brwoser will be shown: A.ipt:1, even when B is already inserted.

Is there some refresh, like "Update Browser nodes when done" ?

These both has no influence on it:

iLogicVb.UpdateWhenDone = True
InventorVb.DocumentUpdate() 

By the way. To Update the Browser manually, I have to rename the block nodes (From Filename to Filename). So it's only opening up the Renaming Function and then hitting "ok".

If there's no direct function to update the Browser, maybe there's a way to do the manually way by iLogic?

View 9 Replies View Related

AutoCAD Inventor :: Change The Colour Of All Elements In A Pattern Without Changing Ipt File?

Nov 4, 2013

is it possible to change the colour of all elements in a pattern without changing the ipt file?

I have an assembly that has 4 rectangular patterns that can have any number of elements, sometimes the customer will ask for coating to be applied, in this case i only want to change the colour at the assembly level only.

View 1 Replies View Related







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