NX Journal - Issues with Exporting Parasolid Data
NX Journal - Issues with Exporting Parasolid Data
(OP)
I have an NX8 Journal which uses:
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
which yields the same results but dumps an error code:
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
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
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
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
Happy coding!
www.nxjournaling.com