GetMaterialList
Returns a list of Materials in a multi-dimensioned array.
Syntax
vResult
= MaterialSvr
.GetMaterialList
(MaterialFilter
As MaterialFilterEnum
, FilterValue
As String)The
GetMaterialList
method syntax has these parts:Part | Description |
---|---|
vResult | The data returned by the Material Server. |
MaterialSvr | Instance of the MaterialServer to which the method is directed. |
MaterialFilter | An enumeration representing a set of pre-defined filters: 0 = GetAllMaterials 1 = GroupName 2 = ClassificationName 3 = MaterialName |
FilterValue | A string representing the filter value. |
Where
vResult
is:Part | Description |
---|---|
vResult | Is a two-dimensional array containing < EmptyArray > | <MaterialData > |
MaterialData | Array Element [0] = Pkid Array Element [1] = Name Array Element [2] = Description Array Element [3] = ControllerID |
Remarks
In order to test for an empty array, you must test the upper and lower bounds of the
vResult
array. If both bounds are zero, then the array is empty and can be treated as such.Provide Feedback