NXOpen Face Tags: save and call
NXOpen Face Tags: save and call
(OP)
Hi! Another question (I guess you are all hating me at this point, with all these questions)..
I built a tool to select a few faces from a part (let's call it example.prt) and to save the Nxopen.face.tag of the selected faces in a txt file.
My idea was to use this file and the TAG contained in it to import the information about the selected faces in a new istance of NX, where i open the same example.prt and call the corresponding faces without the need to redo the whole user selection.
I found out that this method doesn't work because it appears that the TAG change whenever i open for the second time the part. As you can see in the image, on the left there is the list of TAGs of all the faces of the part example.prt (I obtained it using body.getfaces), on the right there is the list of TAGs of the faces that i selected the first time. As you can see there is no correspondance between the two lists. Of course, the part has not been modified, but only closed and re-opened.
Am I doing something wrong or this is normal? Is there a way to save a selection of faces with a more convenient approach?
Thank you.
I built a tool to select a few faces from a part (let's call it example.prt) and to save the Nxopen.face.tag of the selected faces in a txt file.
My idea was to use this file and the TAG contained in it to import the information about the selected faces in a new istance of NX, where i open the same example.prt and call the corresponding faces without the need to redo the whole user selection.
I found out that this method doesn't work because it appears that the TAG change whenever i open for the second time the part. As you can see in the image, on the left there is the list of TAGs of all the faces of the part example.prt (I obtained it using body.getfaces), on the right there is the list of TAGs of the faces that i selected the first time. As you can see there is no correspondance between the two lists. Of course, the part has not been modified, but only closed and re-opened.
Am I doing something wrong or this is normal? Is there a way to save a selection of faces with a more convenient approach?
Thank you.





RE: NXOpen Face Tags: save and call
Alternately, if you only have a few faces to process, you could give each face a custom name or attribute and look for the same name or attribute on subsequent runs of your program.
www.nxjournaling.com
RE: NXOpen Face Tags: save and call
RE: NXOpen Face Tags: save and call
www.nxjournaling.com