The attached example shows one way to read Persisten Reference IDs (PIDs) from SolidWorks and save them to disk. The example also shows how to use the stored information to find an object by PID.
This example only reads PIDs for faces, but PIDs can be found for other types of objects (edges, vertices, features, etc.).
Copyright © Dassault Systèmes SolidWorks Corp. All rights reserved.
Do not distribute or reproduce without the written consent of Dassault Systèmes SolidWorks Corp.