AutoCAD Inventor :: ILogic Multi-Value List From Materials

Jul 8, 2012

I am trying to populate a multi-value user parameter with a list composed of the various materials available from the iProperties "Physical" tab. So far I have this:

For Each material In iProperties.Materials        
Bracket_Material.Items.Add(material)        
Next
iProperties.Material=Bracket_Material
Running the Rule gets this error message:
Rule Compile Errors in Material_Rule, in _Mounting_bracket.ipt

Error on Line 2 : 'Bracket_Material' is not declared. It may be inaccessible due to its protection level.

I think I am doing the "Bracket_Material.Items.Add(material) " line wrong, but I don't know enough VB to fix it. It seems to me it IS declared in the Parameters table - isn't adding the parameter to the parameter table sufficient to declare it?

Eventually I want to add the Bracket_Material Parameter to a form so the user can select material from drop down list and assign it to part.

View 3 Replies


ADVERTISEMENT

AutoCAD Inventor :: 2013 - List Materials From All Libraries?

Nov 8, 2013

is it posible to list all the materials from all libraries and catagories from Inventor 2013?

I am using this at the moment: Dim oMat As Inventor.Material For Each oMat In oApp.StylesManager.Materials            comboMaterial.Items.Add(oMat.Name.ToString)         Next

This works but only pulls through and lists the "Inventor Material Library" materials by default. 

What is strange though is that when I apply a material from another library to a part then its almost like that library is now active and if the routine is run again it only pulls through materials from that library and not the "Inventor Material Library" again.
 
I know in 2014 its better supported but is there a way to get all materials in 2013?

View 4 Replies View Related

AutoCAD Inventor :: Bill Of Materials / Parts List

Mar 5, 2013

How & where I can add fields that I require for my equipment. I see I can add it to the bill of materials in the assembly but that doesn't carry through to the drawing.

I see that I can add to the parts list in the drawing but i don't want to have to add the information into my drawings every time I use one of my machines.

Basically I am busy creating a library of all the machines I use. This library will then be used for numerous drawing for many different clients. I need the required info to be in my drawing from the beginning without me having to add it to every clients drawing.

View 6 Replies View Related

AutoCAD Inventor :: Multi-Value List Not In Order

Jan 10, 2012

I am trying to create a form, so that my designers can pick their parameters when they first start a new part. 

For this form I have created a multi-valued parameter for them to select from.

My issue is, why does Inventor not list fractions in the correct order.

What I would like to see:

1/8"
3/16"
1/4"
5/16"
3/8"
7/16"
1/2"
9/16"
5/8"
11/16"
3/4"
13/16"
7/8"
15/16"
1"

What Inventor lists:

1"
1/2"
1/4"
11/16"
13/16"
15/16"
3/8"
3/16"
5/8"
5/16"
7/8"
7/16"
9/16"

Is there a way to get Inventor to list these parameters in order of value?

View 2 Replies View Related

AutoCAD Inventor :: Create Multi-value Parameter With ILogic?

May 1, 2012

Is there a way to create a multi-value parameter with ilogic?

Inventor Pro 2013 (PDS Ultimate)
Vault Pro 2013
Windows 7 64
Xeon 2.4 Ghz 12GB

View 9 Replies View Related

AutoCAD Inventor :: How To Set Multi-parameter / Iproperty Using Ilogic

Jun 26, 2012

How to set multi parameter, iproperty using ilogic (or smth else)?

I hav eparameters: d1=50, d2=100, d3=5. I need to set a new multi parameter/iproperty that the final value is:

Angle 50x100x5 (suppousedly code should contain smth like: "Angle", "d1", "x", "d2", "x", "d3") but I do not know exactly...

View 2 Replies View Related

AutoCAD Inventor :: Change Contents Of Multi Value List

Jan 30, 2013

Is there a way to change the values available in a Multivalue list, based on another parameter?

I'd like to achieve:

When material is "MDF", available thicknesses are 6,9, 12

When material is "PLY", available thicknesses are 15,18, 25

I kinda solved this already but it's not quite right. I basically mad the list a list of custom parameters, and changed the values of these parameters based on the material parameter. :

'------iLogic--------------

If Material = "MDF" Then

iProperties.Value("Custom", "Thickness 1") = 6

iProperties.Value("Custom", "Thickness 2") = 9

iProperties.Value("Custom", "Thickness 3") = 12

Else If Material = "PLY" Then

iProperties.Value("Custom", "Thickness 1") = 15

iProperties.Value("Custom", "Thickness 2") = 18

iProperties.Value("Custom", "Thickness 3") = 25

End If

MultiValue.SetList("Thicknes",iProperties.Value("Custom", "Thickness 1"),iProperties.Value("Custom", "Thickness 2"),iProperties.Value("Custom", "Thickness 3")

MultiValue.UpdateAfterChange = True

'------------------End----------------------------

This works pretty much, when changing between the materials the value currently selected  remains in the list until another is selected from the list. Once another value has been selected, only the correct values are available, but immediately after the material has been changed the thickness for that material is incorrect and could lead to operators specifying an unavailable thickness.

View 3 Replies View Related

AutoCAD Inventor :: Add Empty Text Value Within Multi Value List

Aug 12, 2013

I could add an empty text value within an multi value list in inventor 2010, but I don't think i can do the same thing in 2013, is there a possible way to do it?

Btw, when by an empty text value I dont mean a space.

View 2 Replies View Related

AutoCAD Inventor :: ILogic To Populate Iproperty From Multi Value Parameter

Nov 3, 2011

I am struggling to find the right ilogic to extract the state of a multi-value text parameter and use it to populate a single i property.

View 1 Replies View Related

AutoCAD Inventor :: Cut List From Multi Body Part File?

Jun 12, 2012

When is the functionality of generating a cut list from the multi body part file going to happen?

This is available in Solid Works and ver frastrating its not for Inventor.

View 8 Replies View Related

AutoCAD Inventor :: Saving A Multi Value Parameter List Externally From The Part

Jan 17, 2013

I have an iLogic template part that has a multi value parameter. In this case the product code can be selected from a list of 4 codes. In futre we may need 5 and the 5th may need to be available to older parts.

I would like to avoid having to add the 5th as an option to every part we've ever made when the 5th becomes required.

I'd like to have the list of codes stored in an external file (Possibly an xml) and the template part reference that file to acquire it's list of available codes. That way I can add codes to the xml and all the files will have their list of available codes updated.

View 2 Replies View Related

AutoCAD Inventor :: Add Item To Multi-Value-List Of User Parameter (2012 API)

Jan 3, 2014

IV2012 API with VB:

How can i add an item to a Multi-Value-List of an existing User Parameter in Inventor2012 (Accessing API with Visual Basic) ?

My idea is for example:

uParams.Item(i).ExpressionList.AddItem(As String)

The problem is, that such a function "AddItem" doesn't exist.

View 4 Replies View Related

AutoCAD Inventor :: Change Multi Value Select To Custom Value Input In Ilogic User Parameters

Aug 31, 2011

I want to change 'mutil value select" to "custom value input" in ilogic user parameters. something like this:

if condition A then

multivalue.setlist("length", 1,2,3,4,5)
else

(users can enter any value they want, how can i remove the list first and set it to custom value input?)

View 2 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

AutoCAD Inventor :: ILogic Comparing One List Against Another

Nov 15, 2013

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]....

View 9 Replies View Related

AutoCAD Inventor :: ILogic Input List Box?

Dec 10, 2012

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)?

View 3 Replies View Related

AutoCAD Inventor :: ILogic Removing Duplicates From A List?

Jul 18, 2012

I 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.

View 1 Replies View Related

AutoCAD Inventor :: ILogic Input List Box Width

Oct 26, 2011

Is there a way in iLogic to set the input list box width?

View 7 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 :: 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 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 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 :: Can IAssembly Configuration List Appear In An ILogic Form

Aug 29, 2013

A client was looking to develop a custom interface for documenting iAssemblies.

Would it be possible with iLogic to:

1. Show form.

2. User selects a Browse button to select iAssembly to document.

3. List all iAssembly configurations in the form.

4. User picks configuration.

5. Select OK to create base view, projected view, and Parts List.

This may require API.

View 7 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 Multivalue List For IPart Selection?

Jul 8, 2013

I have a form with a multi value selection containing name vaules from an iPart.

I want to make a selection from the field in my form and swap out my iPart in the assembly for my selection. 

I thought that something like:

Dim iFactory As String

MulitValue.SetListInComponent ("FileName:1", "Param name", "list of params.......")

Parameter("FileName:1", Param name") = "PK 407"  'could be any thing selected from the list of params..

iFactory=Param name

iPart.ChangeRow("iPart Factory File Name:1", iFactory)

Such that the part would be swaped out for what ever Param name = as a result of user selection.

I get the following error from this: Object reference not set to an instance of an object.

View 1 Replies View Related

AutoCAD Inventor :: Part List Column Width ILogic

Jun 11, 2013

I found the following code on Curtis Waguespack site. [URL] ........

View 3 Replies View Related







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