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


ADVERTISEMENT

AutoCAD Inventor :: How To Populate Multivalue PARAMETER

Jul 24, 2012

How to populate an Inventor Multivalue PARAMETER using a For cycle in iLogic according to a variable index corresponding to a different number of array items?

for example:

i grab some data from a Rule and populate an Arraylist variable. I trace the number of instances using a counter. after the data acquisition I want to populate the Multivalue Parameter with the acquired values.

No problem browsing the Arraylist parameter: MyArraylist.(Index)... but what about the Multivalue parameter?

the MultiValue.SetList("Multivalue Parameter", Value 1, Value 2, ... , Value N) provide a defined number of data and cannot be set dynamically according to an Index.

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 :: 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 :: 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 Multi-Value Parameter From Excel Named Range Values

Nov 20, 2013


I have a Multi-Value Parameter "MV" that I want to populate using a Named Range from an Excel file that is already populating other parameters for the same file.

I currently have the file working by populating "MV" by using the snippet from iLogic below...

MultiValue.List("MV") = GoExcel.CellValues("filename.xls", "Sheet1", "A2", "A10")

The reason I don't like this method is because if ever that range changes... all the iLogic code will have to be updated as well. How to set a Multi-Value Parameter using a Named Range from an Excel file? I assumed the below snippet would work but I am receiving

"Array was not a one-dimensional array." as an error. 

MultiValue.List("MV")=GoExcel.NamedRangeValue("Named_Range_Value")

View 4 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 :: User Parameter Expression List - Allow Custom Values?

Mar 21, 2013

Where do I find the "Allow custom values" option for a multi list parameter expression?

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 :: Update Quantities In Parts List Based On Parameter In Assembly?

Apr 12, 2012

Inventor 2012.how would I input the total quantity of doors in the .iam in order to update the Parts List quantity column?  I have a lot of user inputs in the .iam file set up to change width, height, etc that are based off of Parameters in the .iam, but I don't know how the user can enter assembly quantities in order to get the Parts List to update the Quantity column correctly?

I have attempted using custom iProperties but how to get it to display based off a user input Parameter.

View 3 Replies View Related

AutoCAD Inventor :: Recently Used Values / Parameters In Dimension Dialog / Width Parameter List

Jan 10, 2012

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

View 1 Replies View Related

AutoCAD Inventor :: Default Value Multivalue Setlist

Jan 3, 2012

I've created a setlist with the following ilogic

MultiValue.Setlist("Dnr",1,2,3,4,5)

Is it possible to set a default value for "Dnr", for example Dnr = 3.

View 2 Replies View Related

AutoCAD Inventor :: Working With Multivalue Lists Of Other Parameters

Mar 22, 2013

I'm writing an input check function (check certain inputs to be positive, or within a certain range). I'm a mechanical engineer with basic coding experience, mostly with basic matlab experience (some c++), so I don't fully understand VB structure, classes, objects, etc.

I'm giving my function a mutlivalue list of the names of parameters, converting to an ArrayList,  then using 'For Every Item" in array list If>my condition>then display input box. And I have it working, but probably not the "proper" way, though if it works, it works. My real question is if I can use a multivalue list of parameter names and create a sister MV list that contains the parameter values. Currently I have to hard code a MV list with quotes aorund the names, and one without quotes. I've played around with various ways of using multivalue.set/setlist, val(), CDblAny() and other functions, but  always end up with either class mismatches, an MV list with a single evaluated parameter, or an exact duplicate of the original paramter name MV list.

Example of my brute force efforts:

Format:HTML Format Version:1.0 StartHTML:     165 EndHTML:     684 StartFragment:     314 EndFragment:     652 StartSelection:     314 EndSelection:     314
SyntaxEditor Code Snippet
'MultiValue.SetList("testList",ggg)
'MultiValue.List("testList") = MultiValue.List(Parameter(ggg))

Full Input Santitation

Format:HTML Format Version:1.0 StartHTML:     165 EndHTML:   14751 StartFragment:     314 EndFragment:   14719 StartSelection:     314 EndSelection:     314
SyntaxEditor Code Snippet
MultiValue.SetList("posParams", "hopAngle", "hopOutID", "hopOutClearance", "ringThk")

[Code] .....

Inventor 2013 SP 1.1

View 1 Replies View Related

AutoCAD Inventor :: IV2012 Sp1 - Delete Unused Parameter Takes 4-5 Seconds Per Parameter

Dec 23, 2011

I have user parameters that are no longer needed and are not being used anywhere.  They each takes 4-5 seconds to delete, prior to 2012 this would happen instantly.

IV2014 SP1 64bit
Dell Precision T7500, Geforce GTX 480, DirectX11 306.97
SpaceExplorer 4.04, 3DxWare 3.12.2
Twin Intel Xeon E5506 2.13GHz, 12GB RAM, Win7 Pro SP1 64bit

View 6 Replies View Related

AutoCAD Dynamic Blocks :: Setting Parameter Values At Block Insertion?

Jun 16, 2011

how (if) I can set up my dynamic blocks so that I can set the parameter values as I insert the block, rather than with the grips afterwards?

To take a simple example; I have a block consisting of a rectangle, with 2 linear stretch parameters - length, width. Can I set it up so that when I insert the block, it asks for the length and breadth,just as it would for attributes.

View 4 Replies View Related

AutoCAD Inventor :: Convert Model Parameter To Reference Parameter?

Oct 2, 2012

I need to convert a model parameter to a reference parameter thru the API.

I saw this item discussed in the group before, but I cant find the thread.

View 4 Replies View Related

AutoCAD Inventor :: Set Parameter For End Value Of Parameter Animation

Dec 19, 2011

I got a deadline for my project, but I got a big problem:

"I cannot set the "parameter" for the End Value in Parameter Animate dialog"

For easy understand, let's see a example:

1. I got a part which has two parameters named: "A" and "MaxA"
2. I animate Favorited parameter A.
3. The End Value is MaxA_ (Everything is ok)
4. I finish Studio environment, then I change parameter MaxA_ from 200 mm to 400 mm
5. I turn back to Studio environment, the End Value now is "200 mm" (I want this will be MaxA_, so I can animate the flexible parameter). 

show me how to keep the end value will be "MaxA_" after I change parameter? 

View 3 Replies View Related

AutoCAD 2010 :: Setting Up Scale List?

Nov 25, 2009

My viewport scale list only has metric and I would like to add a list of imperial scales for general use. So far I can only add, through Annotation Scaling panel and Scale list for an individual drawing so once it is closed I lose the scales.

how do I list my imperial scales permanently for use throughout the program.

I'm on Autocad 2010.

View 7 Replies View Related

AutoCAD Inventor :: Ipart - Standard Parameter Column Change Depending On Custom Parameter Column

Jan 3, 2013

I am trying to publish to the CC a guide rail. The vendor of the rail gives me the option of entering the desired length of the rail. After that he gives me the option to choose between the length that I entered and a shorter and longer standard length witch can be delivered faster.

I want to do the same thing with my published part, but I cannot make a key parameter to change depending on the entered custom parameter. I want the user to make the next steps when inserting from the CC: 1- select the size of the rail; 2-select the type of the rail; 3- enter the desired length of the rail; 4- choose between the desired length and the 2 recommended lengths (I need these 3 lengths to be shown)

Is this possible?

View 9 Replies View Related

AutoCAD Dynamic Blocks :: Passing A Value From The Action Parameter To A User Parameter

Dec 1, 2013

I need to use the dimension created by an action-parameter as a variable in a user defined function but AutoCAD will not allow me (see attached).

How may I access the action-parameter's dimension ?

View 1 Replies View Related

AutoCad :: Use User Defined Parameter To Drive Action Parameter?

Feb 7, 2012

it is possible to use a user defined parameter to drive a action parameter.

I have several polar and linear stretch actions i would like to drive from one parameter.

View 3 Replies View Related

AutoCAD Inventor :: Control Parameter With XML?

May 27, 2012

in Inventor 2010 we can save and load iLogic Paremeter with *.xml and just in my opinion we can control parameter using *xml or html. It's right or false?

how to control Inventor parameter with *.xml?

View 2 Replies View Related

AutoCAD Inventor :: Generating A Parameter

Oct 26, 2012

I need to extrude a simple shape between two planes and then get the length as a parameter. Is there anyway of generating this? All I can find is a parameter for the angle of the extrusion.

View 3 Replies View Related

AutoCAD Inventor :: How To Change G_L Parameter From In To Mm

Aug 24, 2013

I have generated frame that has 100 members in it. Is there a quicker way of changing G_L unit to a mm so that I don't have to go into all 100 parts to change the custom properties?

Also I do not need unit string to be appear in my BOM.

View 9 Replies View Related

AutoCAD Inventor :: Dimension And Parameter

Apr 14, 2009

I set a dimension to a 2dline. The dimension is automatically added to Model Parameters. How can I find , by code, the line which length is driven by the parameter ? Or, starting from the line find the parameter which indicate its length ?

::GetDependents(), nor ::GetDrivenBy(), nor ::GetParent() gives me the answer.

View 7 Replies View Related

AutoCAD Inventor :: Get Parameter Value From DWG File

Aug 6, 2012

I'm trying to get a parameter value from an Inventor .dwg file, but I keep getting an error saying the file is not found. I use this same code all over the place between different parts but its the first time I'm tried it using a dwg. Can you not access an Inventor .dwg parameters using iLogic .

MsgBox(Parameter(ThisDoc.Path & "MyDrawing.dwg", "Customer")) 

View 1 Replies View Related

AutoCAD Inventor :: Using Parameter In IProperties

Jan 6, 2014

Sometimes I change the dimensions of a material I use but then I have to open Iproperties and change the description by hand. This can create problems as you can understand especially when I forget to update the Iproperties.

Then I had the thought to automate it. Lets take a steel bar as example. I have thickness and width as parameter, both are exported and available under IProperties/Custom. But they show as 200 mm and 10 mm. I would like to loose the units. I tried also UL but then it reads 200 ul and 10 ul.

What I like to get are just the numbers, no units. I like to use it to create this  "steel bar 200x10" where the 200 and the 10 are linked to the Parameter and will change when I change the dimensions av the steel bar.

View 9 Replies View Related

AutoCAD Inventor :: How To Get Parameter From IPT File

Aug 8, 2012

I created a *.iam file. And from this asembly file, I need run some rules in *.ipt file.

I use

Parameter("PartA:1", "d12") = d12

to give d12 parameter in my assembly to d12 parameter in *.ipt. It works.

But I need get parameter in the *.ipt file after running the rules in *.ipt.

so, I put 

d13 = Parameter("PartA:1", "d13")

following above line.

But everytime, I just be able to get the result before *.ipt run the rules, not after.

I noticed the rules in assembly were compeletely run, then run the rules in *.ipt. So, the result is not correct.

I am using Inventor 2009 with ilogic. XP OS.

Autodesk Inventor Professional 2013 (64 Bit) SP2
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory

View 9 Replies View Related

AutoCAD Inventor :: Set Material As Parameter?

Jan 31, 2012

I would like to have the material, color etc. as parameter so i can change it with an ilogic form. 

In this video you can see what i mean:

[URL]

When I make a ilogic form i can only select parameters and iproperties.

View 4 Replies View Related

AutoCAD Inventor :: Use Filename As Parameter?

Nov 8, 2006

Is there a way to use the filename to drive the parameters of the file?

Example: I have a cube that is called 4x4x4.ipt its dimensions d0,d1,d2 are 4,4,4 respectively. I want to rename it to 4x4x6.ipt and have the dimensions d0,d1,d2 resize to 4,4,6.

View 9 Replies View Related

AutoCAD Inventor :: Custom VBA Function In Parameter

Jan 31, 2013

I've got a custom VBA function that works perfectly when called from a parameter in my part.

However, when in the context of my assembly, there is no error, but the function no longer runs, and the parameter text is red.

Apparently, the function is no longer in context?

I've heard of external rules, but have never implemented one.

Is there a way to declare my function and keep it in context regardless?
 
Public Function BumpHeight(dblHeight As Double, dblMember As Double) As Double Dim X As Integer X = 2 If dblHeight > dblMember * 2 Then BumpHeight = dblHeight Else BumpHeight = dblMember * X End If BumpHeight = BumpHeight / 2.54 End Function
Here is the Parameter:

 VBA:BumpHeight(ValanceBackBumpoutHeight;ValanceMemberSize) * 1 in

Update: (problem better defined)

What seems to be happening is that once I insert the part into an assembly, it creates a new blank copy of the parts' modules in VBA and the functions no longer work.

If I go to the VBA editor, 

There are now two copies of my part listed in the browser tree, but the new one is blank.

If I paste in my function to the new one, it will work until I return to the parent assembly.

Next time I come back to the part, it will have a new blank set of modules.

This appears to continue indefinitely...

see the attached screenshot.

At this point there are only 2 copies of the DocumentProject. The original still contains my functions, but the new one is blank.

I need these functions to work in order to build my model.

View 1 Replies View Related







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