We're trying to get the width of a column using NXOpen (Java).
Using something like
double width = NXUFSession.tabnot().askColumnWidth(columnTag);
works fine in NX 8.5 or 9.0. NX 7.5 though returns 0 (zero) alway!
The version 7.5 of NX may have a bug with askColumnWidth(columnTag) in UFSession.tabnot().
Solved! Go to Solution.
Please ignore my initial response. It was true that the docs showed that syntax, but it did not work.
A PR was submitted and the problem is fixed in NX8.5.3. I just tested with this code:
for( int c=0; c<ncols; c++)
nxopen.Tag column = ufs.tabnot().askNthColumn(tabnote, c);
lw.writeLine("Column: " + column);
double width = ufs.tabnot().askColumnWidth(column);
lw.writeLine("Column width: " + width);
And it works as expected:
Tabular Note Section Tag: 35922
Tabular Note Tag: 35933
Row Column Text
Column: Tag 35928
Column width: 86.0
Column: Tag 35929
Column width: 19.0
Column: Tag 35930
Column width: 50.0
I really do not know whether any more Maintenance Packs are planned for NX7.5 or not.
Could you avoid it by using one of the other Common API kits? The problem seems to be limited to the Java wrapper. If you are not on Windows, your only other choice is C/C++, but the .Net kits are available if you are on Windows.
According to SFB-NX-7744, maintenance ended for NX 7.5.x on March 31, 2014.
SFB-NX-8110 lists maintenance support dates for NX 8 through NX 10.