×
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

NX Journal - Issues with Exporting Parasolid Data

NX Journal - Issues with Exporting Parasolid Data

NX Journal - Issues with Exporting Parasolid Data

(OP)
I have an NX8 Journal which uses:

CODE

ufs.Ps.ExportLinkedData(taglst, x, strParasolid, 70, linkfn, 0, unexportedTags) 

to export solid bodies as parasolids from a PRT file. Sometimes the Journal fails to export the parasolids even though there are solids present (and I can manually export using File->Export->Parasolid).

This seems to be a new phenomena. I don't know if there was some kind of maintenance update (I am currently running NX 8.0.3.4 r Rev D) which has affected how this works. Or it could be that I'm only just finding parts that are affected by some weakness in my coding approach. I've also tried

CODE

ufs.Ps.ExportData(taglst, strParasolid) 

which yields the same results but dumps an error code:

CODE

Error generating Parasolid file:  NXOpen.NXException: Empty link list
   at NXOpen.UF.UFPs.ExportData(Tag[] body_list, String file_name)
   at NXJournal.para() in C:\Users\jmarkus\AppData\Local\Temp\NXJournals3332\journal.vb:line 528 

Which suggests I'm not collecting the solids using the ExportData function, but I am using ExportLinkedData - which still doesn't work.

Is there a more robust function to export Parasolids from an NX Journal, or is there some "gotcha" that I can work around to make this work 100% of the time?

Thanks,
Jeff

RE: NX Journal - Issues with Exporting Parasolid Data

The "empty list" error seems to indicate that you have not passed in any tags to the function. Take a close look at your code where you collect the bodies to export; double check that they make it into the list.

CODE

ufs.Ps.ExportLinkedData(taglst, x, strParasolid, 70, linkfn, 0, unexportedTags) 

The "70" in the code above indicates you are exporting to Parasolid version 7.0 - a version compatible with UG v11. Do you need to go back that far? NX 8 uses parasolid version 24.0 (pass in the value 240 to the function; NX 7 = 22.0, pass in 220).

www.nxjournaling.com

RE: NX Journal - Issues with Exporting Parasolid Data

(OP)
Thanks Cowski!

I looked and sure enough I was collecting entities by layer and there were no entities on the layer I was collecting. Once I changed my layer mask it worked.

I didn't realize 70 was UG v11, I thought it was NX 7.0, that's why I was using it.

Thanks again,
Jeff

RE: NX Journal - Issues with Exporting Parasolid Data

Glad to hear you got it sorted.

Happy coding!

www.nxjournaling.com

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