How to Get the Note ID name for Selection by using Macro (Not by recording the Macro)?.

Hiee All

How to Get the Note ID name for Selection by using Macro (Not by recording the Macro).

For example. Note Name "DetailItem786@Sheet1" or "DetailItem985@View 1" i want these complete names to be get by using macro(Not by recording the Macro).

I can get These names by recording a macro, but i don't want to record a macro every time to get these name/ID.

I tried following Code

swNote = swDrawing.SelectionManager.GetSelectedObject6(1, -1)

Note_Name= swNote.GetName

But from above code I am getting note name as "DetailItem786" or "DetailItem985" it does not give full name ID for selection.

Thank You

SolidworksApi/macros