Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Suffix for dimension - x 30¦

Status
Not open for further replies.

Goof2014

Automotive
Joined
Dec 5, 2013
Messages
9
Location
DE
Hello together,

I would like to add a suffix to an existing dimension. How could I add the text "x 30°"? The problem is the "° - degree" because the journal does not accept ascii code.

Thank you

Goof

Code:
Sub Main()
 
      Dim dimension As NXOpen.Tag

      While select_a_dimension(dimension) = Selection.Response.Ok

        Dim dimObj As Annotations.Dimension = NXObjectManager.Get(dimension)

        Dim appendedText As NXOpen.Annotations.AppendedText = _
                                        dimObj.GetAppendedText()

        Dim lines(0) As String

        lines(0) = "x 30°"
        appendedText.SetAfterText(lines)

        dimObj.SetAppendedText(appendedText)

        ufs.Modl.Update()

        ufs.Disp.SetHighlight(dimension, 0)

      End While

  End Sub
 
I discovered the variable today. I got it to work. Thank you very much.
 
Here is a symbol 'map' of the common symbols supported by NX using so-called special characters:

NXCommonSymbols.jpg


And if you're using most any of the common NX fonts, such as BLOCKFONT, here are the symbols available as special characters of the font itself (note that since NX 8.0 and the introduction of support for TrueType fonts, that many of these symbols are supported as part of the normal font libraries):

BLOCKFONTSpecialSymbols-1.jpg


John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top