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] .....
We use different types of sheet metals, from stainless to bronze, and different thicknesses.
Currently, in order to show the correct material on a parts list, I have to duplicate the material Stainless Steel, and rename it to say 20 Gauge Stainless Steel. Then again for 16 Ga, 14Ga, 12 Ga, etc...
I'd like to have the parts list show the common material such as "Stainless Steel", with another column for the sheet metal style such as "20 Gauge."
We also use items such as Plastic Laminate. I'd like to create a generic material for the physical properties of "Plastic Laminate", and then change the material appearance to say "Formica #1234 Walnut". Again, i'd like to be able to put this in (2) columns on the parts list.
I have a macro that I acquired somewhere (possibly these boards, can't remember now) for placing a parts list. I have modified it somewhat to change the location on the sheet where the list gets placed, as well as a sub that starts the autoballoon command afterward.
The macro is set up to place the parts list in the upper left corner, by adding the parts list width to the Mini Point of the border. This works perfectly well, except that we have two parts list styles, and they are differently sized.
What I would like to do is have the macro detect the parts list style, and change the offset value depending on which style it finds. I am an extreme novice with the API, who basically knows just enough to tweak sample code a bit, and have not been able to find anything close enough to use as an example.
How I should go about this, or even post some samples of something similar? Current code is shown below.
Public Sub CreatePartsList() On Error Resume Next ' Set a reference to the drawing document. ' This assumes a drawing document is active. Dim oDrawDoc As DrawingDocument Set oDrawDoc = ThisApplication.ActiveDocument 'Set a reference to the active sheet. Dim oSheet As Sheet Set oSheet = oDrawDoc.ActiveSheet ' Set a reference to the first drawing view on ' the sheet. This assumes the first drawing ' view on the sheet is not a draft view. Dim oDrawingView As DrawingView Set oDrawingView = [code].......
The macro does not have to set the parts list style - that is controlled by the drawing Standard. It just needs to detect what it is, and place the list accordingly.
how to Wrap the text shown here. Obviously the Column labeled "ITEM NO." would be 1, 2 , 3 etc. So I would like that column to be smaller. When I make the column smaller, the wording disappears.
I have been unable to rotate the header text in a parts list. I created a new text style that is rotated 90 deg, a new part list style that specifies to use that text style in the header. Everything else about the text in the header displays correctly (i.e. font, size, colour, etc) but not the rotation when I insert the parts list in a drawing using the correct standard. When I apply this same standard to a regular text line on the drawing it will rotate the 90 degs but not in the part list.
I am trying to align text in a row of my parts list vertically, but I can't seem to find an option to accomplish this. Please see the row for item #5 in the attached jpeg. The default behavior seems to be top justification.
I have found the ability to change left/center/right horizontal alignment in the 'format column' dialogue, but nothing for the vertical alignment. I have also tried changing the settings within the 'styles editor' by going to the parts list style I am using, then the text style that is specified for the data, and changing the justification for that text style to middle justification (see 2nd attachment), but it does not seem to effect the text within my parts list as I had desired.
If I override the text in a parts list, say to rename a part number.How can I make Inventor revert back to the original listed part number?I've tried deleting and inserting the parts list, but it still has the overridden Text.
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.
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.
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.
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)
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??
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."
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.
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?
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??? } } }}
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?
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] ?
As an academic interest I was trying to convert Brian’s code for exporting Parts list with thumbnail to VB.net 2012. I just modified the below code to remove the vb6 support. I am using VS 2012 and Inventor 2014. The end result on the word report thumb nail for some parts are not visible. It goes to the error code and putting the text instead of thumb nail. At the same time Brian’s code as it is (used the exe file to install it) works fine on the same parts list with all thumb nail.
#Region "PictureToImageConverter" Public NotInheritable Class PictureToImageConverter Inherits System.Windows.Forms.AxHost Private Sub New() MyBase.New(Nothing)
We would like to put barcodes in a parts list. To create a barcode we use a special barcode font.
It's impossible to have two types of fonts within one parts list, but is there an other way? Is there code (VBA) to generate a table with an extract of the bill of materials and a barcode generated
with a special font on the fly. We would basically need a parts list with an extra column for the barcode.
is there any way to make all the rows in the BOM/parts list on an IDW the same height? I did a search on this and saw nothing new on this. the reason we need this is for a program we use after export to dwg. it is a program we use in autocad that is a txt copy lisp program to populate attributed customer title blocks.
win 7 64 bit sp1 cpu intel xeon E5-2687W0@3.106 eight core two solid state hard drives 32 gig of ram Autodesk product design suite premuim 2014 64bit Nvida quadro 4000 Space Pilot ver. 1.6.2 2010 slphantom (NNTP handle: scottl)
Want parts to be sorted from 1 ascending. Add a part number in custom properties as a number. Asks the part list to sort - ends like this: 1, 10, 11, 12, 13, 14, 15, 16,......, 2, 21, 22, 23, .......,3 , 31 and so on ?????
I'm trying to create a parts list that will show item numbers for the sub assemblies and the individual parts for each sub assembly. When I'm creating the parts list in the drawing, the option for "All Levels"is greyed out once I select my source assembly. How I can show this in a Parts list?
In the continuing saga of me trying to learn Inventor, I have a question about the said named subject. I have a BOM that I need some subassemblies shown as such and others showing as the individual parts.
I have an assembly that I have the BOM property set to phantom. Consists of 7 parts, each have a bom property of purchased.
All parts are the same but cut to length in the shop. Parts list are based on parts only BOM. If I create a parts list based on just the assembly, I can group the items, they all have the same part number, and display the group participants, and the item numbers and everything works as expected.
If I use this assembly as a subassembly in a larger assembly and create a partslist with the same group keys, the subassembly does not show as a group, does not show group participants or corresponding item numbers.
What I'm trying to do is show total length of a product that we buy on a spool for this assembly. To do this I'm using substitution in the qty column. Most parts are purchased each, these are purchased by length. What would cause the parts list to display as a group in one list but not in the other?
I have a drawing detailing an assembly with a 3 sub- assemblies. Each sub-assembly has 4 parts. When I add a parts list only the 3 sub-assemblies are listed. Is there a way to generate a parts list with 12 parts?