AutoCAD Inventor :: Parts List Sort Using ILogic

Nov 7, 2011

I have got some ilogic code that i have patched together to sort my parts list in inventor which works great but it will not update all sheets at the same time as when we design we have multiple sheets with parts list on and the odd one without.

add to this code to update all sheets partlists and also recognise that some sheets will not have partslists on so this will need to skip. 

below is code that is used to sort

Format:HTML Format Version:1.0 StartHTML:     165 EndHTML:    4558 StartFragment:     314 EndFragment:    4526 StartSelection: 314 EndSelection:     314
SyntaxEditor Code Snippet
Format:HTML Format Version:1.0 StartHTML: 165 EndHTML: 4558 StartFragment: 314 EndFragment: 4526 StartSelection: 314 EndSelection: 314
[Code] ...........

View 4 Replies


ADVERTISEMENT

AutoCAD Inventor :: BOM Renumbering And Part List Sort By Item (iLogic)

May 15, 2013

i = MessageBox.Show("Do you wish to Renumber & Sort BOM?", "My iLogic Dialog", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1) If i = vbyes ThenTrace.WriteLine ("INV - Transfer; User Selection; Do you wish to Renumber & Sort BOM? - YES")'Renumbers & Sort BOMoPartsList1.Renumber oPartsList1.SaveItemOverridesToBOMoPartsList1.Sort("ITEM") Trace.WriteLine ("INV-ExternalRule - Renumber & Sort BOM#")Else if i = vbno Trace.WriteLine ("INV - Transfer; User Selection; Do you wish to change Renumber & Sort BOM? - NO")End if

what i want to do, is renumber the BOM by (001) then go to part list and sort by item.

View 9 Replies View Related

AutoCAD Inventor :: Ilogic Generate Parts List?

Oct 4, 2012

I curently have a rule that generates a part list automatically in a drawing. the problem is that I want the rule to be continuisly running but it keeps generating 2,3,5... parts lists. I need an if statment to check if a parts list already exists.
 
iLogicVb.UpdateWhenDone = True On Error Resume Next ' Set a reference to the drawing document. ' This assumes a drawing document is active. Dim oDrawDoc As DrawingDocument oDrawDoc = ThisApplication.ActiveDocument 'Set a reference to the

[Code].....

View 2 Replies View Related

AutoCAD Inventor :: Ilogic - Programmatically Add Parts List

Jun 19, 2013

im trying to programatically add a parts list into a drawing whilst programatically creating the drawing - the code works fine without the parts list code. The error its showing is 'Parameter incorect' on the line that sais PartsList.add(...   In the past when ive got this error with other code it has been because ive used an incorrect parameter (e.g. decimal instead of an integer).

My error is somewhere inside the oPartsList.add(>>ERROR SOMEWHERE HERE<<<)

oDrawDoc = InvApp.Documents.Add(Inventor.DocumentTypeEnum.kDrawingDocumentObject,AssyTemplate,True) 
oSheet = oDrawDoc.Sheets.Item(1)

[Code].....

View 1 Replies View Related

AutoCAD Inventor :: ILogic And Export Parts List In A IDW

Nov 18, 2010

I need to generate an iLogic rule exporting Parts List (not BOM) from a IDW to a specific folder in XLS format.

Using Autodesk AutoCAD Inventor 2011

View 9 Replies View Related

AutoCAD Inventor :: ILogic To Change Parts List Style

Feb 8, 2012

Below are 2 rules that run in succession to create and save a parts list from a base view in a drawing.

I am now trying to set the parts list style to a custom style, ideally while creating the list.

Also, I have to manually go into the list to turn off visibility of certain items (based on material), does I can do this with Ilogic?  I ask because these steps precede a rule that automates placing base views of all parts in the parts list.  If I could get the style and visibility right, I could automate the entire process.

Looking for changing such a style with ilogic?

Inventor & Vault Pro 2012
Windows 7, 64bit
Core i7 920@2.67
8GB

CREATE PARTS LIST____
' Set a reference to the drawing document.
' This assumes a drawing document is active.
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
'Set a reference to the active sheet.
[Code] .....

View 9 Replies View Related

AutoCAD Inventor :: ILogic - Control Position Of Parts List

Oct 31, 2011

I am creating a drawing controlled by ilogic. The assembly can vary in size considerably so I have set the IDW to change between sheet size A3 and A2 accordingly using ilogic. However, when the sheet size is changed, the parts list stays in a static position.

Currently, the parts list is situated in the top right corner up against the title block and the border. So when changing from Size A3 to Size A2, the parts list ends up in the middle of the page. Is there anyway i can control the position of the parts list so it changes with the sheet size change?

I know I could simply move the partslist to the bottom left corner, which is a work around. However, I'd like to be able to keep the drawings in line with the company standard.

View 1 Replies View Related

AutoCAD Inventor :: Add Category Field To Parts List Using ILogic?

Apr 4, 2013

I am Trying to add the category Field to the parts list, if a sting exists in the field. I want to run this as a rule at the Drawing Level. I can check if there is a sting in the Category Field But not sure how to add this in the Parts List.

View 4 Replies View Related

AutoCAD Inventor :: ILogic To Turn Off Visibility Of Lines In Parts List

Aug 21, 2013

At my company when producing drawings for manufacture we require a sheet for any steel profiles to be cut!..We do this by selecting the assembly from base view,hitting model view tab, selecting presentation and choosing the relevant profile from the drop down!

Once the profile is placed, we highlight the view and hit the parts list tab which obviously creates a parts list, but for the whole assembly, we then have to edit the parts list by turning off the visibility of the lines of all the parts which are not relevant!!...as you can imagine this is quite a laborious task if you have 50 different profiles.

The reason for this is to show the qty, steel grade and part number to the suppliers. My question is, any code that will take the lines of the parts list that are not relevant to the selected view and turn the visibility of those lines off?

View 1 Replies View Related

AutoCAD Inventor :: Write Text String To Parts List With ILogic

Mar 5, 2013

I'm trying to create an iLogic rule that will print a text string to a cell or coloum of a parts list in inventor.

My code so far...

Sub Main()
On Error Resume Next
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
[code]......

I want to print what is in the Message Box into a cell in the parts list, and i am stumped. The cell i am trying to print to is a user property in the Parts List.

View 1 Replies View Related

AutoCAD Inventor :: ILogic Rule To Print String To Parts List?

Mar 5, 2013

I am trying to make an iLogic rule that gets mutliple strings from different places, and prints them to a user property in the Parts List.

My ultimate goal is to print the drawing number, sheet number and the item column value to the user property with the format being...

"XXXXX-X-X"

So far, i can get the drawing number from an iProperty and the sheet number easily. But im getting stumped on obtaining the item coloum value and printing it to the same row.

This is what i have so far...

Dim DWGNUM As String = iProperties.Value("custom", "DWG Number")
SheetNumber = Mid(ThisDoc.Document.ActiveSheet.Name, InStr(1, ThisDoc.Document.ActiveSheet.Name, ":") + 1)
MessageBox.Show(DWGNUM+"-"+SheetNumber, "DXF Number")

And print the message box output to a column in the parts list

View 7 Replies View Related

AutoCAD Inventor :: ILogic Rule To Change Parts List Style

Jul 2, 2013

I need an ilogic rule to autmoatically change the style of the parts list in a drawing file.The parts list style already exist in the drawing.

View 2 Replies View Related

AutoCAD Inventor :: Write Text String To Parts List Column With ILogic

Mar 5, 2013

I'm trying to create an iLogic rule that will print a text string to a cell or column of a parts list in inventor.My code so far...

Sub Main()
On Error Resume Next
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
[code]...

I want to print what is in the MessageBox into a cell in the parts list, and i am stumped.The cell i am trying to print to is a custom property in the Parts List.

View 3 Replies View Related

AutoCAD Inventor :: ILogic To Sort BOM?

May 22, 2012

I have been unable to find any code to sort the BOM, there are lots of snippets to sort and modify the Parts list.

How to sort the Assembly BOM?

Sort parameters:

PARTS Only

"BOM Structure"

then by

Custom Parameter "TYPE"

Then By

Part Number

Then "Renumber" starting at 1

Autodesk Product Design Suite Premium 2014 SP1 Build 222
Intel Core i7 (950@3.07GHz)
Windows 7x64 (Home) - 12GB Ram
Nvidia GeForce GTX 560 Ti (1Gig - Ver:331.65)

View 1 Replies View Related

AutoCAD Inventor :: ILogic Sort Values

Feb 20, 2013

I have an iLogic rule that populates the fields shown below in our title block. The DIM. Values are strings set with H,W,L values. This works well, but I have an additional need to sort these values in ascending order, so the smallest value is first followed by the next largest and finally the largest value. (4.000x5.000x14.000). I haven't had much luck finding any information about how this can be done. I did however come across some code here that someone else was using for a similar feature.
 
Dim sizes As New List (Of Decimal)sizes.Add(bH)sizes.Add(bW)sizes.Add(bL)sizes.Sort()D1 = sizes(1)D2 = sizes(2)D3 = sizes(3)

This is what I have been attempting, though it does not work. I get the following error "Index was out of range. Must be non-negative and less than the size of the collection. 

Parameter name: index". I'm not sure if my list type is correct (Decimal), but no matter what I choose it fails. The (bH,bW,bL) are the actual block dimensions pulled from the .ipt file. Once sorted I want the values of each position (1),(2),(3) to be assigned to (D1),(D2),(D3) so I can place them in my title block in the correct order.

View 3 Replies View Related

AutoCAD Inventor :: Sort BOM While Avoiding Locked Parts

Dec 3, 2012

I need to sort the BOM (structured) while avoiding three parts. So I attempted manually locking the three parts in the BOM through the user interface and then running the following code

 ' Set a reference to the assembly document. ' This assumes an assembly document is active. Dim oDoc As AssemblyDocument oDoc = ThisApplication.ActiveDocument

' Set a reference to the BOM Dim oBOM As BOM oBOM = oDoc.ComponentDefinition.BOM

' Make sure that the structured view is enabled. 'Set a reference to the "Structured" BOMView Dim oBOMView As BOMView oBOMView = oBOM.BOMViews.Item("Structured")

'The following line works correctly Call oBOMView.Sort("Part Number",True) 'Re-Number the BOM Call oBOMView.Renumber(3, 1) 'Re-Sort Items 'Call oBOMView.Sort("Item",True)

The above code is bits and pieces that I have combined from the internet. The only problem with it is that sort works fine on some files while on others it skips a few e.g. 1,2,5,6,7......

Is there any way we can sort the BOM while avoiding all the locked parts.

View 5 Replies View Related

AutoCAD Inventor :: Showing Two Instances Of Parts List And Adding Custom Parts

Mar 30, 2012

On the main sheet of my drawing I have the overall Parts List.  Shows almost all parts except for the few that we don't want to list.  On the second sheet I inserted a Parts List to show only parts that are shown in a detail on that page, made the rest non-visible.

On the main sheet there is an item (#13) that has a QTY of 3.  Two of those Three are optional parts.  What I'm trying to do is insert a custom part into the Parts List, give it an item number of 13A and put in the description "OPTIONAL", then do an Override in the balloon to show 13A.

I get it in the Parts List, Apply it, close it, save the drawing.  Looking at the Parts List, item #13A is there, but item #14 is gone.  I go back into the Parts List and 13A is there and there's a blue box around the item # and the description.  I uncheck Static Value and number 14 shows up (item # and the description).

Then I go over to sheet two, open that Parts List and it lists 13A at the bottom with all the info I added in sheet one and it's non-visible.  Go back to sheet one, open the Parts List and there is no 13A to be found.

View 9 Replies View Related

AutoCAD Inventor :: Parts List Update When Modifying Model Parts In Idw

Aug 21, 2012

My parts list on my idw do not update when I make changes to the model. Specifically, I have deleted a bolted connection on my design and replaced with a different components but the parts list table does not update - all I see is a lightning bolt in the browser next to the parts list but I cannot update it here.

Autodesk Inventor Professional 2013 SP2 64-Bit Edition
Windows 7 HP Z400, Intel Xeon W3550 3.07GHz
12.0GB RAM, ATI FirePro V4800 (FireGL)

View 2 Replies View Related

AutoCAD Inventor :: Virtual Parts Weight Total BOM And Parts List

Aug 7, 2013

I was using virtual parts to add nuts and bolts to a drawing in 2013

I can make a VP bolt in the assembly, no problem, set it's size, weight, etc.

In the VP itself, there is no option for number of bolts I want it to emulate. For arguement's sake the weight was 1 pound per bolt (they are big bolts).

I can go into the BOM and say quantity 60, hit done and save the assembly.

If i open the drawing, the parts lists shows 60lbs for the 60 bolts total - which it should when summing the weight.

The problem is the BOM/assembly. If the weight of my assembly (without bolts) is 10,000lbs, the assembly sees the VP weighing 1lb and says the total weight is 10,001 lbs. Am i going to have to pattern a fake part to get this to work right? Shouldn't the total weight take into account the quantity set in the Bom??

View 2 Replies View Related

AutoCAD Inventor :: Display Density Of Materials Assigned To Various Parts In Parts List On Drawing?

Dec 9, 2013

Is there a way to display the density of materials that are assigned to varius parts in the parts list on a drawing?  I don't need the mass of the parts I just need the material density to show up next to their respective parts.

For example, if I have a part with [steel mild] material assinged to it (no matter the size) I need a column in the BOM on the drawing to show: 490.684 lbs/ft^3.  "Worry when there's something to worry about."

View 3 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 :: Assemblies Showing In Parts Only Parts List

Jul 10, 2012

I have an assembly with a lot of purchased parts. I need to create a buy out list for purchasing. I've done this many times in the past and have a template set up for this purpose.

So now the problem, In this assembly, I have subassemblies showing up on my parts only parts list.

One of the subassemblies cinsists of two purchased parts. Both parts are set to purchased in the Bill of materials. If I do a parts only list on this assembly, it works as expected, showing two purchased parts. However, if I put that assembly into a higher level assembly, A parts only parts list shows the assembly instead of the individual parts.

View 2 Replies View Related

AutoCAD Inventor :: IDW View / Parts List Changes From Structured To Parts Only

May 3, 2013

IV 2010 Suite

Been working over an idw MANY times due to project lag.Today I opened it up and tried adding balloons to an already ballooned assembly.

The parts list has not changed, and is "structured".But, if I try adding balloons, they tag each part, not the entire assembly.

Also, I verified this by trying to add another parts list, which defaults to "parts only".

I can't show my data set, b/c it's HUGE, plus it's proprietary.

IV 2010 Suite
Digital Storm PC:
EVGA & Intel components
Win 7 Pro 64 bit

View 5 Replies View Related

AutoCAD Inventor :: How To Sort Parts Inside Browser Folder

Nov 17, 2012

Alpha sort in assembly bonus tool sorts outside browser folder. Is there any method (API) to sort inside browser folder?

View 3 Replies View Related

AutoCAD Inventor :: Parts Not Selecting For Parts List

Sep 22, 2011

I have a .idw that I'm trying to make a parts list on.  I select parts list and highlight everything.  There are two screws that are not showing up on the parts list.  I cannot select them manually either.  It's acting like they are not there.  Even if I do a complete parts list (adding the assemblies parts into one big list), they still don't show up.

How can I select these parts?  What is wrong with them that they do not show up in the parts list?

View 2 Replies View Related

AutoCAD Inventor :: Get Parts List From The BOM

May 11, 2012

It seems like most people output the whole BOM.  I only want to data in the Part Number column, preferably as a list of strings.

Here's what I have so far:

foreach (Sheet oSheet2 in aDoc.Sheets){ for (int i = 1; i < (oSheet2.PartsLists.Count+1); i++) { var oPartsList = oSheet2.PartsLists[i]; for(int k = 1; k < oPartsList.PartsListColumns.Count+1; k++) { if (oPartsList.PartsListColumns[k].Title.Equals("PART NUMBER")) { //what goes here??? } } }}

View 1 Replies View Related

AutoCAD Inventor :: Get The Parts List From The BOM

Feb 4, 2013

I've been using the "Phantom" BOM Structure to roll up duplicate .ipt's when I have more than one sub-assembly within a higher .iam and it has worked well.

Question - is it possible to adjust settings so that the .iam that I "Phantom" itself remains as a visable line item in the Parts List while still rolling up like .ipt's?

View 2 Replies View Related

AutoCAD Inventor :: How To Get A List Of Parts

May 16, 2012

I have a drawing and I need to get a list of parts.  I see *most* solutions use the parts list on the sheet itself.  I will not have access to that. Is there a way to get a list of parts WITHOUT accessing oSheet.PartsList[1] ?

Win7 x64 - 16gb ram
i7 3610qm
FirePro M4000

Inventor 2013
ETO 6.1

View 9 Replies View Related

AutoCAD Inventor :: Find And List With Ilogic

Nov 18, 2013

Trying to have ilogic find parts in an assembly that start with 900C7 so I can link the to a cell in excel showing the QTY and the LENGTH..

Right now I am just trying to get ilogic to find and list them then I know I can move to the next step..

Example:

 900C71.250

 900C72.125

 900C7A.750

 900C7P1.1875

 And many more.

Here is what I have but it keeps posting the NOTHING message box. I have a few of the parts in the assembly and a few none 900C7 parts.

Dim openDoc As Inventor.DocumentDim docFile As Inventor.DocumentDim assemblyDoc As AssemblyDocumentDim partOcc As ComponentOccurrenceDim FNamePos As LongDim docFName As StringDim oList As Collection = New CollectionopenDoc = ThisApplication.ActiveDocumentIf openDoc.DocumentType
[Code] .....

Here is a screen shot of the excel file what I am trying.

View 9 Replies View Related

AutoCAD Inventor :: ILogic - Dropdown List For BOM In IDW

Dec 11, 2012

Is there a way I can write some code, so that in idw, I can choose from two different text for "Description" in BOM table? My work place requires to show material information when it's a fabrication drawing, to show part description in assembly drawing in "Description" column.

At the moment, we just override material information (for example, 40x40x3 RHS) to part description (RHS Spreader). It's not very safe to do that. Most of the times, we just forget to change it.

Autodesk Inventor 2013 SP1.1 64-Bit
Vista Business 64-Bit
E8400, 8GB, ATI FireGL V5600

View 5 Replies View Related

AutoCAD Inventor :: ILogic - FOR Every Entry From A List

Dec 11, 2012

I have a section of code (see below) which runs a program which highlights a part/subassembly red, then gives the user a list dialgue box in order to easily replace the compent. At present, I have this code repeated for each part/subassembly in my main assemby (i.e. FRAME, POWER_RISER, BUSBAR_CHAMBER, BUSBAR_ASSEMBLY...).

Having the code repeated multiple times, means it is very time consuming to modify. I want to be able to generate a list then have the code below, run for each of the entries in the list. So I need something along the lines of

dim mylist as something
mylist = FRAME, POWER_RISER, BUSBAR_CHAMBER, BUSBAR_ASSEMBLY...
FOR each entry in mylist
run all the code below (with the words 'BUSBAR_ASSEMBLY' replaced with 'mylist'
END

[Code] ........

Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit

View 3 Replies View Related







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