Dim vias As MGCPCB.Vias
Dim via As MGCPCB.Via
Dim str as String
vias = doc.Vias
str = ""
For Each via In vias
str = str & via.UniqueId & vbcrlf
The str part is optional. You could store each via.uniqueid in an array, list, excel sheet, or whatever. The point is to get all the vias, then cycle through them individually, then use via.uniqueid. That should get you going.
Thanks…that did it…I added it to my existing script and now I get the uniqueID…I appreciate you taking the time to let me know..>Diane.