It looks like we need to find the symbol name in the schematic. Anyone know how to find the symbol name. We can get almost all the other properities just unable to find a way to see what this one is.
SymbolBlock.SheetNum holds the current 'page' of the symbol, so you will be able to identify full symbol name by concatenating SymbolBlock.GetName and SymbolBlock.SheetNum
Please try below code snippet in xDxDesigner. It will work when there is any component selected in your schematic sheet.
Set oView = Application.ActiveView
If oView Is Nothing Then
MsgBox "There is no active schematic view.", vbExclamation
Set colComps = oView.Query(VDM_COMP, VD_SELECTED)
If colComps.Count = 0 Then
MsgBox "Please select component(s) and run again", vbExclamation
For Each oComp In colComps
sUID = oComp.UID
sRef = oComp.RefDes
sSymbolName = oComp.SymbolBlock.GetName(SHORT_NAME)
sSheetNum = oComp.SymbolBlock.SheetNum
MsgBox "UID : " & sUID & vbCrLf & _
"Ref : " & sRef & vbCrLf & _
"Symbol : " & sSymbolName & "." & sSheetNum
Hope the above helps,
Thanks for the information. We had found how to do this and it is very similar to what you have there.