Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Need help for NXOpen\Block Styler

Creator
Creator

Hello! I'm just starting to learn NXOpen and I need help. I use Block Styler to create a dialog. I have a face selection block. Can I get the coordinates of the borders of the selected area?

4 REPLIES 4

Re: Need help for NXOpen\Block Styler

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

If I understand correctly, you need the coordinates of the face border ?

 

If yes, from the face, get the edges, and from each edge, get the vertices coordinates

 

Elias.

Re: Need help for NXOpen\Block Styler

Creator
Creator

Yes, its correct)

But how do i get the edges? Do I need to select them separately? Or can I get them from the selected face? And how can i get the vertex coordinates? Sorry for so many questions, I'm really just learning)

Re: Need help for NXOpen\Block Styler

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

From face, use GetEdges method:   Edge[] edges = face.GetEdges()

 

For each edge, use GetVertices methods:  GetVertices(out Point3d vertex1, out Point3d vertex2).

 

Elias.

Re: Need help for NXOpen\Block Styler

Creator
Creator

Thanks you! This what I need.