Thnx for the code. It actually seems to me that i am doing the same. It is pretty straight forward. but in my c++ code i still get an empty list of TaggedObjects
The only thing I can suggest is to create some C++ code that replicates exactly what I did in C# and see if it works.
I'd tag some others in, but I'm not sure of any names here that are C++ users.
Dell 7530 Precision, Win10, 32GB. Developing in: Java | C | KF
Production: [NX12.0.2 MP1]
This might not be the cause of your issue, but is easy to check: NX can be fairly picky about the C++ compiler used. Check the release notes for the version of NX you are using to find the supported compiler version. Here is a link for NX 12, the information can be found in a similar location in other versions.
@Ken_A might be able to help out with C++ issues.
Try replicating JUST Graham's code in C++ (start a separate application using the NX project template)
You can use Graham's .DLX file.
Hopefully your boss would allow that to be posted, and it isn't doing anything "company specific"
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled
Use the below code in your program and try:
PropertyList *sol = face_select0->GetProperties(); vector<TaggedObject *> selobjs = sol->GetTaggedObjectVector("SelectedObjects");
Here is the sample solution to get the selected objects for C++ language.
Attached is a C++ project created using Visual Studio 2015. The program names selected faces. It uses face collector. I have elaborated the program to show converting tagged object vector to face vector.
Hope this helps.