Our 3D CAD supplier models have been moved to 3Dfindit.com, the new visual search engine for 3D CAD, CAE & BIM models.
You can log in there with your existing account of this site.
The content remains free of charge.
The key represents the name of CATMaterial File which is taken into account for created Parts. If the Metafile contains some Material information, the name of Material is searched in the specified CATMaterial File and if found it will be applied.
Check if "*CATMATERIAL_FILE"("MaterialFile") exists. If it does not exists, exit from ApplyMaterial without message.
Get the value for mass: Search "cns"->"CNSPHYPROP"->"CNSMASSEXACT". If not found search in "cns"->"CNSGEOMBASE"->"CNS_MASSEXACT001"
If mass is zero or is not defined, the value for density is read from ps3, else compute the density of the Material: density = mass / volume.
Search the name of Material from - "cns"->"CNSPHYPROP"->"CNSMAT" or from Mident of the Part ("A_MAT") or from *CATMATERIAL_STD_NAME flag (in the specified CATMaterial File)
If the Material has been found in CATMATERIAL_FILE, set for it the computed density.
Apply the material on feature.
-> The Material is displayed in the tree.
Material information is also found in the PS3 file.