cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the FENode associated with the MeshPoint

Creator
Creator

Hello everyone,

      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?

    Thanks!!!

3 REPLIES

Re: How to get the FENode associated with the MeshPoint

Genius
Genius

Hi ZhuZhenwei,

 

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.

 

Best regards,

MGeyer

Re: How to get the FENode associated with the MeshPoint

Creator
Creator
It woks!!!
Thanku!

Re: How to get the FENode associated with the MeshPoint

Creator
Creator

I find a simpler way.

After updating the fem model,  the label of the new nodes associated the meshpoints  starts from 1,2 ......