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 TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

NX Journal - Issues with Exporting Parasolid Data 1

Status
Not open for further replies.

jmarkus

Mechanical
Joined
Jul 11, 2001
Messages
377
Location
CA
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
 
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, [highlight #FCE94F]70[/highlight], 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
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top