I create a MeshPoint in a FEModel, and then update the model,The model generates a new mesh, and there is a new FENode at the position of the meshpoint, but how can I get the tag of the node associated with the meshpoint!
Is there anyone who can solve this?
Solved! Go to Solution.
here is an example code I wrote in C++:
CAE::MeshPoint* theMeshPoint; // Your Meshpoint
//Put Meshpoint into an Array: vector<CAE::MeshPoint*> MeshPoint_Array; MeshPoint_Array.push_back(theMeshPoint); //Put the Array into Smart Selection Managers Reladed Node method (only accepts Mesh Point Arrays): CAE::RelatedNodeMethod* mtd = theFEMPart->SmartSelectionMgr()->CreateRelatedNodeMethod(MeshPoint_Array); //Get the Node(s): vector<CAE::FENode*>theNodes = mtd->GetNodes();
I am using the smart selection manager quite often so I would expect this to work but I haven't tested it.