×
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

Evaluating Text in a Note with NXOpen .NET

Evaluating Text in a Note with NXOpen .NET

Evaluating Text in a Note with NXOpen .NET

(OP)
Hello,

This is a question for people familiar with NXOpen.

I'm working with DraftingSheets that have notes on them which reference attributes defined in the part (i.e. "<W@ATTRIBUTE_NAME1>-<W@ATTRIBUTE_NAME2>").

I've been looking through the NXOpen .NET API reference and simply cannot figure out how to evaluate the text in the note to get the actual value displayed on the draft.  

I know I can analyze the string and get the attribute names from which I can look up the values, but it seems to me NX should have this built in.  They have this for Tabular Notes (Tables) in the form of Tabnot.AskEvaluatedCellText(), so it makes sense that you should be able to do this for normal notes too.

Thank you for any help!

 

RE: Evaluating Text in a Note with NXOpen .NET

Tables act the way they do because they use a 'spreadsheet' type data record, therefore, by definition, evaluating a 'cell' is what's happening all the time.  Granted, it would be nice that 'notes' behaved the same way, but that would require additional code to be written while the 'spreadsheet' like behavior, and thus, the evaluation tools, come for free.

Now if you wish, call GTAC and have them open an Enhancment Request.

Now the good news is that how text is displayed and recorded as 'notes' on a Drawing is getting a reworking in NX 8.0 so it possible that there may be some improvements in this area coming as part of the overall project, and besides, now may be a good time to get those ER's in since there is work already being done in that part of the NX code.

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/

To an Engineer, the glass is twice as big as it needs to be.
 

RE: Evaluating Text in a Note with NXOpen .NET

(OP)
John,

Thank you for your fast reply!

That is disapointing to hear.  Obviously they display the evaluated text on the DraftingSheet so they have the evaluation algorithm built into it somewhere.  Just wish that it was on the public side for us to use.

I'm in Japan and we're generally stuck a version behind the current at all times, so for now I'm just going to have to write my own string evaluation algorithm I guess.

Thanks!

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