If Any part file of Siemens Nx faces with different colors and want to know the surface area of the same colored faces(like below image).
![image](https://private-user-images.githubusercontent.com/111222356/300261592-02dc0a6e-cba5-46c1-af70-bd86c0d9106f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMTg4MjksIm5iZiI6MTcyNDExODUyOSwicGF0aCI6Ii8xMTEyMjIzNTYvMzAwMjYxNTkyLTAyZGMwYTZlLWNiYTUtNDZjMS1hZjcwLWJkODZjMGQ5MTA2Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODIwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyMFQwMTQ4NDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jMTdiNzNiZTZhYTFhNGJmNGYwMGZkNTM0ZTA0MjQyOWEzZDU0ZjNlYTljZTdmMmY4M2NmNmY0YjZmMjIzMDExJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.XyQCtXIf-PIfAhSxuJDhisnQE32ZHDNhhsBgSUFKdfo)
This code can do that for us.
After running the dll file. First select the required colored face to calculate the total surface area that colored faces in part(like below image).
![color](https://private-user-images.githubusercontent.com/111222356/300262029-b32a1417-1df5-4f62-94a0-0bf8a8e2ff5f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMTg4MjksIm5iZiI6MTcyNDExODUyOSwicGF0aCI6Ii8xMTEyMjIzNTYvMzAwMjYyMDI5LWIzMmExNDE3LTFkZjUtNGY2Mi05NGEwLTBiZjhhOGUyZmY1Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODIwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyMFQwMTQ4NDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02Njg0NTQ4MzRlNDRjNThkMWFjNTEzY2Y4MTlmODc1NTA4OWRlNjI3MDQzY2FjYWE1NzM1Mzk2OGU1M2ZhZjQzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.GxCl_klKAN4b5WE1M8YQK-cnM7FwdIgkRcmEZf8ViFg)
Calculated Total surface area of the select colored faces is show in Listing window(like below image).
![image](https://private-user-images.githubusercontent.com/111222356/300262201-d5a7a2ba-e2d0-4e5d-82c7-669134e30cee.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMTg4MjksIm5iZiI6MTcyNDExODUyOSwicGF0aCI6Ii8xMTEyMjIzNTYvMzAwMjYyMjAxLWQ1YTdhMmJhLWUyZDAtNGU1ZC04MmM3LTY2OTEzNGUzMGNlZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODIwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyMFQwMTQ4NDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xMmI1NGM2ZmZlYWU4YTgyZGRmOGI3ZWJkNDhmZGMzZjkzMDJlMWEwZjQ5OWU3NWUwYTlmN2U0ZTNmZDU4YTcwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.JaCNMAuynGsV7_wWGZPFATdtjqK4TDAGYVHEc0YPNLA)