Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Cycling Plist cells using " UFTabnot Class "

Status
Not open for further replies.

lklo

Industrial
Joined
Nov 24, 2010
Messages
226
Location
DK
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


 
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.
 
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
 
In the API reference, search for the GetEvaluatedText method. Also, there is a C# example in GTAC solutions showing its use.

www.nxjournaling.com
 

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

Part and Inventory Search

Sponsor

Back
Top