Can you someone explain this to me? I can barely understand the question.
If you are only dealing with Section Views then, get IDrSection Interface using 'IView.Type = swDrawingSectionView'. Then get the label text using IDrSection.GetLabel method. (e.g. for Section B-B, it will return 'B'). Then check you conditions and attach number.
If you want update text of the label below the view and the arrow then you can use IDrSection.SetLabel2 method. But if you only want to update the text of the label below the view then use INote.PropertyLinkedText method and add your number to the text.
Have a look at the following example for 'IDrSection.SetLabel2 ': Create Section View and Get Some Data Example (VBA)
Hope this helps.
Sorry to check comment was late.
I solved this how to use" DisplayData.DisplayText" like this.
~~skip to explain about creating instance of Annotation~~
DisplayData swDispData = (SolidWorks.Interop.sldworks.DisplayData)swAnn1.GetDisplayData();
String displayText = "";
for (int index = 0; index <= swDispData.GetTextCount() - 1; index++)
if (index >= 1)
displayText = displayText + "\r\n";
displayText = displayText + swDispData.GetTextAtIndex(index);
If we have a lable like this, and want to get "A-A".
we never can get text with Note.GetText();
Also, If we use Note.PropertyLinkedText that is return just <VLANME><VLLABE>
So, I have used Annotation.GetDiplayData() finally i could get "A-A".