×
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

special characters for triangle in journal (NXOpen API)

special characters for triangle in journal (NXOpen API)

special characters for triangle in journal (NXOpen API)

(OP)
hi -
Does someone here know, if it is possible to use the unicode character: U+2206 for "Triangle or Increment" in a journal.
I'm writing some text in a tabular note with my journal - but I can't figure out, how to let the journal handle these special characters.
As an example I'm able to use Chr(34) as a quoate....But should it be possible to do something like this, also with a triangle or increment char like this: ∆

link to Unicode Character Search: Link

regards lklo

RE: special characters for triangle in journal (NXOpen API)

Use ChrW()

CODE --> vb.net

Option Strict Off
Imports System
Imports NXOpen

Module NXJournal
   Sub Main (ByVal args() As String) 
       Dim theSession As Session = Session.GetSession()
       Dim triangle As String = ChrW(8710) ''UTF8 32 Decimal
       msgbox(triangle)
    End Sub
End Module 

RE: special characters for triangle in journal (NXOpen API)

(OP)
hi Petulf -

thank you so much for your reply..

1.When output the string to a msgbox , it works perfectly.
2.But in my case I need the value in a tabNote and when I try to use the string as input string to the cell, the value from string is just treated as an hash: #
3. I also tried to output to NX listingwindow - in this case an error is raised...

please see attached zip file - containing 3 screenshots - one from each scenario....

Maybe you have some comment's on this....
In advance - thank you...
regards lklo

RE: special characters for triangle in journal (NXOpen API)

Unrecognized character for the font used maybe?

Tried using?

CODE --> vb.net

Dim delta as String = "∆" 


RE: special characters for triangle in journal (NXOpen API)

The listingwindow cannot handle all UTF-8 Characters, this should according to gtac be fixed in NX10.

Thought using Dim triangle As String = ChrW(8710) ''UTF8 32 Decimal works for creating notes in drafting mode without causing exceptions.

RE: special characters for triangle in journal (NXOpen API)

(OP)
Hi again

thanks for your input...
I tried these in NX 8.5 - but still without succeeding....
Though I found out that a direct input of the triangle is possible....see attachment
But I need to be able to do it programmatically....

I will give it a try in NX 11....

lklo

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