I have element ID and I need to get the property set ID and its material ID defined in the property. db_element function returns part ID and its not matching with BDF file. Please suggest to get the material ID for an element.
Once you have the property set ID, you can get the material ID using db_get_region_definition. This will give you the material ID. If necessary, you can get the material name from its ID using db_get_material_name_from_id.
Your comment about the bdf isn't clear to me - can you clarify? There isn't necessarily any relation between IDs in the bdf and IDs in the Patran db.
Once you have the property set ID, you can get the material ID using db_get_region_definition. This will give you the material ID. If necessary, you can get the material name from its ID using db_get_material_name_from_id.
Your comment about the bdf isn't clear to me - can you clarify? There isn't necessarily any relation between IDs in the bdf and IDs in the Patran db.