How to get bodies and faces in a Fem model ?
How to get bodies and faces in a Fem model ?
(OP)
Hi every one , i have a small problem.
i'm trying to get faces to change color depending on the face type , but this in not the probleme i managed to do that but only when i'm working in modeling module.
i need to do the same for Advanced simulation (.fem parts) module.
i tried to change work to basework in this code but it still works only in the modeling module (ie .prt).
" Dim workPart As object = s.Parts.baseWork
Dim bodies As BodyCollection = workPart.Bodies
For Each b As Body In bodies
For Each f As Face In b.GetFaces "
Thank you.
i'm trying to get faces to change color depending on the face type , but this in not the probleme i managed to do that but only when i'm working in modeling module.
i need to do the same for Advanced simulation (.fem parts) module.
i tried to change work to basework in this code but it still works only in the modeling module (ie .prt).
" Dim workPart As object = s.Parts.baseWork
Dim bodies As BodyCollection = workPart.Bodies
For Each b As Body In bodies
For Each f As Face In b.GetFaces "
Thank you.





RE: How to get bodies and faces in a Fem model ?
www.nxjournaling.com
RE: How to get bodies and faces in a Fem model ?
can you explain please how can i get a reference to the component and make some changes (not only changing colors what i have in mind but also doing a mesh and create coordinate systems dependent on the suface type , but this is not the problem , my problem is i cant get faces in fem part) .
i managed to do that by using a selectobjects method , but i want to create a journal that would do that automatically without prompting the user to select anything.
thanks.
RE: How to get bodies and faces in a Fem model ?
When you are working on your FEM part, are you working on the model itself, or an occurrence (a component)?
www.nxjournaling.com
RE: How to get bodies and faces in a Fem model ?
I hope this will clarify the probleme.
thanks again.