Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Tabular Note format - Journal

Status
Not open for further replies.

MI95SHO

Mechanical
Dec 20, 2012
35
Hello,

Referring back to thread561-336107 ; 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
 
Replies continue below

Recommended for you

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, [highlight #FCE94F]FormatNumber(pt3d.X, 1)[/highlight].ToString())

Try changing it to:

Code:
ufs.Tabnot.SetCellText(cell, [highlight #FCE94F]FormatNumber(pt3d.X, 1,,,False)[/highlight].ToString())

For more information about the FormatNumber function see:

www.nxjournaling.com
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor