Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

special characters for triangle in journal (NXOpen API)

Status
Not open for further replies.

lklo

Industrial
Nov 24, 2010
226
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
 
Replies continue below

Recommended for you

Use ChrW()

Code:
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
 
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
 
 http://files.engineering.com/getfile.aspx?folder=9295e8fe-a887-43b0-ac39-7661e789ee3d&file=3pics.zip
Unrecognized character for the font used maybe?

Tried using?
Code:
Dim delta as String = "∆"


 
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.
 
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
 
 http://files.engineering.com/getfile.aspx?folder=7f9de7b9-fcea-466f-81cf-fdd88f34e820&file=triangle_direct_input_works.JPG
Status
Not open for further replies.

Part and Inventory Search

Sponsor