ReadMaterialValuesByName (IMaterial)

Returns the values of all of the named properties and attributes of a material resource.

Note: In the Edit Method dialog box, click Next to add class definitions to the call method. This returns only the parameters you choose from the class.
InputsData TypeDescription
Material AddressDirectoryResource

Specifies the material resource to read.

In the Configure Method dialog box, click Next to select a resource. Otherwise, in the Inputs section of the activity configuration panel, click the ellipsis button to select a resource.

propertyNamesString[]

Specifies the names of the attributes or properties to read.

In the Configure Method dialog box, click Next to select a resource. Otherwise, in the Inputs section of the activity configuration panel, click the ellipsis button to select a resource.

OutputsDescription
NameDataValueCollection Returns a list of the user-defined values of the named properties and attributes for the specified resource.

To access these properties, use an Index Activity or a For Each loop. You can use the parameter name as the index for the Index activity.

Important: The returned collection of data is based on user-defined values and is dependent on your published data. For information on the attributes that can be read from, see the related properties for the material model.