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


ADVERTISEMENT

AutoCAD Inventor :: Fill Multivalue List In ILOGIC With Produced String (FILTER)

Nov 4, 2011

I try to filter an Excel List and therby fill certain Multivalue Parameters with the filtered data.

The filter works fine an provides me a string looking like the sytax for the MULTIVALUE.SETLIST command.

B6string = FilterReturn  &  Chr(130) & B6String = 75‚80‚250‚65‚45‚250

Unfortunatly this string gets exactly as ONE entry in the Parameters Value listing !

MultiValue.SetList("B6_Lochbild_Länge", B6String)

I also tried

MultiValue.List("B6_Lochbild_Länge") =  New Integer () {B6String}

and also

B6string = Chr(148) & FilterReturn & Chr(148) &  Chr(130) & B6String

with the same effect !

View 2 Replies View Related

AutoCAD Inventor :: Setting MultiValue List To Parameter

Jan 21, 2013

I have the following rule:

If OD=900 mm And Filter_Type = "Aerob" ThenMultiValue.SetList("FilterSize", 0.2, 0.3, 0.4, 0.5, 2.2, 2.3, 2.4, 2.5)End IfIf OD=900 mm And Filter_Type = "Donaldson DLM" ThenMultiValue.SetList("FilterSize", V3/7S, V4/7S, V8/7S)End If
 For first condition everything is ok. But when the second one is valid it gives error:

Conversion from string "V3/7" to type 'Double' is not valid.

Maybe I should add that the parameter "FilterSize" was made as Text and multi-value.

AIP 2014
Windows 7 x64
Dell Precision T7400 Intel(R) Xeon(R) CPU X5472 @ 3.00GHz (4 CPU's), 8Gb RAM, NVIDIA Quadro FX 5600 1536MB GDDR3

View 2 Replies View Related

AutoCAD Inventor :: ILogic - MultiValue Parameter - Get Named Range From Embedded Excel

Jan 9, 2013

I have a MultiValue Parameter that I want to populate using a named range from an embedded excel spreadsheet. I would like an iLogic solution if possible because I need other people to be able to understand the code without too much difficulty.

One of the sample snippets given allows access but not if the excel file is embedded.
 
'GoExcel.NamedRangeValue("Part_Width")
 The code below works but not when using a named range.
' Load bearing housing typesMultiValue.List("parameter1") = GoExcel.CellValues("A1","A20")
 Is there something I'm missing? I was hoping to use something like below
' Populate MultiValue Parameter from excelMultiValue.List("parameter1") = GoExcel.CellValues("3rd Party:Embedding 4", "Sheet", "myNamedRange")

View 2 Replies View Related

AutoCAD Inventor :: Using ILogic To Change An IPart Row?

Oct 25, 2012

I have a sheet metal part that I converted into an iPart and I set up different rows with different sheet metal styles. What I want to do is run an iLogic code to change to a specific row which in turn would change the actual material of that sheet metal part....I've tried the snippet iPart.ChangeRow but cannot get it to run the code. I'm not sure if I'm not doing something right or what...

Inventor 2014, Windows 7, 64 bit

View 9 Replies View Related

AutoCAD Inventor :: G_L To List Cut Length Of IPart

Oct 24, 2008

I have been able to create an upright with slots and holes to the length of 29-1/4" and via two seperate cut extrusions cause the part to shorten using iParts. I was told that the Frame Generator uses the parameter of G_L to populate the new cut length for use with the parts list. I have been able to create a frame generated part and get the length to populate the parts list however I have not been able to get my upright cut length to show in my parts list.

I did create a new property in my parts list column chooser, my BOM is set to Phantom, my .ipt parameters has a user parameter of G_L/equation of Length which above is listed as 29.25 in. Every thing that I can think of is the same from my frame generated files to my upright files.

Right now my parts list will not even show quantities of any kind. How to get parts list to show the cut length?

View 1 Replies View Related

AutoCAD Inventor :: Get Correct Partnumber When Using IPart And ILogic?

Jul 10, 2012

I made part with iPart. And I use iLogic to engrave the P/N on the part.

View 9 Replies View Related

AutoCAD Inventor :: Switch From SolidWorks To ILogic And IPart

Aug 8, 2013

We are looking to switch from SW to Autodesk in order to utilize advanced surfacing in Alias, and its interoperability with Inventor.  However, we need to continue to perform Kinimatic linkage studies as well using Inventor.  I need to make sure we can perform the same calculations with ease before making the switch.

At this point I am trying to mimic in Inventor the kinimatic studies I perform in SW.  In SW I would perform these studies within a single part file, using a single sketch only (no solid parts).  Within this part file I would break up the total "travel" of the linkage into configurations that are driven by a "Design Table".  The Design Table would be used for both the main driving value, and for any driven values I wanted to use for analysis.

I am trying to find a way to get the same driven variables written to an Excel file to use for analysis using Inventor.

As a test example:

I would like to drive one variable(Damper Length) to get ~20 different iParts, each with the linkage moved to a new point within its set range of motion.  I then would like to write several Driven variables(Displacement_1-3 shown in "RULE CODE" attachement) from each iPart instance to an Excel file.

I have been able to get my 20 iParts and the linkage to move accordingly(iPART INSTANCES attachement), but I have not figured out how to write the driven data to excel for each iPart instance(20 rows of data, 3 columns).  I have only been able to write the dimesions for one row of data...whichever iPart is currently open.

with the necessary iLogic code or another solution?  It seems like this should be pretty straight forward.  Do I need to be using the "ChangeRow" iPart Snippet?

View 8 Replies View Related

AutoCAD Inventor :: Adding New Members To IPart By ILogic Rule

Apr 1, 2013

I’m trying to make an iLogic rule that creates a new row in the iPart  table (new member). Is it possible?

View 2 Replies View Related

AutoCAD Inventor :: ILogic / IPart Custom Column Value Setting?

Dec 3, 2010

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

View 4 Replies View Related

AutoCAD Inventor :: Change Active IPart With ILogic Form

Jul 29, 2013

I have an Ipart I would like to have a Ilogic form to change the active Ipart. I tried iPart.ChangeRow but I did something wrong and it doesn't work.

View 2 Replies View Related

AutoCAD Inventor :: Generate IPart Member Files In ILogic?

Aug 8, 2011

I am looking to generate ipart members for each ipart as I activate it?

View 2 Replies View Related

AutoCAD Inventor :: ILogic Rule To Read Out User Parameter Of IPart

Nov 1, 2012

I've created a main assembly containing several ipart components. With the following rule I can read the model parameters, but not the user parameters of the iparts:

A = Parameter("Part1:1", "d0")
 
If I create a component, insert it in the main assembly and make it an ipart afterwards, the user parameters can be read out with ilogic. But if I insert the same ipart again, the user parameters can not be read out anymore. Model parameters are no problem. 

View 1 Replies View Related

AutoCAD Inventor :: Convert Standard IPart To ILogic Based Part

Nov 4, 2011

I am trying to convert a standard iPart to an iLogic based part.  The part has some text driven, cells..PatNumber, Description..ect..But when I try to referance those cells the iLogic code either does nothing or errors out. 

Basicly i have a bunch of flange rings with have several variables theat need to change as the part number changes, sounds simple right?I have rewritten the code so many times...I have gone from hunt and pecking to typing 300 words a min...well maybe not. 

About 75-80% of all our parts are identical in shape but just get smaller or larger depending on what size portable auger it goes on.I have been trying to get the part to changed based on "PartNumber" but it has text in the value.

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







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