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 fetch the note associated with the custom symbol using NXOpen?

Status
Not open for further replies.

biw01

Automotive
Dec 31, 2011
152
Hello friends,

I am trying to retrieve the note associated with the custom symbol using the GetArbitraryNoteTitle() API.

My sample code is as mentioned below

Dim draftingCustomSymbolBuilder1 As Annotations.DraftingCustomSymbolBuilder
draftingCustomSymbolBuilder1 = objPart.Annotations.CustomSymbols.CreateDraftingCustomSymbolBuilder(objCustSymb)
draftingCustomSymbolBuilder1.SmashSymbol = True
[highlight #FCE94F]NoteText = draftingCustomSymbolBuilder1.GetArbitraryNoteTitle(0)[/highlight]
Dim nXObject1 As NXObject
nXObject1 = draftingCustomSymbolBuilder1.Commit()
draftingCustomSymbolBuilder1.Destroy()

The highlighted line throws an error, kindly help where am i going wrong.

Regards,
Amitabh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor