×
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

Cycling Plist cells using " UFTabnot Class "

Cycling Plist cells using " UFTabnot Class "

Cycling Plist cells using " UFTabnot Class "

(OP)
hi -

I have found out that its possible to cycle through all cells in a partslist , using NXOpen.UF.
I want to store all cell values in a arraylist . no problem

But problem is when I ask for the output-parameter in this command: ufs.TABNOT.askcelltext(celltag,celltext).(first parameter cell tag , and second parameter string variable).

Instead of outputting ex "12" in a POS column , it outputs the partslist´s cell variable in the POS column <W$=@POS>

When I overwrite the cell manually ,and type in ex "12" and run the scribt Again ,the output is OK ("12")

Some here have an idea what to do?

lklo


RE: Cycling Plist cells using " UFTabnot Class "

The command is doing exactly what it says, that is returning the 'celltext', which actually IS <W$=@POS>.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:

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

RE: Cycling Plist cells using " UFTabnot Class "

(OP)
Thanks for your answer.

I have to see if it is possible to make a workaround.
The UFTabnot Class is very extensive - maybee there is another solution.

lklo

RE: Cycling Plist cells using " UFTabnot Class "

In the API reference, search for the GetEvaluatedText method. Also, there is a C# example in GTAC solutions showing its use.

www.nxjournaling.com

RE: Cycling Plist cells using " UFTabnot Class "

(OP)

I ran into problems with the GetEvaluatedText command ,because the first input-parameter is required as Annotation format.The output-format from the command ufs.TABNOT.askcelltext()
is string format. BUT: I made a further study of the UFTabnot Class , and I found this command ufs.TABNOT.askevaluatedcelltext().

Now it work´s.

It is possible for me now, to write direct to Excell Sheet (formated as Company Part list).
No exporting txt files or csv , no "playing" with Spaces or Tabs from temporary files.

------------------------------------------------------------------------------------------
Thank´s to both of you.

lklo

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