cancel
Showing results for 
Search instead for 
Did you mean: 

Tabular Note Column Width - Problem with NXUFSession.tabnot().askColumnWidth(columnTag) in NX 7.5

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

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().

 

  • Is there any software patch available, that could be used to resolve this issue?
  • Is there any known workaround to get the width value of a Column from a "Tabular Note"?

Thanks!

5 REPLIES

Re: Tabular Note Column Width - Problem with NXUFSession.tabnot().askColumnWidth(columnTag) in NX 7.

Siemens Phenom Siemens Phenom
Siemens Phenom

The NXOpen Java docs for NX8.5 show a different syntax:

 

askColumnWidth

void askColumnWidth(Tag column,
                  double width)
                    throws NXException,
                           RemoteException

Re: Tabular Note Column Width - Problem with NXUFSession.tabnot().askColumnWidth(columnTag) in NX 7.

Siemens Phenom Siemens Phenom
Siemens Phenom

 

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
0    0    
Column: Tag 35929
Column width: 19.0
0    1    
Column: Tag 35930
Column width: 50.0
0    2    
 

Re: Tabular Note Column Width - Problem with NXUFSession.tabnot().askColumnWidth(columnTag) in NX 7.

Solution Partner Creator Solution Partner Creator
Solution Partner Creator
Thanks Steve. I always appreciate your quick replies.

We've indeed noticed that it works fine with NX 8.5. We though require a 7.5 implementation of this functionality. Is there any chance to get that in there?... Anyhow?

Re: Tabular Note Column Width - Problem with NXUFSession.tabnot().askColumnWidth(columnTag) in NX 7.

Siemens Phenom Siemens Phenom
Siemens Phenom

 

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.

 

Re: Tabular Note Column Width - Problem with NXUFSession.tabnot().askColumnWidth(columnTag) in NX 7.

Phenom
Phenom

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.