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