is it possible to read out the CircuitWorks ReferenceDesignator via Macro?
CircuitWorks doesn't have its own API. Rather, it uses the SOLIDWORKS API to build assemblies or parts from IDF output. The reference designator is stored in each component in its Component Reference property. After the PCB assembly is built in SOLIDWORKS, parse the components and use ComponentReference to extract the value.
2019 SOLIDWORKS API Help - ComponentReference Property (IComponent2)
If you need to get the value before the assembly is built, you'd need to parse the IDF file directly.
Retrieving data ...