NXOpen.UF.Sf.AskLibraryMaterials¶
-
Sf.
AskLibraryMaterials
()¶ Refer to UF_SF_ask_library_materials for documentation.
Signature:
AskLibraryMaterials(typeFilter, categoryFilter, nameFilter)
Parameters: - typeFilter (str) – A regular expression string which filters the material type. To find all materials, enter “*”. To find all isotropic materials, enter “ISO”. To find all orthotropic materials, enter “ORTHO”. To find all anisotropic materials, enter “ANISO”. To find all fluid materials, enter “FLUID”.
- categoryFilter (str) – A regular expression string which filters the material category. To find all materials, enter “*”.
- nameFilter (str) – A regular expression string which filters the material name. To find all materials, enter “*”.
Returns: A Tuple
Return type: A tuple consisting of (materialCount,materialLibrefs,materialNames,materialTypes)
materialCount(int): The number of materials listed in the arrays.
materialLibrefs(list of str): An array of characters strings containing the library reference field of each material. Call UF_free_string_array to free the storage allocated within the structure.
materialNames(list of str): An array of charact ers strings containing the name field of each material. Call UF_free_string_array to free the storage allocated within the structure.
materialTypes(list of str): An array of characters strings containing the type field of each material. Call UF_free_string_array to free the storage allocated within the structure.
License requirements: None