×
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

Tabular Note format - Journal

Tabular Note format - Journal

Tabular Note format - Journal

(OP)
Hello,

Referring back to thread561-336107: Tabular Note Point Chart - Journal ; I am now trying to format the tabular note's Style within the Journal code. Currently when outputting the X/Y/Z coordinates of the points, it is including a comma for points that are in the thousands (as shown in attachment) and is listed as in "text" format. I am struggling to get the journal code to output these values without a comma, and ideally in a number format. Any ideas? Sorry if this is in the Help docs, I can't search them correctly now that Java has been updated.

Thank you.
Kyle

--
CAD Detail and Designer II
NX 7.5, 8, and 8.5 with SmarTeam Integration.
CATIA V5 R20-R22

RE: Tabular Note format - Journal

There are options within the "format" function that should get the result you are after.

Look for the lines of code that enter the point coordinates into the table, such as:

CODE

ufs.Tabnot.SetCellText(cell, FormatNumber(pt3d.X, 1).ToString()) 

Try changing it to:

CODE

ufs.Tabnot.SetCellText(cell, FormatNumber(pt3d.X, 1,,,False).ToString()) 

For more information about the FormatNumber function see:
http://msdn.microsoft.com/en-us/library/xfta99yt%2...

www.nxjournaling.com

RE: Tabular Note format - Journal

(OP)
That worked perfect! Thanks cowski and for the link.

>Resolved

--
CAD Detail and Designer II
NX 7.5, 8, and 8.5 with SmarTeam Integration.
CATIA V5 R20-R22

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