×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Suffix for dimension - x 30¦

Suffix for dimension - x 30¦

Suffix for dimension - x 30¦

(OP)
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 

RE: Suffix for dimension - x 30¦

did you try <$s> for the degree symbol

RE: Suffix for dimension - x 30¦

(OP)
I discovered the variable today. I got it to work. Thank you very much.

RE: Suffix for dimension - x 30¦

Here is a symbol 'map' of the common symbols supported by NX using so-called special characters:



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):

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources