Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IFRs on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to retrieve the Arbitary Note Title in a custom Symbol in NX7.5 using NXOpen ?

Status
Not open for further replies.

biw01

Automotive
Dec 31, 2011
152
Hello Everyone ,

Can someone create a sample code on how i can retrieve the arbitary note title in a custom symbol using NXOpen ?
The GetArbitaryNoteTitle API is returning an empty string

My Sample test code is as below.
Code:
For Each objCustSymb As CustomSymbol In displayPart.Annotations.CustomSymbols.ToArray()

            Try
                Dim draftingCustomSymbolBuilder1 As Annotations.DraftingCustomSymbolBuilder = Nothing
                draftingCustomSymbolBuilder1 = displayPart.Annotations.CustomSymbols.CreateDraftingCustomSymbolBuilder(objCustSymb)
                draftingCustomSymbolBuilder1.SmashSymbol = True
                draftingCustomSymbolBuilder1.SelectText(0)
                lw.WriteLine("Arbitary Note Title: " & UBound(draftingCustomSymbolBuilder1.GetArbitraryNoteTitle()).ToString)
                draftingCustomSymbolBuilder1.SmashSymbol = False
            Catch ex As Exception
            End Try
            lw.WriteLine("******************************************************")
        Next
Thanks,
Amitabh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor