Message 1 of 3

Not applicable
08-23-2010
07:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I like to get all values of the parameters which are stored in an iLogic model. After collecting the values I like to generate all variants which are available with these parameters.
I have a strange problem with the function expressionlist.item()
Public Function getParamValues() As Collection Dim ParamName As String ParamName = "BOX1" Dim oParameters As Parameters Dim colParamValues As New Collection Dim intCount As Integer Set getParamValues = colParamValues Set oParameters = ThisApplication.ActiveDocument.ComponentDefinition.Parameters For intCount = 1 To oParameters.UserParameters.Item(ParamName).ExpressionList.Count colParamValues.Add oParameters.UserParameters.Item(ParamName).ExpressionList.Item(intCount) Next intCount End Function
The part has a parameter "BOX1" which is a multi-value list. It contains the values "EDF1" "EDF2" and "EDF3". The first element is always ???? after reading.
The watch window shows the correct item() values. But colParamValues.Add recieves ????? values.
What am I overlooking here?
best regards,
Maarten Weers
Perker Hannifin b.v.
The Netherlands
Solved! Go to Solution.