AutoCAD Inventor :: Part List Column Width ILogic
Jun 11, 2013I found the following code on Curtis Waguespack site. [URL] ........
View 3 RepliesI found the following code on Curtis Waguespack site. [URL] ........
View 3 RepliesI am trying setup a default part list for my company in Inventor, where I am stuck at is I wish to lock the width of the columns so on all our drawings the part list is the same width, I have assigned each column its own width and when I bring it in to the drawing it's the correct size but I am able to drag the edges, and change its size, I want to lock it so if you try you cant
am I missing something obvious in the menus? Or is this a limitation with inventor.
I am using the latest version of Inventor 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.
Is there a way in iLogic to set the input list box width?
View 7 Replies View RelatedIs there a command in Inventor to add values in a column in the Part list ( BOM) and to display a total value bottom like the Grand Total in Revit?
View 2 Replies View RelatedI'm using Autodesk Inventor 2012 SP1 64 Bit on a Windows 7 machine without vault.
I seem to be missing something. I cannot get the parts list in assembly drawing to fill the part number column. See the image below.
The BOM has the part number field filled out as shown below. Is there someway that I need to map the iProperty to the part number column in parts list?
I am trying to create a iLogic Rule that will measure the Length, Width and Thickness of a part and ut it into the custom fields we have. I am having a hard time remembering how to get it to do it from the assembly level. I want to run this on the assembly and have it populate all the parts inside of it. The code below will do it for a part but what is it I add to get it to drill down into the assembly?
iProperties.Value("Custom", "THICKNESS")=Measure.ExtentsHeight
iProperties.Value("Custom", "WIDTH")=Measure.ExtentsWidth
iProperties.Value("Custom", "LENGTH")=Measure.ExtentsLength
Then I want to add this formula to the Stock Number iProperty = <Length> X <Width> I can get it to add the values but I can not get it to add the formula to the stock number.
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.
When editing the properties for the title block on each sheet of my drawing, I've become rather annoyed with the default column width of the Value column. It always opens to the same width no matter how many times I change it. Every time I edit something in the title block, I have to resize this column to see everything I'm editing.
Any way to change the default width it opens at?
Infrastructure DSP '14 / Product DSP '14 / Vault Professional 2014
Dell Precision T1650
Windows 7 Professional SP1 64-bit
Intel E3-1270 V2 3.5GHz / 32G RAM
Nvidia Quadro 2000, Driver 331.82
Space Navigator, Driver Version 6.17.7
I use a style library. Have it in a read-only mode in the ipj file. My drawing created a new template with a rev table with required columns.
Now, I create a new drawing file and choose this template. add few views, insert a rev table. The rev table columns headings are the same as in the template. But the column widths aren't same as in the template.
I use manage->update. It warns me that the drawing would be matched as per the style library. I agree & OK.
No use, the columns are not same size? Though the style is read only from the drawing, I go to open the style editor to check the column widths. They are different from the template.
I need to create a column in a partslist that reads IDENTIFYING NO. instead of the factory PART NUMBER title. When i create the new property in the column chooser dialog box how do i get inventor to pull the PART NUMBER from iprops over to the IDENTIFYING NO. column.
View 4 Replies View Relatedi want to export my part list with ilogic in a excel template but dont want all the part list column and dont erase the column i skip in excel?
View 3 Replies View Relatedit is possible to set the value of one or more "custom" column of an iPart row.
Per example woul this iLogic method work?
iPart.ChangeRow("iComponentName:1", "RowMemberName", customParam1, customParam2)
If so, could you demonstrate how to use it?
Is there any way using ilogic to find a value in an excel file and delete the column that value was found in?
View 1 Replies View RelatedI have a parts list, with a column, that the description in the column heading is longer than the width of the column. I would prefer not making the column wider, so is there a way to increase the row height of the heading, and wrap the text?
View 9 Replies View RelatedI am trying to generate a parts list that will contain a stock number from the BOM.
When I go to customize my parts list I cannot add a stock number as it's not on the list of properties available.
Is there any chance to add other properties? (i am aware that I can add a custom property but it won't be linked to my BOM.
I`m looking for the iLogic code that can change one parameter (user defined) for each (ipt) part in assembly (iam)
The one below doesn`t work.
Sub Main Dim oApp As Inventor.Application = ThisApplication Dim oAssy As Inventor.AssemblyDocument = oApp.ActiveDocument For Each oSubDoc as Inventor.Document In oAssy.AllReferencedDocuments On Error Resume Next Parameter(oSubDoc, "FH") = 15.26 Next End Sub
I am trying to make a macro that adds the vendor column to the end of a parts list, sort by it first, then by part number, renumber the parts list, then save the overrides to the BOM. Everything works great except for saving the overrides to the BOM. The item number sort order gets jumbled back up. I am using Inventor 2008 Pro SP2. Below is the
Public Sub SortPartsList()
Dim oDoc As DrawingDocument
Set oDoc = ThisApplication.ActiveDocument
Dim oPartsList As PartsList
Set oPartsList = oDoc.ActiveSheet.PartsLists.Item(1)
Dim oPropsets As PropertySets
[Code]...
Is there a way to connect parameters from part1 to part 2 using iLogic, without using an assembly.
View 9 Replies View Relatedif it is possible to increase the number of recently used values/parameters in the dimension dialog, during part sketching. For one part, I use approximately ten parameters that will be used repeatedly. When I'm done with one sketch and start with the next, only the last five parameters are in the recently used parameter list. (Create dimension --> select arrow on right side of dialog, see attachment Dimension_Dialog.jpg, excuse me for the poor quality ). It would be much more comfort to have more parameters in this 'recently used'-list.
Furthermore I'd like to know if it's possible to widen the parameter-list. In my case I've several parameters that start with the same prefix, followed by a differentiating suffix. When I create a new dimension, select the arrow on the right and select 'List Parameters', I have to adjust the width of this dialog every time to see the entire parameter. (see picture Dimension_parameters.jpg)
Any way to make Acad C3D hold the value for MTEXTCOLUMN = 0? I am having issues with it resetting my column width to 0, even after I have formatted all the Mtext to read how I want it shown. Once I close a drawing and open it again, the formatting changes that I have previously set return to "dynamic" and column width = 0. I just want to turn off the dynamic setting so it stops messing up the formatting, but I can't get it to retain the dynamic setting. Currently running C3D 2012.
View 4 Replies View RelatedI want to have a Blank size custom iproperty using flat extents length and width this is what i did but gives error is there a way to get this to work the way I want it to? I dont want a Length and width to be seperated would like it all in one.
iProperties.Value("Custom", "BLANK SIZE")=Round(SheetMetal.FlatExtentsLength, 3)"X"=Round(SheetMetal.FlatExtentsWidth, 3)
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.
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
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
It takes a list of Parameters and cycles through the assembly looking for parts with the same parameter names. It then copies the value of the parameter from the assembly down to the part.
It occured to be that this would be more efficient if I didn't have to manually create a list of parameters to compare.
What I'd like to do is create a list of all parameters in the assembly file that begin with the prefix 'A_', and compare this list against the parameter list held in each subassmbly and part file in the assembly, copying the values down as before.how to build the parameter list?
' set a reference to the assembly component definintion.' This assumes an assembly document is open.Dim oAsmCompDef As Assembly Component DefinitionoAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition'Iterate through all of the occurrencesDim oOccurrence As ComponentOccurrenceFor Each oOccurrence In oAsmCompDef.Occurrences'check for and skip virtual components'(in case a virtual component
[code]....
I have almost got my ilogic part working the way I want it. I have to go into the parameters and choose from a Multi-Value list.
Is there a way in ilogic to get a input box to come up when I place my part in an assembly (like an ipart)?
In our “Parts list” (or BOM as we call it) on our .idw’s we have field for “LENGTH”. For example, we use round tubing. We would list the cut length of that piece of tube in the “LENGTH” column. As it stands now, we add “LENGTH” as a custom iproperty in the .ipt. Then in the drawing we add that property to the parts list to capture the length. This works fine, but I’m wondering if we can eliminate some steps by capturing the actual dimension from the sketch to automatically populate the “LENGTH” value. Needless to say, this would eliminate room for error (less typing) and will update the value automatically if length is changed or if the part is copied. I suppose the same would apply for “WIDTH” on sheet metal parts... How do I do this?
View 9 Replies View RelatedI populate the members of a (text) Paramter from an Excel file
i.e.
MyArrayList = GoExcel.CellValues.("MyExcelWB.xlsx", Sheet1", "A2","")
Now this list contains plenty of duplicates. Is there anyway inside iLogic to remove the duplicates.
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].....
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].....